Skip to content

GuildTextThreadCreateOptions

typedef · Source

Options for creating a thread. Only one of startMessage or type can be defined. Type: StartThreadOptions

Properties

startMessage

optional

startMessage: MessageResolvable

The message to start a thread from. If this is defined then type of thread gets automatically defined and cannot be changed. The provided type field will be ignored

type

optional

type: ThreadChannelTypes | number

The type of thread to create. Defaults to GUILD_PUBLIC_THREAD if created in a TextChannel When creating threads in a NewsChannel this is ignored and is always GUILD_NEWS_THREAD

invitable

optional

invitable: boolean

Whether non-moderators can add other non-moderators to the thread Can only be set when type will be GUILD_PRIVATE_THREAD

rateLimitPerUser

optional

rateLimitPerUser: number

The rate limit per user (slowmode) for the new channel in seconds

Unofficial software. Not affiliated with or supported by Discord.