$cloneChannel

Clones the provided channel.

Usage

$cloneChannel[channelID;returnChannelID]

This function has two params.

Param
Description
Type
Required

channelID

The channel to clone.

Snowflake

Yes

returnChannelID

Whether to return the ID of this newly cloned channel.

Boolean

No

Example

bot.commands.add({
  type: "basicCommand",
  name: "clone",
  code: `New <#$channelID> Clone: <#$cloneChannel[$channelID;yes]>
  $onlyIf[$hasPerm[$guildID;$authorID;managechannels]==true;]`
})

Last updated

Was this helpful?