Skip to content

DiscordGuild

Defined in: bot/bot.type.ts:74

Guild fields guilds.modify can change; the numeric enums are Discord’s own.

optional default_message_notifications?: number

Defined in: bot/bot.type.ts:82

0 all messages, 1 only @mentions.


optional description?: string | null

Defined in: bot/bot.type.ts:96

The server description, or null when unset.


optional explicit_content_filter?: number

Defined in: bot/bot.type.ts:84

0 disabled, 1 members without roles, 2 all members.


optional features?: string[]

Defined in: bot/bot.type.ts:98

COMMUNITY here means the community features (welcome screen, onboarding) are available.


id: string

Defined in: bot/bot.type.ts:76

The server id.


name: string

Defined in: bot/bot.type.ts:78

The server name.


optional preferred_locale?: string

Defined in: bot/bot.type.ts:94

The server’s preferred locale, such as en-US.


optional public_updates_channel_id?: string | null

Defined in: bot/bot.type.ts:92

Id of the channel for Discord’s community updates, or null for none.


optional rules_channel_id?: string | null

Defined in: bot/bot.type.ts:90

Id of the rules channel, or null for none.


optional system_channel_flags?: number

Defined in: bot/bot.type.ts:88

Bitfield of system-channel messages to suppress.


optional system_channel_id?: string | null

Defined in: bot/bot.type.ts:86

Id of the channel for system messages, or null for none.


optional verification_level?: number

Defined in: bot/bot.type.ts:80

0 none, 1 low, 2 medium, 3 high, 4 very high.