Skip to content
Moderation cloneRole

$cloneRole — Clones an existing role of a guild, returns role id if success.

Clones an existing role of a guild, returns role id if success.

Syntax

$cloneRole[guildID;roleID;(name)]

Parameters

  • guildID (id, required) — The guild to fetch role from
  • roleID (id, required) — The role to clone
  • name (text, optional) — The role name for the cloned role

Return Value

  • Role.

Usage

$cloneRole[guildID;roleID;(name)] → result

Example

$sendMessage[$cloneRole[10;70;Copy]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.