From c523c297fc67e3c5d3687bf3bc568885a957717b Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 14 Aug 2022 15:33:46 -0300 Subject: [PATCH] guild.mod: fix off-by-one error on role counting --- litecord/blueprints/guild/mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/guild/mod.py b/litecord/blueprints/guild/mod.py index c3f17fb..fd8d16c 100644 --- a/litecord/blueprints/guild/mod.py +++ b/litecord/blueprints/guild/mod.py @@ -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