Skip to content

$cloneChannel

$cloneChannel will clone a channel.

Usage

$cloneChannel[channelID;name;returnID?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberThe ID of the channel which is to clone.true
namestringThe new name of the cloned channel.true
returnID?booleanIf 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”:

1
client.command({
2
name: "cloneChannel",
3
code: `
4
$cloneChannel[$channelID;new channel;false]
5
`
6
});