From d60b650316cc7f1327b59a39187a0a36befa3c9e Mon Sep 17 00:00:00 2001 From: fazledyn-or Date: Fri, 8 Dec 2023 17:18:09 +0600 Subject: [PATCH] Fixed Inappropriate Logical Expression Signed-off-by: fazledyn-or --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index bb47c75283..ed7c861355 100644 --- a/bot.py +++ b/bot.py @@ -1285,7 +1285,7 @@ async def handle_reaction_events(self, payload): logger.warning("Failed to find linked message for reactions: %s", e) return - if self.config["transfer_reactions"] and linked_messages is not [None]: + if self.config["transfer_reactions"] and linked_messages != [None]: if payload.event_type == "REACTION_ADD": for msg in linked_messages: await self.add_reaction(msg, reaction)