Löschen Sie den gesamten Chat im Discord -Kanal mit Bot Python -Code

client = commands.Bot(command_prefix='-')

@client.command(name='clear', help='this command will clear msgs')
async def clear(ctx, amount = 5):
    await ctx.channel.purge(limit=amount)
Gentle Gecko