Interface StartThreadWithoutMessageOptions

interface StartThreadWithoutMessageOptions {
    autoArchiveDuration?: 60 | 1440 | 4320 | 10080;
    invitable?: boolean;
    name: string;
    rateLimitPerUser?: null | number;
    reason?: string;
    type: ANNOUNCEMENT_THREAD | PUBLIC_THREAD | PRIVATE_THREAD;
}

Hierarchy (view full)

Properties

autoArchiveDuration?: 60 | 1440 | 4320 | 10080

The duration of no activity after which this thread will be automatically archived.

invitable?: boolean

[Private Thread Only] If non-moderators can add other non-moderators to the thread.

name: string

The name of the thread.

rateLimitPerUser?: null | number

The amount of seconds a user has to wait before sending another message.

reason?: string

The reason for creating the thread.

The type of thread to create.