Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Clear #All #Chat #Discord #Channel #With #Bot #Python #COde
ADD COMMENT
Topic
Name
2+6 =