docsTriggersEventsonThreadUpdate

onThreadUpdate

Fires when a thread is updated, such as being renamed, archived, or locked. Requires the GUILDS intent. Thread fields are read with Zoption{key}.

When it fires

Thread is updated

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