createChannel
Create a channel. USER-ONLY
Parameters
title: string
The title of the channel.
description?: string
The description of the channel that is to be created.
messageTtl?: number
The time to live, in seconds, for messages in the channel to be created.
Result
The created channel.
Syntax
// Required parameters only.
await client.createChannel(title);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.createChannel(title, { description, messageTtl });