Add command to delete messages

This commit is contained in:
Yohann D'ANELLO 2021-11-13 15:51:53 +01:00
parent 8890d88ab8
commit 4f220a5c17
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 6 additions and 0 deletions

View File

@ -207,6 +207,12 @@ async def send(ctx: commands.Context, *, message: str):
await ctx.send(message)
@bot.command(help="Supprime les derniers messages.")
@commands.has_permissions(administrator=True)
async def clear(ctx: commands.Context, limit: int = 100):
await ctx.channel.purge(limit=limit)
@bot.command(help="Envoyer un message à Philia par la pensée en tant que Brother.")
@commands.has_permissions(administrator=True)
async def brother(ctx: commands.Context, *, message: str):