Embed will only react to reactions on its own message
This commit is contained in:
parent
3d8c3b0d88
commit
feefff0a2b
@ -360,9 +360,10 @@ class Book:
|
|||||||
# noinspection PyShadowingNames
|
# noinspection PyShadowingNames
|
||||||
def check(reaction, user):
|
def check(reaction, user):
|
||||||
if self._locked:
|
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:
|
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()
|
await self.display_page()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user