Skip to content
Entity Info fetchRoles

$fetchRoles — Caches all roles of a guild.

Caches all roles of a guild.

Syntax

$fetchRoles[guildID;(roleID)]

Parameters

  • guildID (id, required) — The guild to cache roles of
  • roleID (id, optional) — The role to fetch

Return Value

  • string.

Usage

$fetchRoles[guildID;(roleID)] → result

Example

$fetchRoles[10]
$sendMessage[Done]

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.