guild.mod: fix off-by-one error on role counting

This commit is contained in:
Luna 2022-08-14 15:33:46 -03:00
parent c93b0f1a7b
commit c523c297fc
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ async def get_prune(guild_id: int, days: int) -> list:
member_id, member_id,
) )
if role_count == 0: if role_count == 1: # only the @everyone role
members.append(member_id) members.append(member_id)
return members return members