GuildToggles
Documentation / @discordeno/bot / GuildToggles
Class: GuildToggles
Defined in: packages/bot/src/transformers/toggles/guild.ts:110
Extends
Constructors
new GuildToggles()
new GuildToggles(
guildOrTogglesBigint
):GuildToggles
Defined in: packages/bot/src/transformers/toggles/guild.ts:111
Parameters
guildOrTogglesBigint
bigint
| DiscordGuild
Returns
Overrides
ToggleBitfieldBigint
.constructor
Properties
bitfield
bitfield:
bigint
=0n
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:31
Inherited from
Accessors
animatedBanner
Get Signature
get animatedBanner():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:231
Whether the guild has access to set an animated guild banner image
Returns
boolean
animatedIcon
Get Signature
get animatedIcon():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:251
Whether the guild has access to set an animated guild icon
Returns
boolean
applicationCommandPermissionsV2
Get Signature
get applicationCommandPermissionsV2():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:306
Whether the guild is using the old permissions configuration behavior
Returns
boolean
autoModeration
Get Signature
get autoModeration():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:296
Whether the guild has set up auto moderation rules
Returns
boolean
banner
Get Signature
get banner():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:256
Whether the guild has access to set a guild banner image
Returns
boolean
community
Get Signature
get community():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:221
Whether the guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates
Returns
boolean
creatorMonetizableProvisional
Get Signature
get creatorMonetizableProvisional():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:311
Whether the guild has enabled monetization.
Returns
boolean
creatorStorePage
Get Signature
get creatorStorePage():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:316
Whether the guild has enabled the role subscription promo page.
Returns
boolean
developerSupportServer
Get Signature
get developerSupportServer():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:226
Whether the Guild has been set as a support server on the App Directory
Returns
boolean
discoverable
Get Signature
get discoverable():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:241
Whether the guild is able to be discovered in the directory
Returns
boolean
featurable
Get Signature
get featurable():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:246
Whether the guild is able to be featured in the directory
Returns
boolean
features
Get Signature
get features(): (
"banner"
|"verified"
|"animatedBanner"
|"animatedIcon"
|"applicationCommandPermissionsV2"
|"autoModeration"
|"community"
|"creatorMonetizableProvisional"
|"creatorStorePage"
|"developerSupportServer"
|"discoverable"
|"featurable"
|"invitesDisabled"
|"inviteSplash"
|"memberVerificationGateEnabled"
|"moreSoundboard"
|"moreStickers"
|"news"
|"partnered"
|"previewEnabled"
|"raidAlertsDisabled"
|"roleIcons"
|"roleSubscriptionsAvailableForPurchase"
|"roleSubscriptionsEnabled"
|"ticketedEventsEnabled"
|"vanityUrl"
|"vipRegions"
|"welcomeScreenEnabled"
)[]
Defined in: packages/bot/src/transformers/toggles/guild.ts:158
Returns
("banner"
| "verified"
| "animatedBanner"
| "animatedIcon"
| "applicationCommandPermissionsV2"
| "autoModeration"
| "community"
| "creatorMonetizableProvisional"
| "creatorStorePage"
| "developerSupportServer"
| "discoverable"
| "featurable"
| "invitesDisabled"
| "inviteSplash"
| "memberVerificationGateEnabled"
| "moreSoundboard"
| "moreStickers"
| "news"
| "partnered"
| "previewEnabled"
| "raidAlertsDisabled"
| "roleIcons"
| "roleSubscriptionsAvailableForPurchase"
| "roleSubscriptionsEnabled"
| "ticketedEventsEnabled"
| "vanityUrl"
| "vipRegions"
| "welcomeScreenEnabled"
)[]
invitesDisabled
Get Signature
get invitesDisabled():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:301
Whether the guild has paused invites, preventing new users from joining
Returns
boolean
inviteSplash
Get Signature
get inviteSplash():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:196
Whether the guild has access to set an invite splash background
Returns
boolean
large
Get Signature
get large():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:181
Whether this is considered a large guild
Returns
boolean
memberVerificationGateEnabled
Get Signature
get memberVerificationGateEnabled():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:266
Whether the guild has enabled Membership Screening
Returns
boolean
moreSoundboard
Get Signature
get moreSoundboard():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:271
Whether the guild has more soundboard sound slot
Returns
boolean
moreStickers
Get Signature
get moreStickers():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:286
Whether the guild has increased custom sticker slots
Returns
boolean
news
Get Signature
get news():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:236
Whether the guild has access to create news channels
Returns
boolean
owner
Get Signature
get owner():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:171
Whether the bot is the owner of the guild
Returns
boolean
partnered
Get Signature
get partnered():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:216
Whether the guild is partnered
Returns
boolean
premiumProgressBarEnabled
Get Signature
get premiumProgressBarEnabled():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:191
Whether the guild has the boost progress bar enabled
Returns
boolean
previewEnabled
Get Signature
get previewEnabled():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:276
Whether the guild can be previewed before joining via Membership Screening or the directory
Returns
boolean
raidAlertsDisabled
Get Signature
get raidAlertsDisabled():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:321
Whether the guild has disabled alerts for join raids in the configured safety alerts channel
Returns
boolean
roleIcons
Get Signature
get roleIcons():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:291
Whether the guild is able to set role icons
Returns
boolean
roleSubscriptionsAvailableForPurchase
Get Signature
get roleSubscriptionsAvailableForPurchase():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:326
Whether the guild has role subscriptions that can be purchased.
Returns
boolean
roleSubscriptionsEnabled
Get Signature
get roleSubscriptionsEnabled():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:331
Whether the guild has enabled role subscriptions.
Returns
boolean
soundboard
Get Signature
get soundboard():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:336
Whether the guild has created soundboard sounds.
Returns
boolean
ticketedEventsEnabled
Get Signature
get ticketedEventsEnabled():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:281
Whether the guild has enabled ticketed events
Returns
boolean
unavailable
Get Signature
get unavailable():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:186
Whether this guild is unavailable due to an outage
Returns
boolean
vanityUrl
Get Signature
get vanityUrl():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:206
Whether the guild has access to set a vanity URL
Returns
boolean
verified
Get Signature
get verified():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:211
Whether the guild is verified
Returns
boolean
vipRegions
Get Signature
get vipRegions():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:201
Whether the guild has access to set 384 kbps bitrate in voice (previously VIP voice servers)
Returns
boolean
welcomeScreenEnabled
Get Signature
get welcomeScreenEnabled():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:261
Whether the guild has enabled the welcome screen
Returns
boolean
widgetEnabled
Get Signature
get widgetEnabled():
boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:176
Whether the server widget is enabled
Returns
boolean
Methods
add()
add(
bits
):this
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:43
Adds some bits to the bitfield.
Parameters
bits
bigint
Returns
this
Inherited from
contains()
contains(
bits
):boolean
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:38
Tests whether or not this bitfield has the permission requested.
Parameters
bits
bigint
Returns
boolean
Inherited from
has()
has(
permissions
):boolean
Defined in: packages/bot/src/transformers/toggles/guild.ts:341
Checks whether or not the permissions exist in this
Parameters
permissions
"owner"
| "widgetEnabled"
| "large"
| "unavailable"
| "premiumProgressBarEnabled"
| "banner"
| "verified"
| "soundboard"
| "animatedBanner"
| "animatedIcon"
| "applicationCommandPermissionsV2"
| "autoModeration"
| "community"
| "creatorMonetizableProvisional"
| "creatorStorePage"
| "developerSupportServer"
| "discoverable"
| "featurable"
| "invitesDisabled"
| "inviteSplash"
| "memberVerificationGateEnabled"
| "moreSoundboard"
| "moreStickers"
| "news"
| "partnered"
| "previewEnabled"
| "raidAlertsDisabled"
| "roleIcons"
| "roleSubscriptionsAvailableForPurchase"
| "roleSubscriptionsEnabled"
| "ticketedEventsEnabled"
| "vanityUrl"
| "vipRegions"
| "welcomeScreenEnabled"
| ("owner"
| "widgetEnabled"
| "large"
| "unavailable"
| "premiumProgressBarEnabled"
| "banner"
| "verified"
| "soundboard"
| "animatedBanner"
| "animatedIcon"
| "applicationCommandPermissionsV2"
| "autoModeration"
| "community"
| "creatorMonetizableProvisional"
| "creatorStorePage"
| "developerSupportServer"
| "discoverable"
| "featurable"
| "invitesDisabled"
| "inviteSplash"
| "memberVerificationGateEnabled"
| "moreSoundboard"
| "moreStickers"
| "news"
| "partnered"
| "previewEnabled"
| "raidAlertsDisabled"
| "roleIcons"
| "roleSubscriptionsAvailableForPurchase"
| "roleSubscriptionsEnabled"
| "ticketedEventsEnabled"
| "vanityUrl"
| "vipRegions"
| "welcomeScreenEnabled"
)[]
Returns
boolean
list()
list():
Record
<"owner"
|"widgetEnabled"
|"large"
|"unavailable"
|"premiumProgressBarEnabled"
|"banner"
|"verified"
|"soundboard"
|"animatedBanner"
|"animatedIcon"
|"applicationCommandPermissionsV2"
|"autoModeration"
|"community"
|"creatorMonetizableProvisional"
|"creatorStorePage"
|"developerSupportServer"
|"discoverable"
|"featurable"
|"invitesDisabled"
|"inviteSplash"
|"memberVerificationGateEnabled"
|"moreSoundboard"
|"moreStickers"
|"news"
|"partnered"
|"previewEnabled"
|"raidAlertsDisabled"
|"roleIcons"
|"roleSubscriptionsAvailableForPurchase"
|"roleSubscriptionsEnabled"
|"ticketedEventsEnabled"
|"vanityUrl"
|"vipRegions"
|"welcomeScreenEnabled"
,boolean
>
Defined in: packages/bot/src/transformers/toggles/guild.ts:348
Lists all the toggles for the role and whether or not each is true or false.
Returns
Record
<"owner"
| "widgetEnabled"
| "large"
| "unavailable"
| "premiumProgressBarEnabled"
| "banner"
| "verified"
| "soundboard"
| "animatedBanner"
| "animatedIcon"
| "applicationCommandPermissionsV2"
| "autoModeration"
| "community"
| "creatorMonetizableProvisional"
| "creatorStorePage"
| "developerSupportServer"
| "discoverable"
| "featurable"
| "invitesDisabled"
| "inviteSplash"
| "memberVerificationGateEnabled"
| "moreSoundboard"
| "moreStickers"
| "news"
| "partnered"
| "previewEnabled"
| "raidAlertsDisabled"
| "roleIcons"
| "roleSubscriptionsAvailableForPurchase"
| "roleSubscriptionsEnabled"
| "ticketedEventsEnabled"
| "vanityUrl"
| "vipRegions"
| "welcomeScreenEnabled"
, boolean
>
remove()
remove(
bits
):this
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:49
Removes some bits from the bitfield.
Parameters
bits
bigint
Returns
this
Inherited from
toJSON()
toJSON():
string
Defined in: packages/bot/src/transformers/toggles/ToggleBitfield.ts:54
Returns
string