DiscordGuild
Documentation / @discordeno/bot / DiscordGuild
Interface: DiscordGuild
Defined in: packages/types/dist/types/discord.d.ts:731
https://discord.com/developers/docs/resources/guild#guild-object
Properties
afk_channel_id
afk_channel_id:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:797
Id of afk channel
afk_timeout
afk_timeout:
number
Defined in: packages/types/dist/types/discord.d.ts:737
Afk timeout in seconds
application_id
application_id:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:805
Application id of the guild creator if it is bot-created
approximate_member_count?
optional
approximate_member_count:number
Defined in: packages/types/dist/types/discord.d.ts:775
Approximate number of members in this guild, returned from the GET /guilds/id endpoint when with_counts is true
approximate_presence_count?
optional
approximate_presence_count:number
Defined in: packages/types/dist/types/discord.d.ts:777
Approximate number of non-offline members in this guild, returned from the GET /guilds/id endpoint when with_counts is true
banner
banner:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:823
Banner hash
channels?
optional
channels:DiscordChannel
[]
Defined in: packages/types/dist/types/discord.d.ts:817
Channels in the guild
default_message_notifications
default_message_notifications:
DefaultMessageNotificationLevels
Defined in: packages/types/dist/types/discord.d.ts:743
Default message notifications level
description
description:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:765
The description of a guild
discovery_splash
discovery_splash:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:791
Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature
emojis
emojis:
DiscordEmoji
[]
Defined in: packages/types/dist/types/discord.d.ts:803
Custom guild emojis
explicit_content_filter
explicit_content_filter:
ExplicitContentFilterLevels
Defined in: packages/types/dist/types/discord.d.ts:745
Explicit content filter level
features
features:
GuildFeatures
[]
Defined in: packages/types/dist/types/discord.d.ts:747
Enabled guild features
icon
icon:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:785
Icon hash
icon_hash?
optional
icon_hash:null
|string
Defined in: packages/types/dist/types/discord.d.ts:787
Icon hash, returned when in the template object
id
id:
string
Defined in: packages/types/dist/types/discord.d.ts:783
Guild id
joined_at?
optional
joined_at:string
Defined in: packages/types/dist/types/discord.d.ts:811
When this guild was joined at
large?
optional
large:boolean
Defined in: packages/types/dist/types/discord.d.ts:753
True if this is considered a large guild
max_members?
optional
max_members:number
Defined in: packages/types/dist/types/discord.d.ts:761
The maximum number of members for the guild
max_presences?
optional
max_presences:null
|number
Defined in: packages/types/dist/types/discord.d.ts:759
The maximum number of presences for the guild (the default value, currently 25000, is in effect when null is returned)
max_stage_video_channel_users?
optional
max_stage_video_channel_users:number
Defined in: packages/types/dist/types/discord.d.ts:773
Maximum amount of users in a stage video channel
max_video_channel_users?
optional
max_video_channel_users:number
Defined in: packages/types/dist/types/discord.d.ts:771
The maximum amount of users in a video channel
member_count?
optional
member_count:number
Defined in: packages/types/dist/types/discord.d.ts:757
Total number of members in this guild
members?
optional
members:DiscordMember
[]
Defined in: packages/types/dist/types/discord.d.ts:815
Users in the guild
mfa_level
mfa_level:
MfaLevels
Defined in: packages/types/dist/types/discord.d.ts:749
Required MFA level for the guild
name
name:
string
Defined in: packages/types/dist/types/discord.d.ts:733
Guild name (2-100 characters, excluding trailing and leading whitespace)
nsfw_level
nsfw_level:
GuildNsfwLevel
Defined in: packages/types/dist/types/discord.d.ts:779
Guild NSFW level
owner?
optional
owner:boolean
Defined in: packages/types/dist/types/discord.d.ts:735
True if the user is the owner of the guild
owner_id
owner_id:
string
Defined in: packages/types/dist/types/discord.d.ts:793
Id of the owner
permissions?
optional
permissions:string
Defined in: packages/types/dist/types/discord.d.ts:795
Total permissions for the user in the guild (excludes overwrites and implicit permissions)
preferred_locale
preferred_locale:
string
Defined in: packages/types/dist/types/discord.d.ts:825
The preferred locale of a Community guild; used in server discovery and notices from Discord; defaults to "en-US"
premium_progress_bar_enabled
premium_progress_bar_enabled:
boolean
Defined in: packages/types/dist/types/discord.d.ts:781
Whether the guild has the boost progress bar enabled
premium_subscription_count?
optional
premium_subscription_count:number
Defined in: packages/types/dist/types/discord.d.ts:769
The number of boosts this guild currently has
premium_tier
premium_tier:
PremiumTiers
Defined in: packages/types/dist/types/discord.d.ts:767
Premium tier (Server Boost level)
presences?
optional
presences:Partial
<DiscordPresenceUpdate
>[]
Defined in: packages/types/dist/types/discord.d.ts:821
Presences of the members in the guild, will only include non-offline members if the size is greater than large threshold
public_updates_channel_id
public_updates_channel_id:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:827
The id of the channel where admins and moderators of Community guilds receive notices from Discord
roles
roles:
DiscordRole
[]
Defined in: packages/types/dist/types/discord.d.ts:801
Roles in the guild
rules_channel_id
rules_channel_id:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:809
The id of the channel where community guilds can display rules and/or guidelines
safety_alerts_channel_id
safety_alerts_channel_id:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:835
The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
soundboard_sounds?
optional
soundboard_sounds:DiscordSoundboardSound
[]
Defined in: packages/types/dist/types/discord.d.ts:842
Soundboard sounds in the guild
Remarks
Only sent by the gateway
splash
splash:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:789
Splash hash
stage_instances?
optional
stage_instances:DiscordStageInstance
[]
Defined in: packages/types/dist/types/discord.d.ts:831
Stage instances in the guild
stickers?
optional
stickers:DiscordSticker
[]
Defined in: packages/types/dist/types/discord.d.ts:833
Custom guild stickers
system_channel_flags
system_channel_flags:
SystemChannelFlags
Defined in: packages/types/dist/types/discord.d.ts:751
System channel flags
system_channel_id
system_channel_id:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:807
The id of the channel where guild notices such as welcome messages and boost events are posted
threads?
optional
threads:DiscordChannel
[]
Defined in: packages/types/dist/types/discord.d.ts:819
All active threads in the guild that the current user has permission to view
unavailable?
optional
unavailable:boolean
Defined in: packages/types/dist/types/discord.d.ts:755
True if this guild is unavailable due to an outage
vanity_url_code
vanity_url_code:
null
|string
Defined in: packages/types/dist/types/discord.d.ts:763
The vanity url code for the guild
verification_level
verification_level:
VerificationLevels
Defined in: packages/types/dist/types/discord.d.ts:741
Verification level required for the guild
voice_states?
optional
voice_states:Omit
<DiscordVoiceState
,"guildId"
>[]
Defined in: packages/types/dist/types/discord.d.ts:813
States of members currently in voice channels; lacks the guild_id key
welcome_screen?
optional
welcome_screen:DiscordWelcomeScreen
Defined in: packages/types/dist/types/discord.d.ts:829
The welcome screen of a Community guild, shown to new members, returned in an Invite's guild object
widget_channel_id?
optional
widget_channel_id:null
|string
Defined in: packages/types/dist/types/discord.d.ts:799
The channel id that the widget will generate an invite to, or null if set to no invite
widget_enabled?
optional
widget_enabled:boolean
Defined in: packages/types/dist/types/discord.d.ts:739
True if the server widget is enabled