One more error handler

pull/138/head
bobloy 4 years ago
parent 88ef475339
commit 8ecdf45fa7

@ -303,7 +303,10 @@ class ReactRestrict(Cog):
return return
message = await self._get_message_from_channel(channel_id, message_id) message = await self._get_message_from_channel(channel_id, message_id)
try:
await message.remove_reaction(emoji, member) await message.remove_reaction(emoji, member)
except (discord.Forbidden, discord.NotFound, discord.HTTPException):
log.exception("Unable to remove reaction")
# try: # try:
# await member.add_roles(*roles) # await member.add_roles(*roles)

Loading…
Cancel
Save