@commands.command(aliases=['c'])
async def clear(self, ctx, amount: int=5):
    'Clear AMOUNT messages from chat. Default is 5. Also deletes\n        the message that invoked this command.\n\n        Usage: "clear <amount>"\n        '
    (await ctx.message.delete())
    (await ctx.channel.purge(limit=amount))
Clear AMOUNT messages from chat. Default is 5. Also deletes
the message that invoked this command.

Usage: "clear <amount>"
@commands.command(aliases=['c'])
async def clear(self, ctx, amount: int=5):
    'Clear AMOUNT messages from chat. Default is 5. Also deletes\n        the message that invoked this command.\n\n        Usage: "clear <amount>"\n        '
    (await ctx.message.delete())
    (await ctx.channel.purge(limit=amount))