Channel Created

Event triggerChannels

Triggers when a new channel is created.

Outputs

Channel ID

The ID of the channel that was created

Example: 123456789012345678

Server ID

The ID of the server where the channel was created

Example: 123456789012345678

Channel Name

The name of the created channel

Example: general

Channel Topic

The topic of the created channel

Example: Introductions

Channel Type

The type of the channel (Text, Voice, etc.)

Example: Text

Channel NSFW

Whether the channel is marked as NSFW

Example: false

Channel Last Message ID

The last message ID in the channel, if any

Example: 123456789012345678

Channel Parent ID

The parent category or channel ID

Example: 987654321098765432

Channel Position

The position of the channel in the server list

Example: 1

Channel Slow Mode

Slow mode cooldown in seconds

Example: 10

Channel User Limit

User limit for the channel

Example: 25

Channel Bitrate

Bitrate for voice channels

Example: 64000

Channel Owner ID

Owner ID (threads only)

Example: 123456789012345678

Build a bot using triggers like Channel Created

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_create

Outputs

FieldInventScript nameValue
Channel IDchannel_ide.g. "123456789012345678"
Server IDserver_ide.g. "123456789012345678"
Channel Namechannel_namee.g. "general"
Channel Topicchannel_topice.g. "Introductions"
Channel Typechannel_typee.g. "Text"
Channel NSFWchannel_nsfwe.g. "false"
Channel Last Message IDchannel_last_message_ide.g. "123456789012345678"
Channel Parent IDchannel_parent_ide.g. "987654321098765432"
Channel Positionchannel_positione.g. "1"
Channel Slow Modechannel_slow_modee.g. "10"
Channel User Limitchannel_user_limite.g. "25"
Channel Bitratechannel_bitratee.g. "64000"
Channel Owner IDchannel_owner_ide.g. "123456789012345678"

Example InventScript

var trigger = channel_create()

func main() {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "Channel ID: " + trigger.channel_id,
	})
}

More channels triggers