mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
Webpack build for branch master: 5605dc04e1
This commit is contained in:
parent
68f79a7fcd
commit
c0bf72ce19
2 changed files with 4 additions and 4 deletions
|
|
@ -11908,10 +11908,10 @@ class ClientUser extends User {
|
|||
if (data.game) {
|
||||
game = data.game;
|
||||
if (game.url) game.type = 1;
|
||||
} else if (typeof data.game !== 'undefined') {
|
||||
game = null;
|
||||
}
|
||||
|
||||
if (data.game === null) game = null;
|
||||
|
||||
if (typeof data.afk !== 'undefined') afk = data.afk;
|
||||
afk = Boolean(afk);
|
||||
|
||||
|
|
@ -11955,7 +11955,7 @@ class ClientUser extends User {
|
|||
* @returns {Promise<ClientUser>}
|
||||
*/
|
||||
setGame(game, streamingURL) {
|
||||
if (game === null) return this.setPresence({ game });
|
||||
if (!game) return this.setPresence({ game: null });
|
||||
return this.setPresence({ game: {
|
||||
name: game,
|
||||
url: streamingURL,
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue