mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Change gameID (Deprecated) to game
This commit is contained in:
@@ -428,18 +428,18 @@ var Client = (function (_EventEmitter) {
|
||||
|
||||
// def setStatus
|
||||
|
||||
Client.prototype.setStatus = function setStatus(idleStatus, gameID) {
|
||||
Client.prototype.setStatus = function setStatus(idleStatus, game) {
|
||||
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err, {}*/{} : arguments[2];
|
||||
|
||||
if (typeof gameID === "function") {
|
||||
// gameID is the callback
|
||||
callback = gameID;
|
||||
if (typeof game === "function") {
|
||||
// game is the callback
|
||||
callback = game;
|
||||
} else if (typeof idleStatus === "function") {
|
||||
// idleStatus is the callback
|
||||
callback = idleStatus;
|
||||
}
|
||||
|
||||
return this.internal.setStatus(idleStatus, gameID).then(dataCallback(callback), errorCallback(callback));
|
||||
return this.internal.setStatus(idleStatus, game).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def sendTyping
|
||||
|
||||
Reference in New Issue
Block a user