Answers for "Clear All the Chat in Discord Channel With Bot Python COde"

0

Clear All the Chat in Discord Channel With 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)
Posted by: Guest on May-16-2021

Code answers related to "Clear All the Chat in Discord Channel With Bot Python COde"

Python Answers by Framework

Browse Popular Code Answers by Language