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


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


Boolean - Whether the user has the specified role.