Interface

APIGuild

Full guild object from GET /guilds/{id} or gateway GUILD_CREATE.

Properties

NameTypeDescription
afk_channel_id?Snowflake | nullAFK voice channel ID.
afk_timeoutnumberAFK timeout in seconds.
approximate_member_count?numberApproximate member count when with_counts is set on guild list.
approximate_presence_count?numberApproximate online count when with_counts is set on guild list.
channels?APIChannel[]Channels when included in a gateway/REST guild payload.
content_warning_levelContentWarningLevelContent warning level (see ContentWarningLevel).
content_warning_text?string | nullCustom guild-wide content warning text.
default_message_notificationsDefaultMessageNotificationsDefault notification level (see DefaultMessageNotifications).
disabled_operationsnumberGuildOperations bitfield of disabled operations.
embed_splash?string | nullEmbed splash image hash (deprecated).
embed_splash_height?number | nullEmbed splash height in pixels.
embed_splash_width?number | nullEmbed splash width in pixels.
emojis?APIEmoji[]Emojis when included in a gateway/REST guild payload.
explicit_content_filterGuildExplicitContentFilterExplicit content filter level (see GuildExplicitContentFilter).
featuresGuildFeature[]Guild feature flags (see GuildFeature).
icon?string | nullGuild icon hash.
idSnowflakeGuild ID.
member_count?numberMember count when included (gateway / guild payloads).
message_history_cutoff?string | nullISO-8601 timestamp before which message history is not available.
mfa_levelGuildMFALevelMFA requirement level (see GuildMFALevel).
namestringGuild name.
nsfwbooleanWhether the guild is marked as adult (18+) content.
nsfw_levelGuildNSFWLevelNSFW level (see GuildNSFWLevel).
online_count?numberOnline member count when included (gateway / guild payloads).
owner_idSnowflakeGuild owner user ID.
permissions?stringPermissions for the current user in this guild (bitfield string).
roles?APIRole[]Roles when included in a gateway/REST guild payload.
rules_channel_id?Snowflake | nullRules channel ID.
splash?string | nullInvite splash image hash.
splash_card_alignmentSplashCardAlignmentSplash card alignment (see SplashCardAlignment).
splash_height?number | nullSplash height in pixels.
splash_width?number | nullSplash width in pixels.
stickers?APISticker[]Stickers when included in a gateway/REST guild payload.
system_channel_flagsnumberSystemChannelFlags bitfield.
system_channel_id?Snowflake | nullSystem channel ID (join/boost messages).
vanity_url_code?string | nullCustom vanity URL code.
verification_levelGuildVerificationLevelVerification level (see GuildVerificationLevel).