From b1574a96d7993faf973d8826d12481a9a0b93a0b Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Thu, 7 Jun 2018 23:56:13 -0800 Subject: [PATCH] Embed will only react to reactions on its own message --- src/imports/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/imports/utils.py b/src/imports/utils.py index 0699742..6b7af81 100644 --- a/src/imports/utils.py +++ b/src/imports/utils.py @@ -361,9 +361,11 @@ class Book: def check(reaction, user): if self._locked: return str(reaction.emoji) in self._bot.book_emojis.values() \ - and user == self._calling_message.author and reaction.message == self._message + and user == self._calling_message.author \ + and reaction.message.id == self._message.id else: - return str(reaction.emoji) in self._bot.book_emojis.values() and reaction.message == self._message + return str(reaction.emoji) in self._bot.book_emojis.values() \ + and reaction.message.id == self._message.id await self.display_page()