$cloneChannel
$cloneChannel
will clone a channel.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
channelID | number | The ID of the channel which is to clone. | true |
name | string | The new name of the cloned channel. | true |
returnID? | boolean | If the function should return the ID of the newly created channnel. | false |
It won’t clone any messages of that channel.
Example(s)
This will clone the current channel and name it “new channel”: