From feefff0a2bcfedc0a8c2a2c6693628397ae84611 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Thu, 7 Jun 2018 23:52:27 -0800 Subject: [PATCH] Embed will only react to reactions on its own message --- src/imports/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/imports/utils.py b/src/imports/utils.py index 58e9cf9..0699742 100644 --- a/src/imports/utils.py +++ b/src/imports/utils.py @@ -360,9 +360,10 @@ class Book: # noinspection PyShadowingNames def check(reaction, user): if self._locked: - return str(reaction.emoji) in self._bot.book_emojis.values() and user == self._calling_message.author + return str(reaction.emoji) in self._bot.book_emojis.values() \ + and user == self._calling_message.author and reaction.message == self._message else: - return str(reaction.emoji) in self._bot.book_emojis.values() + return str(reaction.emoji) in self._bot.book_emojis.values() and reaction.message == self._message await self.display_page()