1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 22:27:28 +00:00

Fix Forbidden exception from being thrown within command

This commit is contained in:
Dylan Dizon 2018-11-06 15:54:14 -05:00
parent 1c5f2b39a0
commit c33c406814

View file

@ -1515,8 +1515,11 @@ class MsG:
except exc.Remove: except exc.Remove:
await message.edit(content=f'**Also add aliases?**```\n{formatter.tostring(aliases)}```\nType the tag(s) to remove or `0` to abort:') await message.edit(content=f'**Also add aliases?**```\n{formatter.tostring(aliases)}```\nType the tag(s) to remove or `0` to abort:')
with suppress(err.Forbidden):
await message.remove_reaction('\N{HEAVY MINUS SIGN}', self.bot.user) await message.remove_reaction('\N{HEAVY MINUS SIGN}', self.bot.user)
await message.remove_reaction('\N{HEAVY MINUS SIGN}', ctx.author) await message.remove_reaction('\N{HEAVY MINUS SIGN}', ctx.author)
response = await self.bot.wait_for('message', check=on_message, timeout=7 * 60) response = await self.bot.wait_for('message', check=on_message, timeout=7 * 60)
for tag in response.content.split(' '): for tag in response.content.split(' '):