api-docs: Add GUILD_TAGS guild feature (#4271)

This commit is contained in:
Fleny
2025-07-30 17:50:47 +02:00
committed by GitHub
parent 5983af8c9b
commit f4098d573f
2 changed files with 11 additions and 0 deletions
@@ -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')
+2
View File
@@ -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',
}