var trigger = channel_delete()
func main() {
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Channel ID: " + trigger.channel_id,
})
}
Outputs
Channel ID
The ID of the channel that was deleted
Example: 123456789012345678
Server ID
The ID of the server where the channel was deleted
Example: 123456789012345678
Build a bot using triggers like Channel 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:
channel_deleteOutputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id | e.g. "123456789012345678" |
| Server ID | server_id | e.g. "123456789012345678" |