From 3c8dbf5822650179fb611d5e651e0160b3790a0b Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sun, 21 Apr 2024 08:37:56 -0700 Subject: [PATCH] Declare count as an int for purge and cleanup --- app/cogs/server_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cogs/server_utils.py b/app/cogs/server_utils.py index 76174887..2517b594 100755 --- a/app/cogs/server_utils.py +++ b/app/cogs/server_utils.py @@ -179,7 +179,7 @@ class ServerUtils(commands.Cog): default=20, required=True, ) - async def purge(self, ctx: commands.Context, count): + async def purge(self, ctx: commands.Context, count: int): def is_me(m): return m.author == ctx.author @@ -197,7 +197,7 @@ class ServerUtils(commands.Cog): default=3, required=True, ) - async def cleanup(self, ctx: commands.Context, count): + async def cleanup(self, ctx: commands.Context, count: int): def is_discord_bot(m): return m.author == self.bot.user