API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
import { type APIGuild } from "https://deno.land/x/discord_api_types@0.37.30/v8.ts";
Properties
Icon hash, returned when in the template object
See https://discord.com/developers/docs/reference#image-formatting
Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature
See https://discord.com/developers/docs/reference#image-formatting
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
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
Voice region id for the guild
See https://discord.com/developers/docs/resources/voice#voice-region-object
The channel id that the widget will generate an invite to, or null
if set to no invite
Verification level required for the guild
See https://discord.com/developers/docs/resources/guild#guild-object-verification-level
Default message notifications level
See https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level
Explicit content filter level
See https://discord.com/developers/docs/resources/guild#guild-object-explicit-content-filter-level
Roles in the guild
See https://discord.com/developers/docs/topics/permissions#role-object
Custom guild emojis
See https://discord.com/developers/docs/resources/emoji#emoji-object
Enabled guild features
See https://discord.com/developers/docs/resources/guild#guild-object-guild-features
Required MFA level for the guild
See https://discord.com/developers/docs/resources/guild#guild-object-mfa-level
The id of the channel where guild notices such as welcome messages and boost events are posted
System channel flags
See https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags
The id of the channel where Community guilds can display rules and/or guidelines
When this guild was joined at
This field is only sent within the GUILD_CREATE event
true
if this is considered a large guild
This field is only sent within the GUILD_CREATE event
Total number of members in this guild
This field is only sent within the GUILD_CREATE event
States of members currently in voice channels; lacks the guild_id
key
This field is only sent within the GUILD_CREATE event
See https://discord.com/developers/docs/resources/voice#voice-state-object
Users in the guild
This field is only sent within the GUILD_CREATE event
See https://discord.com/developers/docs/resources/guild#guild-member-object
Channels in the guild
This field is only sent within the GUILD_CREATE event
See https://discord.com/developers/docs/resources/channel#channel-object
Presences of the members in the guild, will only include non-offline members if the size is greater than large_threshold
This field is only sent within the GUILD_CREATE event
See https://discord.com/developers/docs/topics/gateway#presence-update
The maximum number of presences for the guild (null
is always returned, apart from the largest of guilds)
The preferred locale of a Community guild; used in guild discovery and notices from Discord; defaults to "en-US"
The id of the channel where admins and moderators of Community guilds receive notices from Discord
This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the with_counts
query parameter set to true
This field is only received from https://discord.com/developers/docs/resources/guild#get-guild with the with_counts
query parameter set to true
The welcome screen of a Community guild, shown to new members
Returned in the invite object
The nsfw level of the guild
See https://discord.com/developers/docs/resources/guild#guild-object-guild-nsfw-level
The stage instances in the guild
This field is only sent within the GUILD_CREATE event
Custom guild stickers
See https://discord.com/developers/docs/resources/sticker#sticker-object
The scheduled events in the guild
This field is only sent within the GUILD_CREATE event
https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object