cloneChannel


General

cloneChannel clones an existing text / voice / category channel in the guild.


Usage

Client:cloneChannel(<string> channelId, (string) name, (boolean) withPermissions, (boolean) withTopic, (string) reason)
Returns: <Channel> Channel


Limitations

See discordChannel PATCH.


Example

local cloneChannel = Client:cloneChannel("569166849099694093", "testchannel2", true, true, "Cloning a channel!")
print (cloneChannel.name)

Back to top