feat: update flags
This commit is contained in:
parent
b1228f8148
commit
22b3dfe6c7
@ -17,14 +17,15 @@ class PremiumUsageFlags extends BitField {}
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Numeric the Discord premium usage flags. All available properties:
|
* Numeric the Discord premium usage flags. All available properties:
|
||||||
|
* * `PREMIUM_DISCRIMINATOR`
|
||||||
* * `ANIMATED_AVATAR`
|
* * `ANIMATED_AVATAR`
|
||||||
* * `BANNER`
|
* * `PROFILE_BANNER`
|
||||||
* * `CUSTOM_DISCRIMINATOR`
|
|
||||||
* @type {Object}
|
* @type {Object}
|
||||||
*/
|
*/
|
||||||
PremiumUsageFlags.FLAGS = {
|
PremiumUsageFlags.FLAGS = {
|
||||||
|
PREMIUM_DISCRIMINATOR: 1 << 0,
|
||||||
ANIMATED_AVATAR: 1 << 1,
|
ANIMATED_AVATAR: 1 << 1,
|
||||||
BANNER: 1 << 2,
|
PROFILE_BANNER: 1 << 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = PremiumUsageFlags;
|
module.exports = PremiumUsageFlags;
|
||||||
|
@ -97,8 +97,8 @@ UserFlags.FLAGS = {
|
|||||||
DISABLED: Math.pow(2, 41), // [Undocumented] User is currently temporarily or permanently disabled.
|
DISABLED: Math.pow(2, 41), // [Undocumented] User is currently temporarily or permanently disabled.
|
||||||
VERIFIED_EMAIL: Math.pow(2, 43), // [Undocumented] User has a verified email on their account.
|
VERIFIED_EMAIL: Math.pow(2, 43), // [Undocumented] User has a verified email on their account.
|
||||||
QUARANTINED: Math.pow(2, 44), // [Undocumented] User is quarantined.
|
QUARANTINED: Math.pow(2, 44), // [Undocumented] User is quarantined.
|
||||||
COLLABORATOR: Math.pow(2, 50), // [Undocumented] User is a collaborator and has staff permissions.
|
COLLABORATOR: 1 << 50, // [Undocumented] User is a collaborator and has staff permissions.
|
||||||
RESTRICTED_COLLABORATOR: Math.pow(2, 51), // [Undocumented] User is a restricted collaborator and has staff permissions.
|
RESTRICTED_COLLABORATOR: 1 << 51, // [Undocumented] User is a restricted collaborator and has staff permissions.
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = UserFlags;
|
module.exports = UserFlags;
|
||||||
|
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@ -4460,7 +4460,7 @@ export interface WebhookFields extends PartialWebhookFields {
|
|||||||
//#region Typedefs
|
//#region Typedefs
|
||||||
export type PurchasedFlagsString = 'NITRO_CLASSIC' | 'NITRO' | 'GUILD_BOOST';
|
export type PurchasedFlagsString = 'NITRO_CLASSIC' | 'NITRO' | 'GUILD_BOOST';
|
||||||
|
|
||||||
export type PremiumUsageFlagsString = 'ANIMATED_AVATAR' | 'BANNER' | 'CUSTOM_DISCRIMINATOR';
|
export type PremiumUsageFlagsString = 'PREMIUM_DISCRIMINATOR' | 'ANIMATED_AVATAR' | 'PROFILE_BANNER';
|
||||||
|
|
||||||
export type ActivityFlagsString =
|
export type ActivityFlagsString =
|
||||||
| 'INSTANCE'
|
| 'INSTANCE'
|
||||||
|
Loading…
Reference in New Issue
Block a user