$createChannel
Creates a new channel within your Discord server.
Usage:
$createChannel[name;type;return ID (yes/no);categoryID (optional);topic;NSFW (yes/no);Bitrate (i.e 64000, VC only);Position;Slowmode in Seconds (optional);User Limit (VC only);RTC Region (VC Only)]
Parameters:
- name: The name of the channel.
- type: The type of channel to create (e.g.,
text,voice,category). Refer to the available channel types list below. - return ID (yes/no): Specify
yesif you want the function to return the ID of the newly created channel, otherwiseno. - categoryID (optional): The ID of the category to place the new channel under. If left blank, the channel will be created outside of any category.
- topic: (Optional) The topic/description of the channel.
- NSFW (yes/no): Specify
yesif the channel should be marked as NSFW (Not Safe For Work), otherwiseno. - Bitrate (i.e 64000, VC only): The bitrate of the voice channel (in bits per second). Only applicable for voice channels.
- Position: The position of the channel in the channel list. Lower numbers appear higher.
- Slowmode in Seconds (optional): The slowmode duration for the channel, in seconds. Only applicable for text channels.
- User Limit (VC only): The maximum number of users allowed in the voice channel. Only applicable for voice channels.
- RTC Region: The RTC region of the voice channel, defaults to
auto
RTC Region:
For Voice Channel Only, to specify where voice channel RTC region located. default is auto, where discord will pick the best one, but you can specify one of those:
auto, brazil, hongkong, india, japan, rotterdam, russia, singapore, southafrica, sydney, us-central, us-east, us-south, us-west
Example:
$createChannel[general;text;no]
This will create a text channel named "general" in the server.
Available Channel Types
For a complete list of valid channel types, see this reference page.
Related Functions
- $createThread: Use this function to create a new thread.
- $createRole: Use this function to create a new role.