Construct a type with the properties of T except for those in type K.

interface APITemplateSerializedSourceGuild {
    afk_channel_id?: null | string | number;
    afk_timeout?: 60 | 1800 | 3600 | 300 | 900;
    channels?: RESTAPIGuildCreatePartialChannel[];
    default_message_notifications?: GuildDefaultMessageNotifications;
    description: null | string;
    explicit_content_filter?: GuildExplicitContentFilter;
    icon_hash: null | string;
    name: string;
    preferred_locale: Locale;
    premium_progress_bar_enabled?: boolean;
    region?: string;
    roles?: RESTAPIGuildCreateRole[];
    system_channel_flags?: GuildSystemChannelFlags;
    system_channel_id?: null | string | number;
    verification_level?: GuildVerificationLevel;
}

Hierarchy (View Summary)

Properties

afk_channel_id?: null | string | number

ID for afk channel

afk_timeout?: 60 | 1800 | 3600 | 300 | 900

afk timeout in seconds, can be set to: 60, 300, 900, 1800, 3600

New guild's channels

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

Also, 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.

default_message_notifications?: GuildDefaultMessageNotifications

Default message notification level

description: null | string
explicit_content_filter?: GuildExplicitContentFilter

Explicit content filter level

icon_hash: null | string
name: string

Name of the guild (2-100 characters)

preferred_locale: Locale
premium_progress_bar_enabled?: boolean

Whether the boosts progress bar should be enabled.

region?: string

Voice region id

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.

Also, 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.

system_channel_flags?: GuildSystemChannelFlags

System channel flags

system_channel_id?: null | string | number

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

verification_level?: GuildVerificationLevel

Verification level