mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Webpack build for branch master: 5c2086b351
This commit is contained in:
parent
96f444d941
commit
43cbff37b3
2 changed files with 8 additions and 5 deletions
|
|
@ -9590,6 +9590,8 @@ class ClientUser extends User {
|
||||||
if (game.url) game.type = 1;
|
if (game.url) game.type = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data.game === null) game = null;
|
||||||
|
|
||||||
if (typeof data.afk !== 'undefined') afk = data.afk;
|
if (typeof data.afk !== 'undefined') afk = data.afk;
|
||||||
afk = Boolean(afk);
|
afk = Boolean(afk);
|
||||||
|
|
||||||
|
|
@ -9628,11 +9630,12 @@ class ClientUser extends User {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the game the client user is playing.
|
* Sets the game the client user is playing.
|
||||||
* @param {string} game Game being played
|
* @param {?string} game Game being played
|
||||||
* @param {string} [streamingURL] Twitch stream URL
|
* @param {string} [streamingURL] Twitch stream URL
|
||||||
* @returns {Promise<ClientUser>}
|
* @returns {Promise<ClientUser>}
|
||||||
*/
|
*/
|
||||||
setGame(game, streamingURL) {
|
setGame(game, streamingURL) {
|
||||||
|
if (game === null) return this.setPresence({ game });
|
||||||
return this.setPresence({ game: {
|
return this.setPresence({ game: {
|
||||||
name: game,
|
name: game,
|
||||||
url: streamingURL,
|
url: streamingURL,
|
||||||
|
|
|
||||||
8
discord.master.min.js
vendored
8
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue