docsTriggersEventsonThreadDelete

onThreadDelete

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

When it fires

Thread is deleted

Available Context Variables

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