Declare count as an int for purge and cleanup
This commit is contained in:
parent
fc78522ad3
commit
3c8dbf5822
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user