Skip to content
Entity Info channelHasAnyPerms

$channelHasAnyPerms — Returns whether role or member has any of the perms in a channel

Returns whether role or member has any of the perms in a channel

Syntax

$channelHasAnyPerms[channelID;id;permissions...]

Parameters

  • channelID (id, required) — The channel to get perms from
  • id (id, required) — The role or user to get perms of
  • permissions… (text, required) — The perms to check for

Return Value

  • Boolean.

Usage

$channelHasAnyPerms[channelID;id;permissions...] → result

Example

$sendMessage[$channelHasAnyPerms[30;71;SendMessages;ViewChannel]]

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.