Webpack build for branch master: 5c2086b351

This commit is contained in:
Travis CI 2017-02-22 20:25:51 +00:00
parent 96f444d941
commit 43cbff37b3
2 changed files with 8 additions and 5 deletions

View file

@ -9590,6 +9590,8 @@ class ClientUser extends User {
if (game.url) game.type = 1;
}
if (data.game === null) game = null;
if (typeof data.afk !== 'undefined') afk = data.afk;
afk = Boolean(afk);
@ -9628,11 +9630,12 @@ class ClientUser extends User {
/**
* 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
* @returns {Promise<ClientUser>}
*/
setGame(game, streamingURL) {
if (game === null) return this.setPresence({ game });
return this.setPresence({ game: {
name: game,
url: streamingURL,

File diff suppressed because one or more lines are too long