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
Time to live of the messages of the channel that is to be created in seconds.
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 });