BuildcordDocs

Role

Branch on the roles a member has.

logic.role checks whether a member has a role, any of several, or all of them.

Settings

SettingWhat it does
WhoThe member to check. Empty is whoever started the flow.
HasOne role, or several separated by commas, picked from the server's or typed. The default is Moderator.
With severalAny of them, or all of them.

Ways out

Way outTaken when
Has the roleThe member has the role, or any (or all) of them.
Doesn'tThey don't.

Turn on If it fails for a red way out, taken when a role doesn't exist.

Notes

  • The canvas shows Has @Role, or the roles joined with "or" or "and".
  • Checking someone other than whoever started the flow asks Discord for their roles.
  • For a check on what someone can do rather than a named role, use Permissions.

On this page