createChannel

Creates a new channel.

Return

Result containing the created channel or an error if the channel already exists.

Parameters

channel

The channel to create.

Throws

if a channel with the same ID already exists.

if the server has reached the maximum channel limit.