Guild
Documentation / @discordeno/bot / Guild
Interface: Guild
Defined in: transformers/types.ts:915
Properties
afkChannelId?
optionalafkChannelId?:bigint
Defined in: transformers/types.ts:983
Id of afk channel
afkTimeout
afkTimeout:
number
Defined in: transformers/types.ts:921
Afk timeout in seconds
applicationId?
optionalapplicationId?:bigint
Defined in: transformers/types.ts:991
Application id of the guild creator if it is bot-created
approximateMemberCount?
optionalapproximateMemberCount?:number
Defined in: transformers/types.ts:961
Approximate number of members in this guild, returned from the GET /guilds/id endpoint when with_counts is true
approximatePresenceCount?
optionalapproximatePresenceCount?:number
Defined in: transformers/types.ts:963
Approximate number of non-offline members in this guild, returned from the GET /guilds/id endpoint when with_counts is true
banner?
optionalbanner?:bigint
Defined in: transformers/types.ts:1009
Banner hash
channels
channels:
Collection<bigint,Channel>
Defined in: transformers/types.ts:1003
Channels in the guild
defaultMessageNotifications
defaultMessageNotifications:
DefaultMessageNotificationLevels
Defined in: transformers/types.ts:927
Default message notifications level
description?
optionaldescription?:string
Defined in: transformers/types.ts:949
The description of a guild
discoverySplash?
optionaldiscoverySplash?:bigint
Defined in: transformers/types.ts:977
Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature
emojis
emojis:
Collection<bigint,Emoji>
Defined in: transformers/types.ts:989
Custom guild emojis
explicitContentFilter
explicitContentFilter:
ExplicitContentFilterLevels
Defined in: transformers/types.ts:929
Explicit content filter level
features
features: (
"animatedBanner"|"animatedIcon"|"applicationCommandPermissionsV2"|"autoModeration"|"banner"|"community"|"creatorMonetizableProvisional"|"creatorStorePage"|"developerSupportServer"|"discoverable"|"enhancedRoleColors"|"featurable"|"guildTags"|"guestsEnabled"|"invitesDisabled"|"inviteSplash"|"memberVerificationGateEnabled"|"moreSoundboard"|"moreStickers"|"news"|"partnered"|"previewEnabled"|"pruneRequiresAdmin"|"raidAlertsDisabled"|"roleIcons"|"roleSubscriptionsAvailableForPurchase"|"roleSubscriptionsEnabled"|"ticketedEventsEnabled"|"vanityUrl"|"verified"|"vipRegions"|"welcomeScreenEnabled")[]
Defined in: transformers/types.ts:931
Enabled guild features
icon?
optionalicon?:bigint
Defined in: transformers/types.ts:971
Icon hash
iconHash?
optionaliconHash?:bigint
Defined in: transformers/types.ts:973
Icon hash, returned when in the template object
id
id:
bigint
Defined in: transformers/types.ts:969
Guild id
incidentsData
incidentsData:
IncidentsData
Defined in: transformers/types.ts:1023
The incidents data for this guild
joinedAt?
optionaljoinedAt?:number
Defined in: transformers/types.ts:997
When this guild was joined at
large?
optionallarge?:boolean
Defined in: transformers/types.ts:937
True if this is considered a large guild
maxMembers?
optionalmaxMembers?:number
Defined in: transformers/types.ts:945
The maximum number of members for the guild
maxPresences?
optionalmaxPresences?:number
Defined in: transformers/types.ts:943
The maximum number of presences for the guild (the default value, currently 25000, is in effect when null is returned)
maxStageVideoChannelUsers?
optionalmaxStageVideoChannelUsers?:number
Defined in: transformers/types.ts:959
Maximum amount of users in a stage video channel
maxVideoChannelUsers?
optionalmaxVideoChannelUsers?:number
Defined in: transformers/types.ts:957
The maximum amount of users in a video channel
memberCount
memberCount:
number
Defined in: transformers/types.ts:941
Total number of members in this guild
members
members:
Collection<bigint,Member>
Defined in: transformers/types.ts:1001
Users in the guild
mfaLevel
mfaLevel:
MfaLevels
Defined in: transformers/types.ts:933
Required MFA level for the guild
name
name:
string
Defined in: transformers/types.ts:917
Guild name (2-100 characters, excluding trailing and leading whitespace)
nsfwLevel
nsfwLevel:
GuildAgeRestrictionLevel
Defined in: transformers/types.ts:965
Guild NSFW level
owner?
optionalowner?:boolean
Defined in: transformers/types.ts:919
True if the user is the owner of the guild
ownerId
ownerId:
bigint
Defined in: transformers/types.ts:979
Id of the owner
permissions
permissions:
bigint
Defined in: transformers/types.ts:981
Total permissions for the user in the guild (excludes overwrites and implicit permissions)
preferredLocale
preferredLocale:
string
Defined in: transformers/types.ts:1011
The preferred locale of a Community guild; used in server discovery and notices from Discord; defaults to "en-US"
premiumProgressBarEnabled
premiumProgressBarEnabled:
boolean
Defined in: transformers/types.ts:967
Whether the guild has the boost progress bar enabled
premiumSubscriptionCount?
optionalpremiumSubscriptionCount?:number
Defined in: transformers/types.ts:955
The number of boosts this guild currently has
premiumTier
premiumTier:
PremiumTiers
Defined in: transformers/types.ts:953
Premium tier (Server Boost level)
presences?
optionalpresences?:Partial<PresenceUpdate>[]
Defined in: transformers/types.ts:1007
Presences of the members in the guild, will only include non-offline members if the size is greater than large threshold
publicUpdatesChannelId?
optionalpublicUpdatesChannelId?:bigint
Defined in: transformers/types.ts:1013
The id of the channel where admins and moderators of Community guilds receive notices from Discord
roles
roles:
Collection<bigint,Role>
Defined in: transformers/types.ts:987
Roles in the guild
rulesChannelId?
optionalrulesChannelId?:bigint
Defined in: transformers/types.ts:995
The id of the channel where community guilds can display rules and/or guidelines
safetyAlertsChannelId?
optionalsafetyAlertsChannelId?:bigint
Defined in: transformers/types.ts:1021
The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
shardId
shardId:
number
Defined in: transformers/types.ts:951
splash?
optionalsplash?:bigint
Defined in: transformers/types.ts:975
Splash hash
stageInstances?
optionalstageInstances?:StageInstance[]
Defined in: transformers/types.ts:1017
Stage instances in the guild
stickers?
optionalstickers?:Collection<bigint,Sticker>
Defined in: transformers/types.ts:1019
Custom guild stickers
systemChannelFlags
systemChannelFlags:
SystemChannelFlags
Defined in: transformers/types.ts:935
System channel flags
systemChannelId?
optionalsystemChannelId?:bigint
Defined in: transformers/types.ts:993
The id of the channel where guild notices such as welcome messages and boost events are posted
threads
threads:
Collection<bigint,Channel>
Defined in: transformers/types.ts:1005
All active threads in the guild that the current user has permission to view
toggles
toggles:
GuildToggles
Defined in: transformers/types.ts:950
unavailable?
optionalunavailable?:boolean
Defined in: transformers/types.ts:939
True if this guild is unavailable due to an outage
vanityUrlCode?
optionalvanityUrlCode?:string
Defined in: transformers/types.ts:947
The vanity url code for the guild
verificationLevel
verificationLevel:
VerificationLevels
Defined in: transformers/types.ts:925
Verification level required for the guild
voiceStates
voiceStates:
Collection<bigint,VoiceState>
Defined in: transformers/types.ts:999
States of members currently in voice channels; lacks the guild_id key
welcomeScreen?
optionalwelcomeScreen?:WelcomeScreen
Defined in: transformers/types.ts:1015
The welcome screen of a Community guild, shown to new members, returned in an Invite's guild object
widgetChannelId?
optionalwidgetChannelId?:bigint
Defined in: transformers/types.ts:985
The channel id that the widget will generate an invite to, or null if set to no invite
widgetEnabled?
optionalwidgetEnabled?:boolean
Defined in: transformers/types.ts:923
True if the server widget is enabled