1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Catch no permissions to remove reaction

This commit is contained in:
Dan Hess 2020-03-04 18:32:38 -06:00
parent 0fc3ccc518
commit 1fd5362177

View file

@ -1,3 +1,5 @@
import discord
from discord.ext import commands
import utils
@ -33,7 +35,10 @@ class Poll:
continue
users = await r.users().flatten()
if member.id in [x.id for x in users]:
await self.message.remove_reaction(r, member)
try:
await self.message.remove_reaction(r, member)
except discord.Forbidden:
return
class Polls(commands.Cog):