rsudo: fix nameerror

This commit is contained in:
FrostLuma 2017-12-02 21:37:59 +01:00
parent b31ba91950
commit 9834820efe

View file

@ -61,7 +61,7 @@ class Rsudo(Cog):
if _reaction.message.id != msg.id: if _reaction.message.id != msg.id:
return return
if reaction.emoji not in emoji.keys(): if _reaction.emoji not in emoji.keys():
return False return False
return discord.utils.get(_user.roles, id=self.bot.config.admin_role) is not None return discord.utils.get(_user.roles, id=self.bot.config.admin_role) is not None