From 8ecdf45fa796ca2d90f5a0d50d3fa1cc562d0766 Mon Sep 17 00:00:00 2001 From: bobloy Date: Wed, 16 Sep 2020 13:43:56 -0400 Subject: [PATCH] One more error handler --- reactrestrict/reactrestrict.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactrestrict/reactrestrict.py b/reactrestrict/reactrestrict.py index 226cf24..25a32c1 100644 --- a/reactrestrict/reactrestrict.py +++ b/reactrestrict/reactrestrict.py @@ -303,7 +303,10 @@ class ReactRestrict(Cog): return message = await self._get_message_from_channel(channel_id, message_id) - await message.remove_reaction(emoji, member) + try: + await message.remove_reaction(emoji, member) + except (discord.Forbidden, discord.NotFound, discord.HTTPException): + log.exception("Unable to remove reaction") # try: # await member.add_roles(*roles)