Answers for "how to make clear command discord.py"

3

discord.py clear command

@client.command()
async def clear(ctx, amount=5):
	await ctx.channel.purge(limit=ammount)
Posted by: Guest on November-30-2020
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

Code answers related to "how to make clear command discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language