Moderation
pruneCount
$pruneCount
Counts the members who would be removed by $prune (inactive for the given days). Bot Creator function, not in the official BDFD wiki.
Syntax
$pruneCount[(days);(guildID);(includeRoles)]
Parameters
| Parameter | Description |
|---|---|
days |
Optional. 1 to 30, 7 by default. |
guildID |
Optional. The ID of the server. Empty or absent: the current server. |
includeRoles |
Optional. Role IDs separated by commas: members with these roles are counted too. |
Return Value
- The number of members.
Example
$pruneCount[7]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.