Members & roles · Check
Has roles
True when they have any one, or all, of some roles.
member.has_roles
In a flow
“When a button is clicked, if “Has roles” is true, reply with a message.”
Has @VIP or @Booster
What it does
True when they have any one, or all, of some roles. It's a check: put it in an If, and the flow goes one way when it's true and the other when it isn't. Find it under Members & roles in the palette.
When to use it
Use it when the flow acts on a member: true when they have any one, or all, of some roles.
When not to
To pick between more than two outcomes, Switch or Random reads better than a chain of checks.
Typical wiring
Sockets: settings you can wire
- Who Member
-
Leave unwired for the member who started the flow, or wire one in, like Member from Find member.
What goes there: Type it in the side panel, or wire in a member. e.g. @Alex
If it's empty: Optional. Left empty and unwired, the step runs without it.
Connects fromAccept applicationApplication infoAsk a questionAsk follow-upBoard as emojiCall the next in the queueCase createdCheck for a lineand 87 more