Catch no permissions to remove poll reaction
This commit is contained in:
parent
64bf95a872
commit
84c0ea6414
|
@ -77,7 +77,10 @@ class Polls(commands.Cog):
|
||||||
return
|
return
|
||||||
poll = self.get_poll(reaction.message)
|
poll = self.get_poll(reaction.message)
|
||||||
if poll:
|
if poll:
|
||||||
await poll.remove_other_reaction(reaction, user)
|
try:
|
||||||
|
await poll.remove_other_reaction(reaction, user)
|
||||||
|
except discord.Forbidden:
|
||||||
|
pass
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
|
|
Loading…
Reference in a new issue