var trigger = thread_delete()
func main() {
send_text_message(Args{
channel_id: "CHANNEL_ID",
message_content: "Thread ID: " + trigger.thread_id,
})
}
Outputs
Thread ID
ID of the thread that was deleted.
Example: 123456789012345678
Server ID
ID of the server where the thread was deleted.
Example: 345678901234567890
Parent ID
ID of the parent channel.
Example: 234567890123456789
Build a bot using triggers like Thread Deleted
Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
thread_deleteOutputs
| Field | InventScript name | Value |
|---|---|---|
| Thread ID | thread_id | e.g. "123456789012345678" |
| Server ID | server_id | e.g. "345678901234567890" |
| Parent ID | parent_id | e.g. "234567890123456789" |