mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
Webpack build for branch master: d6b7d31047
This commit is contained in:
parent
382c6f6d3c
commit
60f111d2c5
2 changed files with 15 additions and 6 deletions
|
|
@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
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