feat: update flags

This commit is contained in:
Elysia 2023-03-02 18:26:25 +07:00
parent b1228f8148
commit 22b3dfe6c7
3 changed files with 7 additions and 6 deletions

View File

@ -17,14 +17,15 @@ class PremiumUsageFlags extends BitField {}
/**
* Numeric the Discord premium usage flags. All available properties:
* * `PREMIUM_DISCRIMINATOR`
* * `ANIMATED_AVATAR`
* * `BANNER`
* * `CUSTOM_DISCRIMINATOR`
* * `PROFILE_BANNER`
* @type {Object}
*/
PremiumUsageFlags.FLAGS = {
PREMIUM_DISCRIMINATOR: 1 << 0,
ANIMATED_AVATAR: 1 << 1,
BANNER: 1 << 2,
PROFILE_BANNER: 1 << 2,
};
module.exports = PremiumUsageFlags;

View File

@ -97,8 +97,8 @@ UserFlags.FLAGS = {
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.
QUARANTINED: Math.pow(2, 44), // [Undocumented] User is quarantined.
COLLABORATOR: Math.pow(2, 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.
COLLABORATOR: 1 << 50, // [Undocumented] User is a collaborator and has staff permissions.
RESTRICTED_COLLABORATOR: 1 << 51, // [Undocumented] User is a restricted collaborator and has staff permissions.
};
module.exports = UserFlags;

2
typings/index.d.ts vendored
View File

@ -4460,7 +4460,7 @@ export interface WebhookFields extends PartialWebhookFields {
//#region Typedefs
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 =
| 'INSTANCE'