Interface CreateGuildOptions

interface CreateGuildOptions {
    afkChannelID?: string;
    afkTimeout?: number;
    channels?: CreateChannelOptions<GUILD_TEXT | GUILD_VOICE | GUILD_CATEGORY | GUILD_ANNOUNCEMENT | GUILD_STAGE_VOICE | GUILD_DIRECTORY | GUILD_FORUM | GUILD_MEDIA>[];
    defaultMessageNotifications?: DefaultMessageNotificationLevels;
    explicitContentFilter?: ExplicitContentFilterLevels;
    icon?: string | Buffer;
    name: string;
    region?: null | string;
    roles?: Omit<CreateRoleOptions, "reason">[];
    systemChannelFlags?: number;
    systemChannelID?: string;
    verificationLevel?: VerificationLevels;
}

Properties

afkChannelID?: string

The ID of the AFK voice channel.

afkTimeout?: number

The AFK timeout in seconds.

The initial channels of the guild.

defaultMessageNotifications?: DefaultMessageNotificationLevels

The default message notification level.

explicitContentFilter?: ExplicitContentFilterLevels

The explicit content filter level.

icon?: string | Buffer

The icon of the guild.

name: string

The name of the guild.

region?: null | string

Deprecated

The region of the guild.

roles?: Omit<CreateRoleOptions, "reason">[]

The initial roles of the guild.

systemChannelFlags?: number

The system channel flags.

systemChannelID?: string

The ID of the system channel.

verificationLevel?: VerificationLevels

The verification level of the guild.