Embed will only react to reactions on its own message

This commit is contained in:
Dustin Pianalto 2018-06-07 23:56:13 -08:00
parent feefff0a2b
commit b1574a96d7

View File

@ -361,9 +361,11 @@ class Book:
def check(reaction, user): def check(reaction, user):
if self._locked: if self._locked:
return str(reaction.emoji) in self._bot.book_emojis.values() \ 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: 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() await self.display_page()