Embed will only react to reactions on its own message

This commit is contained in:
Dustin Pianalto 2018-06-07 23:52:27 -08:00
parent 3d8c3b0d88
commit feefff0a2b

View File

@ -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()