Members & roles · Step
List roles
Every role, top first, with how many have each.
role.list
In a flow
“When a button is clicked, list roles.”
/roles → List roles → Reply with As text.
What it does
Every role, top first, with how many have each. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 3 values later steps can use. Find it under Members & roles in the palette.
When to use it
Use it when the flow acts on a member: every role, top first, with how many have each.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Values it gives
- Roles List
-
The roles, top first. e.g. [{"id": "123…", "name": "Staff"}]
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd onboarding questionAdd to listAdd up timesAutoMod: add or remove allowed wordsAutoMod: add or remove wordsAutoMod: block wordsBar chartBest by a fieldand 88 more
- As text Text
-
One line each: the role and how many have it. e.g. @Staff 4 @Member 240
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 578 more
- How many Number
-
How many roles. e.g. 18
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 719 more