var trigger = channel_create()
func main() {
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Channel ID: " + trigger.channel_id,
})
}
Channel Created
Triggers when a new channel is created.
Outputs
The ID of the channel that was created
Example: 123456789012345678
The ID of the server where the channel was created
Example: 123456789012345678
The name of the created channel
Example: general
The topic of the created channel
Example: Introductions
The type of the channel (Text, Voice, etc.)
Example: Text
Whether the channel is marked as NSFW
Example: false
The last message ID in the channel, if any
Example: 123456789012345678
The parent category or channel ID
Example: 987654321098765432
The position of the channel in the server list
Example: 1
Slow mode cooldown in seconds
Example: 10
User limit for the channel
Example: 25
Bitrate for voice channels
Example: 64000
Owner ID (threads only)
Example: 123456789012345678
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
channel_createOutputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id | e.g. "123456789012345678" |
| Server ID | server_id | e.g. "123456789012345678" |
| Channel Name | channel_name | e.g. "general" |
| Channel Topic | channel_topic | e.g. "Introductions" |
| Channel Type | channel_type | e.g. "Text" |
| Channel NSFW | channel_nsfw | e.g. "false" |
| Channel Last Message ID | channel_last_message_id | e.g. "123456789012345678" |
| Channel Parent ID | channel_parent_id | e.g. "987654321098765432" |
| Channel Position | channel_position | e.g. "1" |
| Channel Slow Mode | channel_slow_mode | e.g. "10" |
| Channel User Limit | channel_user_limit | e.g. "25" |
| Channel Bitrate | channel_bitrate | e.g. "64000" |
| Channel Owner ID | channel_owner_id | e.g. "123456789012345678" |