Answers for "discord.py clear message"

0

discord.py clear

@bot.command()
async def clear(ctx, amount=5):
	await ctx.channel.purge(limit=amount)

or

@client.command()
async def clear(ctx, amount=5):
	await ctx.channel.purge(limit=amount)
Posted by: Guest on February-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language