Skip to content
Variables setRoleVar

$setRoleVar — Stores a value in a variable of a role.

Stores a value in a variable of a role.

Syntax

$setRoleVar[name;value;roleID]

Parameters

  • name (String, required) — Variable name
  • value (String, required) — Value
  • roleID (String, required) — Role ID

Return Value

  • String.

Usage

$setRoleVar[name;value;roleID] → result

Example

$sendMessage[$setRoleVar[name;value;roleID]]

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.