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:
parent
1c5f2b39a0
commit
c33c406814
1 changed files with 5 additions and 2 deletions
|
@ -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:')
|
||||||
await message.remove_reaction('\N{HEAVY MINUS SIGN}', self.bot.user)
|
|
||||||
await message.remove_reaction('\N{HEAVY MINUS SIGN}', ctx.author)
|
with suppress(err.Forbidden):
|
||||||
|
await message.remove_reaction('\N{HEAVY MINUS SIGN}', self.bot.user)
|
||||||
|
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(' '):
|
||||||
|
|
Loading…
Reference in a new issue