Type alias CreateGuildData

CreateGuildData: {
    afk_channel_id?: string;
    afk_timeout?: number;
    channels?: ({
        id?: string;
        name: string;
        parent_id?: string;
        type: Exclude<GuildChannel["type"], CategoryChannel["type"]>;
    } | {
        id: string;
        name: string;
        type: CategoryChannel["type"];
    })[];
    default_message_notifications?: MessageNotificationLevel;
    icon?: string;
    name: string;
    roles?: Partial<Role>[];
    system_channel_flags?: number;
    system_channel_id?: string;
    verification_level?: VerificationLevel;
}

Type declaration

  • Optional afk_channel_id?: string

    id for afk channel

  • Optional afk_timeout?: number

    afk timeout in seconds

  • Optional channels?: ({
        id?: string;
        name: string;
        parent_id?: string;
        type: Exclude<GuildChannel["type"], CategoryChannel["type"]>;
    } | {
        id: string;
        name: string;
        type: CategoryChannel["type"];
    })[]

    array of partial channels

  • Optional default_message_notifications?: MessageNotificationLevel

    default message notification setting

  • Optional icon?: string

    base64 encoded icon to use for the guild

  • name: string

    name of the guild

  • Optional roles?: Partial<Role>[]

    array of roles

  • Optional system_channel_flags?: number

    system channel flags

  • Optional system_channel_id?: string

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

  • Optional verification_level?: VerificationLevel

Generated using TypeDoc