v5.0.0
$pruneStatus
Returns an amount of members that can be pruned.
This function shows you how many inactive members without roles and with optional given roles can be pruned currently from the given guild without actually kicking them..
Raw usage: $pruneMembers[amount of days(optional);guildID(optional);roleid1:roleid2:roleid3... (optional)]

Options:

  • amount of days => Number of days of inactivity required to kick
    • optional
    • must be between 1 and 30
    • defaults to 7
  • guildID => the guildID the members should be checked for prune status
    • optional
  • roles => Array of roles to bypass the "...and no roles" constraint when pruning so it includes members with given roles in the prune status
    • optional
    • separated by :

Example Command:

1
bot.command({
2
name: "prunestatus",
3
code: `
4
Pruning would kick:
5
$pruneStatus[5;$guildID;741266432574357586:820666519331405854] members!
6
`
7
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub