Members & roles · Value
How many have a role
How many members have a role, and what share of the server that is.
role.member_count
In a flow
“Works out how many have a role whenever a step wired to it needs the answer.”
@Verified → 812 (67%)
What it does
How many members have a role, and what share of the server that is. It's a value node: no white pins, it works out its answer when a step wired to it needs it. It gives 2 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: how many members have a role, and what share of the server that is.
When not to
For a value that never changes, type it into the setting instead of wiring a node.
Typical wiring
Sockets: settings you can wire
- Role Role
-
The role to count.
What goes there: Type it in the side panel, or wire in a role. e.g. @Verified
If it's empty: Optional. Left empty and unwired, the step runs without it.
Connects fromAsk a questionCopy a roleCreate roleFind role by nameHighest roleMember detailsPersonal colour roleRead settingand 3 more
Values it gives
- Members Number
-
How many have it. e.g. 812
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 730 more
- Percent Number
-
Of everyone in the server, 0 to 100. e.g. 67
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 730 more