From 2f2d9c916bacbbcbc4177593dca11ea89e9a8b0e Mon Sep 17 00:00:00 2001 From: gsd Date: Thu, 9 Mar 2023 21:58:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B4=D0=B8=20=D1=81=D1=8E=D0=B4=D0=B0?= =?UTF-8?q?=20=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other_ext/webhook_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/other_ext/webhook_helper.py b/other_ext/webhook_helper.py index b24c7d8..acfd2ff 100644 --- a/other_ext/webhook_helper.py +++ b/other_ext/webhook_helper.py @@ -45,6 +45,8 @@ class Extension: @core.listen() async def on_reaction_add(reaction: discord.Reaction, user: discord.User): + print(reaction.emoji, reaction.message.webhook_id, reaction.me, reaction.message.guild.get_member(user.id).get_role(self.track_role_id)) + if reaction.message.webhook_id != self.track_webhook_id: return @@ -54,8 +56,6 @@ class Extension: if not reaction.message.guild.get_member(user.id).get_role(self.track_role_id): return - print(reaction.emoji) - if str(reaction.emoji) in self.webhook_reaction_translate.keys(): executor, kwargs = self.webhook_reaction_translate[str(reaction.emoji)] if "requester" in kwargs: