1@client.command()
2async def clear(ctx, amount=5):
3 await ctx.channel.purge(limit=ammount)
1@bot.command()
2async def clear(ctx, amount=5):
3 await ctx.channel.purge(limit=amount)
4
5or
6
7@client.command()
8async def clear(ctx, amount=5):
9 await ctx.channel.purge(limit=amount)
1def _status(self, ctx, *, message):
2 '''Set a custom playing status for the bot.'''
3 if message == 'clear':
4 return await self.change_presence(activity=None)
5 await self.change_presence(activity=discord.Game(message))
6 await ctx.send(f"Changed status to **{message}**")