DiscordGuild
Documentation / @discordeno/types / DiscordGuild
Interface: DiscordGuild
Defined in: discord/guild.ts:13
https://docs.discord.com/developers/resources/guild#guild-object-guild-structure
Extends
Partial<DiscordGuildCreateExtra>
Properties
afk_channel_id
afk_channel_id:
string|null
Defined in: discord/guild.ts:50
Id of afk channel
afk_timeout
afk_timeout:
number
Defined in: discord/guild.ts:52
Afk timeout in seconds
application_id
application_id:
string|null
Defined in: discord/guild.ts:72
Application id of the guild creator if it is bot-created
approximate_member_count?
optionalapproximate_member_count?:number
Defined in: discord/guild.ts:102
Approximate number of members in this guild, returned from the GET /guilds/id endpoint when with_counts is true
approximate_presence_count?
optionalapproximate_presence_count?:number
Defined in: discord/guild.ts:104
Approximate number of non-offline members in this guild, returned from the GET /guilds/id endpoint when with_counts is true
banner
banner:
string|null
Defined in: discord/guild.ts:88
Banner hash
channels?
optionalchannels?:DiscordChannel[]
Defined in: discord/gateway.ts:447
Channels in the guild
Inherited from
DiscordGuildCreateExtra.channels
default_message_notifications
default_message_notifications:
DefaultMessageNotificationLevels
Defined in: discord/guild.ts:60
Default message notifications level
description
description:
string|null
Defined in: discord/guild.ts:86
The description of a guild
discovery_splash
discovery_splash:
string|null
Defined in: discord/guild.ts:25
Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature
emojis
emojis:
DiscordEmoji[]
Defined in: discord/guild.ts:66
Custom guild emojis
explicit_content_filter
explicit_content_filter:
ExplicitContentFilterLevels
Defined in: discord/guild.ts:62
Explicit content filter level
features
features:
GuildFeatures[]
Defined in: discord/guild.ts:68
Enabled guild features
guild_scheduled_events?
optionalguild_scheduled_events?:DiscordScheduledEvent[]
Defined in: discord/gateway.ts:460
Scheduled events in the guild
Inherited from
DiscordGuildCreateExtra.guild_scheduled_events
icon
icon:
string|null
Defined in: discord/guild.ts:19
Icon hash
icon_hash?
optionalicon_hash?:string|null
Defined in: discord/guild.ts:21
Icon hash, returned when in the template object
id
id:
string
Defined in: discord/guild.ts:15
Guild id
incidents_data
incidents_data:
DiscordIncidentsData|null
Defined in: discord/guild.ts:116
The incidents data for this guild
joined_at?
optionaljoined_at?:string
Defined in: discord/gateway.ts:430
When this guild was joined at
Inherited from
DiscordGuildCreateExtra.joined_at
large?
optionallarge?:boolean
Defined in: discord/gateway.ts:432
If this is considered a large guild
Inherited from
max_members?
optionalmax_members?:number
Defined in: discord/guild.ts:82
The maximum number of members for the guild
max_presences?
optionalmax_presences?:number|null
Defined in: discord/guild.ts:80
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?
optionalmax_stage_video_channel_users?:number
Defined in: discord/guild.ts:100
Maximum amount of users in a stage video channel
max_video_channel_users?
optionalmax_video_channel_users?:number
Defined in: discord/guild.ts:98
The maximum amount of users in a video channel
member_count?
optionalmember_count?:number
Defined in: discord/gateway.ts:436
Total number of member in this guild
Inherited from
DiscordGuildCreateExtra.member_count
members?
optionalmembers?:DiscordMemberWithUser[]
Defined in: discord/gateway.ts:445
Users in the guild
Inherited from
DiscordGuildCreateExtra.members
mfa_level
mfa_level:
MfaLevels
Defined in: discord/guild.ts:70
Required MFA level for the guild
name
name:
string
Defined in: discord/guild.ts:17
Guild name (2-100 characters, excluding trailing and leading whitespace)
nsfw_level
nsfw_level:
GuildNsfwLevel
Defined in: discord/guild.ts:108
Guild NSFW level
owner?
optionalowner?:boolean
Defined in: discord/guild.ts:32
True if the user is the owner of the guild
Remarks
This field is only sent when using the Get Guilds endpoint
owner_id
owner_id:
string
Defined in: discord/guild.ts:34
Id of the owner
permissions?
optionalpermissions?:string
Defined in: discord/guild.ts:41
Total permissions for the user in the guild (excludes overwrites and implicit permissions)
Remarks
This field is only sent when using the Get Guilds endpoint
preferred_locale
preferred_locale:
string
Defined in: discord/guild.ts:94
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: discord/guild.ts:112
Whether the guild has the boost progress bar enabled
premium_subscription_count?
optionalpremium_subscription_count?:number
Defined in: discord/guild.ts:92
The number of boosts this guild currently has
premium_tier
premium_tier:
PremiumTiers
Defined in: discord/guild.ts:90
Premium tier (Server Boost level)
presences?
optionalpresences?:Partial<DiscordPresenceUpdate>[]
Defined in: discord/gateway.ts:456
Presences of the members in the guild
Remarks
Will only include non-offline members if the size is greater than the large threshold.
Inherited from
DiscordGuildCreateExtra.presences
public_updates_channel_id
public_updates_channel_id:
string|null
Defined in: discord/guild.ts:96
The id of the channel where admins and moderators of Community guilds receive notices from Discord
region?
optionalregion?:string|null
Defined in: discord/guild.ts:48
Voice region id for the guild
Deprecated
This field is deprecated and is replaced by Channel.rtc_region
roles
roles:
DiscordRole[]
Defined in: discord/guild.ts:64
Roles in the guild
rules_channel_id
rules_channel_id:
string|null
Defined in: discord/guild.ts:78
The id of the channel where community guilds can display rules and/or guidelines
safety_alerts_channel_id
safety_alerts_channel_id:
string|null
Defined in: discord/guild.ts:114
The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
soundboard_sounds?
optionalsoundboard_sounds?:DiscordSoundboardSound[]
Defined in: discord/gateway.ts:462
Soundboard sounds in the guild
Inherited from
DiscordGuildCreateExtra.soundboard_sounds
splash
splash:
string|null
Defined in: discord/guild.ts:23
Splash hash
stage_instances?
optionalstage_instances?:DiscordStageInstance[]
Defined in: discord/gateway.ts:458
Stage instances in the guild
Inherited from
DiscordGuildCreateExtra.stage_instances
stickers?
optionalstickers?:DiscordSticker[]
Defined in: discord/guild.ts:110
Custom guild stickers
system_channel_flags
system_channel_flags:
SystemChannelFlags
Defined in: discord/guild.ts:76
System channel flags
system_channel_id
system_channel_id:
string|null
Defined in: discord/guild.ts:74
The id of the channel where guild notices such as welcome messages and boost events are posted
threads?
optionalthreads?:DiscordChannel[]
Defined in: discord/gateway.ts:449
All active threads in the guild that the current user has permission to view
Inherited from
DiscordGuildCreateExtra.threads
unavailable?
optionalunavailable?:boolean
Defined in: discord/gateway.ts:434
If the guild is unavailable due to an outage
Inherited from
DiscordGuildCreateExtra.unavailable
vanity_url_code
vanity_url_code:
string|null
Defined in: discord/guild.ts:84
The vanity url code for the guild
verification_level
verification_level:
VerificationLevels
Defined in: discord/guild.ts:58
Verification level required for the guild
voice_states?
optionalvoice_states?:Omit<DiscordVoiceState,"guild_id">[]
Defined in: discord/gateway.ts:443
States of members currently in voice channels
Remarks
Lacks the guild_id key
Inherited from
DiscordGuildCreateExtra.voice_states
welcome_screen?
optionalwelcome_screen?:DiscordWelcomeScreen
Defined in: discord/guild.ts:106
The welcome screen of a Community guild, shown to new members, returned in an Invite's guild object
widget_channel_id?
optionalwidget_channel_id?:string|null
Defined in: discord/guild.ts:56
The channel id that the widget will generate an invite to, or null if set to no invite
widget_enabled?
optionalwidget_enabled?:boolean
Defined in: discord/guild.ts:54
True if the server widget is enabled