Interface

StartThreadOptions

Options for starting a thread in a text or announcement channel.

Properties

NameTypeDescription
autoArchiveDuration?ThreadAutoArchiveDurationMinutes of inactivity before the thread archives.
invitable?booleanWhether non-moderators can add other non-moderators. Private threads only.
namestringThread name (1-100 characters).
rateLimitPerUser?numberSlowmode in seconds (0-21600).
reason?stringAudit log reason (X-Audit-Log-Reason). Not sent in the JSON body.
type?ChannelType.AnnouncementThread | ChannelType.PublicThread | ChannelType.PrivateThreadPublic, private, or announcement thread. Defaults to an announcement thread in announcement channels and a public thread elsewhere.