mirror of https://gitlab.com/litecord/litecord.git
guild.mod: fix off-by-one error on role counting
This commit is contained in:
parent
c93b0f1a7b
commit
c523c297fc
|
|
@ -159,7 +159,7 @@ async def get_prune(guild_id: int, days: int) -> list:
|
|||
member_id,
|
||||
)
|
||||
|
||||
if role_count == 0:
|
||||
if role_count == 1: # only the @everyone role
|
||||
members.append(member_id)
|
||||
|
||||
return members
|
||||
|
|
|
|||
Loading…
Reference in New Issue