$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.

bot.Command({
name: "clone",
code: `
$cloneChannel
`
})

Example 2: Clones the current channel.

bot.Command({
name: "clone",
code: `
$cloneChannel[]
`
})

Example 3: Clones the defined channel.

bot.Command({
name: "clone",
code: `
$cloneChannel[763904567647022556]
`
})

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.

bot.Command({
name: "clone",
code: `
$channelSendMessage[$cloneChannel[763904567647022556;yes];This is a cloned channel of <#$channelID>]
`
})
Last modified 1yr ago
Copy link