diff --git a/packages/bot/src/transformers/toggles/guild.ts b/packages/bot/src/transformers/toggles/guild.ts index 6d289c823..a87a61e5e 100644 --- a/packages/bot/src/transformers/toggles/guild.ts +++ b/packages/bot/src/transformers/toggles/guild.ts @@ -31,6 +31,7 @@ const featureNames = [ 'vipRegions', 'welcomeScreenEnabled', 'guestsEnabled', + 'guildTags', 'enhancedRoleColors', ] as const @@ -108,6 +109,8 @@ export const GuildToggle = { welcomeScreenEnabled: 1n << 18n, /** Whether the guild has access to guest invites */ guestsEnabled: 1n << 26n, + /** Whether the guild has access to set guild tags */ + guildTags: 1n << 36n, /** Whether the guild is able to set gradient colors to roles */ enhancedRoleColors: 1n << 35n, } @@ -158,6 +161,7 @@ export class GuildToggles extends ToggleBitfieldBigint { if (guild.features.includes(GuildFeatures.VipRegions)) this.add(GuildToggle.vipRegions) if (guild.features.includes(GuildFeatures.WelcomeScreenEnabled)) this.add(GuildToggle.welcomeScreenEnabled) if (guild.features.includes(GuildFeatures.GuestsEnabled)) this.add(GuildToggle.guestsEnabled) + if (guild.features.includes(GuildFeatures.GuildTags)) this.add(GuildToggle.guildTags) if (guild.features.includes(GuildFeatures.EnhancedRoleColors)) this.add(GuildToggle.enhancedRoleColors) } } @@ -349,6 +353,11 @@ export class GuildToggles extends ToggleBitfieldBigint { return this.has('guestsEnabled') } + /** Whether the guild has access to set guild tags */ + get guildTags(): boolean { + return this.has('guildTags') + } + /** Whether the guild is able to set gradient colors to roles */ get enhancedRoleColors(): boolean { return this.has('enhancedRoleColors') diff --git a/packages/types/src/discord/guild.ts b/packages/types/src/discord/guild.ts index 7764620df..4fbdb37b0 100644 --- a/packages/types/src/discord/guild.ts +++ b/packages/types/src/discord/guild.ts @@ -232,6 +232,8 @@ export enum GuildFeatures { WelcomeScreenEnabled = 'WELCOME_SCREEN_ENABLED', /** Guild has access to guest invites */ GuestsEnabled = 'GUESTS_ENABLED', + /** Guild has access to set guild tags */ + GuildTags = 'GUILD_TAGS', /** Guild is able to set gradient colors to roles */ EnhancedRoleColors = 'ENHANCED_ROLE_COLORS', }