Skip to content
Entity Info channelPermissionsOf

$channelPermissionsOf — Returns specific permissions of a role or member in a channel

Returns specific permissions of a role or member in a channel

Syntax

$channelPermissionsOf[channelID;id;state;(separator)]

Parameters

  • channelID (id, required) — The channel to get perms from
  • id (id, required) — The role or user to get perms of
  • state (text, required) — The state of the perms to return
  • separator (text, optional) — The separator to use for every perm

Return Value

  • PermissionFlagsBits[].

Usage

$channelPermissionsOf[channelID;id;state;(separator)] → result

Example

$sendMessage[$channelPermissionsOf[30;71;allow;,]]

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.