v1

latestOpenAPI 3.0.12026-07-17310206.9 KB

Creates a new channel in a specified Discord guild.

This function adds a new channel to a specified Discord guild using the provided channel data. It allows for customization of various channel properties such as type, name, topic, and permissions. The function returns a Promise that resolves to the created channel object.

post/createChannel

Request body

Response

Successful response

idstring

The ID of the created channel

typenumber

The type of the created channel

namestring

The name of the created channel

topicstring

The topic of the created channel

nsfwboolean

Whether the created channel is NSFW

parent_idstring

The ID of the parent category for the created channel

rate_limit_per_usernumber

Slowmode rate limit for the created channel

positionnumber

Position of the created channel