[Mod] Ignore command's message autodelete errors

This commit is contained in:
Twentysix 2017-05-18 19:23:57 +02:00
parent 36489f0701
commit fdd2805e8f

View File

@ -1572,10 +1572,8 @@ class Mod:
try: try:
await bot.delete_message(message) await bot.delete_message(message)
logger.debug("Deleted command msg {}".format(message.id)) logger.debug("Deleted command msg {}".format(message.id))
except discord.errors.Forbidden: except:
# Do not have delete permissions pass # We don't really care if it fails or not
logger.debug("Wanted to delete mid {} but no"
" permissions".format(message.id))
await asyncio.sleep(delay) await asyncio.sleep(delay)
await _delete_helper(self.bot, message) await _delete_helper(self.bot, message)