Skip to content
Entity Info isRoleMentioned

$isRoleMentioned — Returns whether a role was mentioned in this message

Returns whether a role was mentioned in this message

Syntax

$isRoleMentioned[channelID;messageID;roleID]

Parameters

  • channelID (id, required) — Channel to pull the message from
  • messageID (id, required) — The message to get mentions from
  • roleID (id, required) — The entity to check for mentions

Return Value

  • Boolean.

Usage

$isRoleMentioned[channelID;messageID;roleID] → result

Example

$sendMessage[$isRoleMentioned[30;1000;70]]

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.