feat: Update UserFlags & ApplicationFlags
This commit is contained in:
parent
f6464ea818
commit
0c6ba7a211
@ -23,6 +23,14 @@ class ApplicationFlags extends BitField {}
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Numeric application flags. All available properties:
|
* Numeric application flags. All available properties:
|
||||||
|
* * `EMBEDDED_RELEASED`
|
||||||
|
* * `MANAGED_EMOJI`
|
||||||
|
* * `GROUP_DM_CREATE`
|
||||||
|
* * `RPC_PRIVATE_BETA`
|
||||||
|
* * `ALLOW_ASSETS`
|
||||||
|
* * `ALLOW_ACTIVITY_ACTION_SPECTATE`
|
||||||
|
* * `ALLOW_ACTIVITY_ACTION_JOIN_REQUEST`
|
||||||
|
* * `RPC_HAS_CONNECTED`
|
||||||
* * `GATEWAY_PRESENCE`
|
* * `GATEWAY_PRESENCE`
|
||||||
* * `GATEWAY_PRESENCE_LIMITED`
|
* * `GATEWAY_PRESENCE_LIMITED`
|
||||||
* * `GATEWAY_GUILD_MEMBERS`
|
* * `GATEWAY_GUILD_MEMBERS`
|
||||||
@ -33,10 +41,20 @@ class ApplicationFlags extends BitField {}
|
|||||||
* * `GATEWAY_MESSAGE_CONTENT_LIMITED`
|
* * `GATEWAY_MESSAGE_CONTENT_LIMITED`
|
||||||
* * `EMBEDDED_FIRST_PARTY`
|
* * `EMBEDDED_FIRST_PARTY`
|
||||||
* * `APPLICATION_COMMAND_BADGE`
|
* * `APPLICATION_COMMAND_BADGE`
|
||||||
|
* * `ACTIVE`
|
||||||
* @type {Object}
|
* @type {Object}
|
||||||
* @see {@link https://discord.com/developers/docs/resources/application#application-object-application-flags}
|
* @see {@link https://discord.com/developers/docs/resources/application#application-object-application-flags}
|
||||||
|
* @see {@link https://flags.lewistehminerz.dev/}
|
||||||
*/
|
*/
|
||||||
ApplicationFlags.FLAGS = {
|
ApplicationFlags.FLAGS = {
|
||||||
|
EMBEDDED_RELEASED: 1 << 1,
|
||||||
|
MANAGED_EMOJI: 1 << 2,
|
||||||
|
GROUP_DM_CREATE: 1 << 4,
|
||||||
|
RPC_PRIVATE_BETA: 1 << 5,
|
||||||
|
ALLOW_ASSETS: 1 << 8,
|
||||||
|
ALLOW_ACTIVITY_ACTION_SPECTATE: 1 << 9,
|
||||||
|
ALLOW_ACTIVITY_ACTION_JOIN_REQUEST: 1 << 10,
|
||||||
|
RPC_HAS_CONNECTED: 1 << 11,
|
||||||
GATEWAY_PRESENCE: 1 << 12,
|
GATEWAY_PRESENCE: 1 << 12,
|
||||||
GATEWAY_PRESENCE_LIMITED: 1 << 13,
|
GATEWAY_PRESENCE_LIMITED: 1 << 13,
|
||||||
GATEWAY_GUILD_MEMBERS: 1 << 14,
|
GATEWAY_GUILD_MEMBERS: 1 << 14,
|
||||||
@ -47,6 +65,7 @@ ApplicationFlags.FLAGS = {
|
|||||||
GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
|
GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
|
||||||
EMBEDDED_FIRST_PARTY: 1 << 20,
|
EMBEDDED_FIRST_PARTY: 1 << 20,
|
||||||
APPLICATION_COMMAND_BADGE: 1 << 23,
|
APPLICATION_COMMAND_BADGE: 1 << 23,
|
||||||
|
ACTIVE: 1 << 24,
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = ApplicationFlags;
|
module.exports = ApplicationFlags;
|
||||||
|
@ -190,7 +190,7 @@ class Options extends null {
|
|||||||
referrer_current: '',
|
referrer_current: '',
|
||||||
referring_domain_current: '',
|
referring_domain_current: '',
|
||||||
release_channel: 'stable',
|
release_channel: 'stable',
|
||||||
client_build_number: 156904,
|
client_build_number: 157708,
|
||||||
client_event_source: null,
|
client_event_source: null,
|
||||||
},
|
},
|
||||||
// ? capabilities: 2045,
|
// ? capabilities: 2045,
|
||||||
|
@ -80,9 +80,9 @@ UserFlags.FLAGS = {
|
|||||||
EARLY_VERIFIED_BOT_DEVELOPER: 1 << 17,
|
EARLY_VERIFIED_BOT_DEVELOPER: 1 << 17,
|
||||||
DISCORD_CERTIFIED_MODERATOR: 1 << 18,
|
DISCORD_CERTIFIED_MODERATOR: 1 << 18,
|
||||||
BOT_HTTP_INTERACTIONS: 1 << 19,
|
BOT_HTTP_INTERACTIONS: 1 << 19,
|
||||||
SPAMMER: Math.pow(2, 20), // [Undocumented] User is marked as a spammer.
|
SPAMMER: 1 << 20, // [Undocumented] User is marked as a spammer.
|
||||||
DISABLE_PREMIUM: Math.pow(2, 21), // [Undocumented] Forcefully disables Nitro features.
|
DISABLE_PREMIUM: 1 << 21, // [Undocumented] Forcefully disables Nitro features.
|
||||||
ACTIVE_DEVELOPER: Math.pow(2, 22), // User is an active developer.
|
ACTIVE_DEVELOPER: 1 << 22, // User is an active developer.
|
||||||
HIGH_GLOBAL_RATE_LIMIT: Math.pow(2, 33), // [Undocumented] User is a high global rate limit.
|
HIGH_GLOBAL_RATE_LIMIT: Math.pow(2, 33), // [Undocumented] User is a high global rate limit.
|
||||||
DELETED: Math.pow(2, 34), // [Undocumented] Account has been deleted.
|
DELETED: Math.pow(2, 34), // [Undocumented] Account has been deleted.
|
||||||
DISABLED_SUSPICIOUS_ACTIVITY: Math.pow(2, 35), // [Undocumented] Account has been disabled for suspicious activity.
|
DISABLED_SUSPICIOUS_ACTIVITY: Math.pow(2, 35), // [Undocumented] Account has been disabled for suspicious activity.
|
||||||
|
Loading…
Reference in New Issue
Block a user