APIGuild

export interface APIGuild extends APIPartialGuild
export interface APIGuild extends APIPartialGuild
afk_channel_id:Snowflake | null
ID of afk channel
afk_timeout:1800 | 3600 | 60 | 300 | 900
afk timeout in seconds, can be set to: 60, 300, 900, 1800, 3600
application_id:Snowflake | null
Application id of the guild creator if it is bot-created
approximate_member_count?:number
Approximate number of members in this guild, returned from the GET /guilds/<id> and /users/@me/guilds (OAuth2) endpoints when with_counts is true
approximate_presence_count?:number
Approximate number of non-offline members in this guild, returned from the GET /guilds/<id> and /users/@me/guilds (OAuth2) endpoints when with_counts is true
description:string | null
The description for the guild
discovery_splash:string | null
Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature
hub_type:GuildHubType | null
The type of Student Hub the guild is
icon_hash?:string | null
Icon hash, returned when in the template object
incidents_data:APIIncidentsData | null
The incidents data for this guild
max_members?:number
The maximum number of members for the guild
max_presences?:number | null
The maximum number of presences for the guild (null is always returned, apart from the largest of guilds)
max_stage_video_channel_users?:number
The maximum amount of users in a stage video channel
max_video_channel_users?:number
The maximum amount of users in a video channel
name:string
Guild name (2-100 characters, excluding trailing and leading whitespace)
Inherited from APIPartialGuild
owner_id:Snowflake
ID of owner
owner?:boolean
true if the user is the owner of the guild**This field is only received from https://discord.com/developers/docs/resources/user#get-current-user-guilds**
permissions?:Permissions
Total permissions for the user in the guild (excludes overrides)**This field is only received from https://discord.com/developers/docs/resources/user#get-current-user-guilds**
preferred_locale:Locale
The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US"
Default value
"en-US"
premium_progress_bar_enabled:boolean
Whether the guild has the boost progress bar enabled.
premium_subscription_count?:number
The number of boosts this guild currently has
public_updates_channel_id:Snowflake | null
The id of the channel where admins and moderators of Community guilds receive notices from Discord
Deprecated
region:string
This field has been deprecated in favor of rtc_region on the channel.
Deprecated
Voice region id for the guild
rules_channel_id:Snowflake | null
The id of the channel where Community guilds can display rules and/or guidelines
safety_alerts_channel_id:Snowflake | null
The id of the channel where admins and moderators of Community guilds receive safety alerts from Discord
system_channel_id:Snowflake | null
The id of the channel where guild notices such as welcome messages and boost events are posted
vanity_url_code:string | null
The vanity url code for the guild
welcome_screen?:APIGuildWelcomeScreen
The welcome screen of a Community guild, shown to new membersReturned in the invite object
widget_channel_id?:Snowflake | null
The channel id that the widget will generate an invite to, or null if set to no invite
widget_enabled?:boolean
true if the guild widget is enabled