Webpack build for branch master: d6b7d31047

This commit is contained in:
Travis CI 2017-04-29 13:33:47 +00:00
parent 382c6f6d3c
commit 60f111d2c5
2 changed files with 15 additions and 6 deletions

View file

@ -11607,6 +11607,8 @@ module.exports = {
const User = __webpack_require__(16);
const Collection = __webpack_require__(3);
const ClientUserSettings = __webpack_require__(41);
const Constants = __webpack_require__(0);
/**
* Represents the logged in client's Discord user
* @extends {User}
@ -11784,7 +11786,12 @@ class ClientUser extends User {
if (data.status) {
if (typeof data.status !== 'string') throw new TypeError('Status must be a string');
status = data.status;
if (this.bot) {
status = data.status;
} else {
this.settings.update(Constants.UserSettingsMap.status, data.status);
status = 'invisible';
}
}
if (data.game) {
@ -11838,10 +11845,12 @@ class ClientUser extends User {
*/
setGame(game, streamingURL) {
if (!game) return this.setPresence({ game: null });
return this.setPresence({ game: {
name: game,
url: streamingURL,
} });
return this.setPresence({
game: {
name: game,
url: streamingURL,
},
});
}
/**

File diff suppressed because one or more lines are too long