Piecewise

Build chat bots with blocks

message (message) mentions (target)

In Discord → Messages

Jump to block

Determine if a user, role, or channel is mentioned in a particular message.

Requires the following blocks to be present in the project: discord login

Parameters

Parameter name Parameter type Required? Description
message message The message to extract mentions from.
target role OR channel OR user The user, role, or channel to check.

Output

Array - Whether the user, role, or channel is mentioned in the message.