Declare count as an int for purge and cleanup

This commit is contained in:
Luke Robles 2024-04-21 08:37:56 -07:00
parent fc78522ad3
commit 3c8dbf5822

View File

@ -179,7 +179,7 @@ class ServerUtils(commands.Cog):
default=20, default=20,
required=True, required=True,
) )
async def purge(self, ctx: commands.Context, count): async def purge(self, ctx: commands.Context, count: int):
def is_me(m): def is_me(m):
return m.author == ctx.author return m.author == ctx.author
@ -197,7 +197,7 @@ class ServerUtils(commands.Cog):
default=3, default=3,
required=True, required=True,
) )
async def cleanup(self, ctx: commands.Context, count): async def cleanup(self, ctx: commands.Context, count: int):
def is_discord_bot(m): def is_discord_bot(m):
return m.author == self.bot.user return m.author == self.bot.user