Skip to main content
Version: 0.37.18

APITemplateSerializedSourceGuild

@deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

Hierarchy

Index

Properties

optionalafk_channel_id

afk_channel_id?: null | string | number

ID for afk channel

optionalafk_timeout

afk_timeout?: number

AFK timeout in seconds

optionalchannels

channels?: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<APIGuildCreatePartialChannel>[]

New guild’s channels

When using the channels parameter, the position field is ignored, and none of the default channels are created.

When using the channels parameter, the id field within each channel object may be set to an integer placeholder, and will be replaced by the API upon consumption. Its purpose is to allow you to create GUILD_CATEGORY channels by setting the parent_id field on any children to the category’s id field. Category channels must be listed before any children.

See https://discord.com/developers/docs/resources/channel#channel-object

optionaldefault_message_notifications

default_message_notifications?: AllMessages | OnlyMentions

description

description: null | string

optionalexplicit_content_filter

explicit_content_filter?: Disabled | MembersWithoutRoles | AllMembers

icon_hash

icon_hash: null | string

name

name: string

Name of the guild (2-100 characters)

preferred_locale

preferred_locale: string

optionalpremium_progress_bar_enabled

premium_progress_bar_enabled?: boolean

Whether the boosts progress bar should be enabled.

optionalregion

region?: string

optionalroles

roles?: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<APIGuildCreateRole>[]

New guild roles

When using this parameter, the first member of the array is used to change properties of the guild’s @everyone role. If you are trying to bootstrap a guild with additional roles, keep this in mind.

When using this parameter, the required id field within each role object is an integer placeholder, and will be replaced by the API upon consumption. Its purpose is to allow you to overwrite a role’s permissions in a channel when also passing in channels with the channels array.

See https://discord.com/developers/docs/topics/permissions#role-object

optionalsystem_channel_flags

system_channel_flags?: GuildSystemChannelFlags

optionalsystem_channel_id

system_channel_id?: null | string | number

The id of the channel where guild notices such as welcome messages and boost events are posted

optionalverification_level

verification_level?: None | Low | Medium | High | VeryHigh