Answers for "discord.py how to clear the code"

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

Python Answers by Framework

Browse Popular Code Answers by Language