Declare count as an int for purge and cleanup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Robles 2024-04-21 08:37:56 -07:00
parent b28ba18e7d
commit 5ad6f26c10

View File

@ -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