$cloneChannel
Clones the current channel or define a channel to clone.

FUNCTION USAGE

    $cloneChannel
    $cloneChannel[]
    $cloneChannel[channelID;yes/true]

Properties:

[] - Leave blank to clone the current channel. Same as no brackets. channelID - Define a channel to clone with its ID. yes/true - If defined as yes or true, the function will return the ID of the newly cloned channel, to the channel where the command was executed.

Example 1: Clones the current channel.

1
bot.Command({
2
name: "clone",
3
code: `
4
$cloneChannel
5
`
6
})
Copied!

Example 2: Clones the current channel.

1
bot.Command({
2
name: "clone",
3
code: `
4
$cloneChannel[]
5
`
6
})
Copied!

Example 3: Clones the defined channel.

1
bot.Command({
2
name: "clone",
3
code: `
4
$cloneChannel[763904567647022556]
5
`
6
})
Copied!

Example 4: Clones the defined channel and returns the ID of the newly cloned channel to the current channel. The code below results in the message this is a cloned channel of #main-chat being sent to the newly cloned channel because $channelSendMessage was implemented here.

1
bot.Command({
2
name: "clone",
3
code: `
4
$channelSendMessage[$cloneChannel[763904567647022556;yes];This is a cloned channel of <#$channelID>]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: