From 697f54aad9ffb943fcc6ee57ed8192ec155ac833 Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 4 Dec 2017 19:50:23 -0500 Subject: [PATCH] no temp code and .forbidden --- reactrestrict/reactrestrict.py | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/reactrestrict/reactrestrict.py b/reactrestrict/reactrestrict.py index 1badb40..13651f7 100644 --- a/reactrestrict/reactrestrict.py +++ b/reactrestrict/reactrestrict.py @@ -209,41 +209,13 @@ class ReactRestrict: pass except AttributeError: # VoiceChannel object has no attribute 'get_message' pass - except discordForbidden # No access to channel, skip + except discord.Forbidden: # No access to channel, skip pass return None - # async def _wait_for_emoji(self, ctx: commands.Context): - # """ - # Asks the user to react to this message and returns the emoji string if unicode - # or ID if custom. - - # :param ctx: - # :raises asyncio.TimeoutError: - # If the user does not respond in time. - # :return: - # """ - # message = await ctx.send("Please react to this message with the reaction you" - # " would like to add/remove, you have 20 seconds to" - # " respond.") - - # def _wait_check(react, user): - # msg = react.message - # return msg.id == message.id and user.id == ctx.author.id - - # reaction, _ = await ctx.bot.wait_for('reaction_add', check=_wait_check, timeout=20) - - # try: - # ret = reaction.emoji.id - # except AttributeError: - # The emoji is unicode - # ret = reaction.emoji - - # return ret, reaction.emoji - @commands.group() async def reactrestrict(self, ctx: commands.Context): """