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,
})
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_channelInputs
| Field | InventScript name | Value |
|---|---|---|
| Server ID | server_id | |
| Channel Name | channel_name | |
| Channel Type | channel_type | "Text", "Voice", "Stage", "Category", "News", "Forum" |
| Channel Topic | channel_topic | |
| Channel Category ID | channel_category_id | |
| Channel Position | channel_position | |
| Channel User Limit | channel_user_limit |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Channel ID | channel_id |
Example InventScript
More channels blocks
Get ChannelRetrieve a Discord channel's information by its ID.Modify ChannelModify a channel's information by its ID.Move ChannelMove a channel to a new category.Move Member to Voice ChannelMove a member from one voice channel to another.Get ChannelsRetrieve a Discord server's channels by its ID.Delete ChannelDelete a Discord channel by its ID.Trigger Typing IndicatorTrigger a typing indicator in a channel.Set Channel PermissionsSet allowed and denied permission overrides for a user or role in a channel. Supports setting both allow and deny in one block, and can either replace existing overrides or update them.Delete Channel PermissionDelete a channel permission overwrite for a user or role.