var trigger = channel_update()
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 updated
Example: 123456789012345678
Channel Name
The name of the channel that was updated
Example: general
Server ID
The ID of the server where the channel was updated
Example: 123456789012345678
Build a bot using triggers like Channel Update
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_updateOutputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id | e.g. "123456789012345678" |
| Channel Name | channel_name | e.g. "general" |
| Server ID | server_id | e.g. "123456789012345678" |