docsTriggersEventsonThreadCreate

onThreadCreate

Fires when a thread is created. Requires the GUILDS intent. Thread fields are read with Zoption{key}.

When it fires

Thread is created

Available Context Variables

VariableDescription
author_idEmpty
usernameEmpty
channel_idThread ID
guild_idGuild ID
messageEmpty. Zoption keys: threadID, name, parentID, type (e.g. PublicThread)
trigger_message_idThread ID