1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Handled error when a the bot does not have permissions to delete a message

This commit is contained in:
Phxntxm 2016-08-21 20:52:27 -05:00
parent 20981729bd
commit 48ccf886b5

View file

@ -79,7 +79,10 @@ class Mod:
"""Tells the bot to repeat what you say"""
fmt = "\u200B{}".format(msg)
await self.bot.say(msg)
await self.bot.delete_message(ctx.message)
try:
await self.bot.delete_message(ctx.message)
except:
pass
@commands.group(pass_context=True, invoke_without_command=True, no_pm=True)
@checks.custom_perms(send_messages=True)