Piecewise

Build chat bots with blocks

user (user) has role (role)

In Discord → Users; Discord → Roles

Jump to block

Determine whether a user has a particular role.

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

Parameters

Parameter name Parameter type Required? Description
user user The user to check.
role role The role to check membership of.

Output

Boolean - Whether the user has the specified role.