Create Channel

BlockChannels

Create a text/voice/stage/etc channel or channel category in a server.

Inputs

Server IDRequired

ID of the server to create the channel in.

Channel NameRequired

Name of the channel to create.

Channel TypeRequired

Type of channel to create.

OptionsTextVoiceStageCategoryNewsForum
Channel Topic

Topic of the channel to create.

Channel Category ID

ID of the category to create the channel in.

Channel Position

Position of the channel in the server.

Channel User Limit

User limit for voice and stage channels.

Outputs

Channel ID

ID of the created channel.

Build a bot using blocks like Create Channel

Use this block 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: create_channel

Inputs

FieldInventScript nameValue
Server IDserver_id
Channel Namechannel_name
Channel Typechannel_type"Text", "Voice", "Stage", "Category", "News", "Forum"
Channel Topicchannel_topic
Channel Category IDchannel_category_id
Channel Positionchannel_position
Channel User Limitchannel_user_limit

Outputs

FieldInventScript nameValue
Channel IDchannel_id

Example InventScript

channel := create_channel(Args{
	server_id:    trigger.server_id,
	channel_name: "...",
	channel_type: "Text",
})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Channel ID: " + channel.channel_id,
})

More channels blocks