Members & roles · Step
Prune inactive members
How many members with no roles haven't been seen for a while, and kick them if you say so.
member.prune
In a flow
“When a button is clicked, prune inactive members.”
/prune-check → Prune inactive members (only count) → Reply: {node.p.count} would go.
What it does
How many members with no roles haven't been seen for a while, and kick them if you say so. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 1 value 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 with no roles haven't been seen for a while, and kick them if you say so.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Away for (days) Number
-
Members who haven't been seen for this long, 1 to 30.
What goes there: Type it in the side panel, or wire in a number. e.g. 42
If it's empty: Optional. Left empty and unwired, it uses 30.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more
Values it gives
- Members Number
-
How many would go, or went. e.g. 31
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 718 more