feat: more invite flags

This commit is contained in:
Elysia
2025-10-11 17:18:50 +07:00
parent d9d11bd6b7
commit b519264a69
2 changed files with 10 additions and 5 deletions

View File

@@ -17,13 +17,18 @@ class InviteFlags extends BitField {}
/** /**
* Numeric the Discord invite flags. All available properties: * Numeric the Discord invite flags. All available properties:
* * `GUEST` * * `IS_GUEST_INVITE`
* * `VIEWED` * * `IS_VIEWED`
* * `IS_ENHANCED`
* * `IS_APPLICATION_BYPASS`
* @type {Object} * @type {Object}
* @see {@link https://docs.discord.food/resources/invite#invite-flags}
*/ */
InviteFlags.FLAGS = { InviteFlags.FLAGS = {
GUEST: 1 << 0, IS_GUEST_INVITE: 1 << 0,
VIEWED: 1 << 1, IS_VIEWED: 1 << 1,
IS_ENHANCED: 1 << 2,
IS_APPLICATION_BYPASS: 1 << 3,
}; };
module.exports = InviteFlags; module.exports = InviteFlags;

2
typings/index.d.ts vendored
View File

@@ -5075,7 +5075,7 @@ export type PurchasedFlagsString = 'NITRO_CLASSIC' | 'NITRO' | 'GUILD_BOOST' | '
export type PremiumUsageFlagsString = 'PREMIUM_DISCRIMINATOR' | 'ANIMATED_AVATAR' | 'PROFILE_BANNER'; export type PremiumUsageFlagsString = 'PREMIUM_DISCRIMINATOR' | 'ANIMATED_AVATAR' | 'PROFILE_BANNER';
export type InviteFlagsString = 'GUEST' | 'VIEWED'; export type InviteFlagsString = 'IS_GUEST_INVITE' | 'IS_VIEWED' | 'IS_ENHANCED' | 'IS_APPLICATION_BYPASS';
export type ActivitiesOptions = Omit<ActivityOptions, 'shardId'>; export type ActivitiesOptions = Omit<ActivityOptions, 'shardId'>;