Thread

thread

Used for creating a thread in a channel.

Map entries #

Key Type Description
name String The name of the thread
(max 100 characters).
message Message The message to start this thread with.
(Only required if channel is not provided)
channel Channel The channel in which to create the thread.
(Only required if message is not provided)
channel_type String The type of thread channel.
invitable Boolean Whether if non-moderators can add other non-moderators to the thread.
(Exclusive to server_private_thread)
auto_archive_duration Number The duration in minutes until the thread gets archived without activity.
slow_mode_delay Number The slow mode time in seconds.
(0 - 21600)
reason String The audit log reason.

Channel types#

String Description
SERVER_PUBLIC_THREAD Public thread
SERVER_PRIVATE_THREAD Private thread
SERVER_NEWS_THREAD Thread in announcements channel