mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 22:51:32 +00:00
Webpack build for branch master: b2c7fcb603
This commit is contained in:
parent
352ff627fe
commit
3f621013d3
2 changed files with 22 additions and 5 deletions
|
|
@ -418,6 +418,21 @@ exports.MessageTypes = [
|
|||
'GUILD_MEMBER_JOIN',
|
||||
];
|
||||
|
||||
/**
|
||||
* The type of a game of a users presence, e.g. `PLAYING`. Here are the available types:
|
||||
* - PLAYING
|
||||
* - STREAMING
|
||||
* - LISTENING
|
||||
* - WATCHING
|
||||
* @typedef {string} GameType
|
||||
*/
|
||||
exports.GameTypes = [
|
||||
'PLAYING',
|
||||
'STREAMING',
|
||||
'LISTENING',
|
||||
'WATCHING',
|
||||
];
|
||||
|
||||
exports.ExplicitContentFilterTypes = [
|
||||
'DISABLED',
|
||||
'NON_FRIENDS',
|
||||
|
|
@ -5630,7 +5645,9 @@ module.exports = Role;
|
|||
|
||||
/***/ }),
|
||||
/* 18 */
|
||||
/***/ (function(module, exports) {
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
const Constants = __webpack_require__(0);
|
||||
|
||||
/**
|
||||
* Represents a user's presence.
|
||||
|
|
@ -5687,9 +5704,9 @@ class Game {
|
|||
|
||||
/**
|
||||
* The type of the game status
|
||||
* @type {number}
|
||||
* @type {GameType}
|
||||
*/
|
||||
this.type = data.type;
|
||||
this.type = Constants.GameTypes[data.type];
|
||||
|
||||
/**
|
||||
* If the game is being streamed, a link to the stream
|
||||
|
|
@ -5704,7 +5721,7 @@ class Game {
|
|||
* @readonly
|
||||
*/
|
||||
get streaming() {
|
||||
return this.type === 1;
|
||||
return this.type === Constants.GameTypes[1];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
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