Interface
StartThreadOptions
Options for starting a thread in a text or announcement channel.
Properties
| Name | Type | Description |
|---|---|---|
| autoArchiveDuration? | ThreadAutoArchiveDuration | Minutes of inactivity before the thread archives. |
| invitable? | boolean | Whether non-moderators can add other non-moderators. Private threads only. |
| name | string | Thread name (1-100 characters). |
| rateLimitPerUser? | number | Slowmode in seconds (0-21600). |
| reason? | string | Audit log reason (X-Audit-Log-Reason). Not sent in the JSON body. |
| type? | ChannelType.AnnouncementThread | ChannelType.PublicThread | ChannelType.PrivateThread | Public, private, or announcement thread. Defaults to an announcement thread in announcement channels and a public thread elsewhere. |