Add command to delete messages
This commit is contained in:
parent
8890d88ab8
commit
4f220a5c17
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue