From 9834820efec1c2b0128553ff72341951f7616a03 Mon Sep 17 00:00:00 2001 From: FrostLuma Date: Sat, 2 Dec 2017 21:37:59 +0100 Subject: [PATCH] rsudo: fix nameerror --- bot/ext/rsudo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/ext/rsudo.py b/bot/ext/rsudo.py index 5b5b876..a6d2da6 100644 --- a/bot/ext/rsudo.py +++ b/bot/ext/rsudo.py @@ -61,7 +61,7 @@ class Rsudo(Cog): if _reaction.message.id != msg.id: return - if reaction.emoji not in emoji.keys(): + if _reaction.emoji not in emoji.keys(): return False return discord.utils.get(_user.roles, id=self.bot.config.admin_role) is not None