fixed book... again.

This commit is contained in:
Dusty.P 2018-06-06 23:14:54 -08:00
parent dc98e5eea3
commit 82cf5d9856

View File

@ -275,6 +275,7 @@ class Book:
pass pass
raise asyncio.CancelledError raise asyncio.CancelledError
else: else:
await self._message.remove_reaction(reaction, user)
if str(reaction.emoji) == self._bot.book_emojis['close']: if str(reaction.emoji) == self._bot.book_emojis['close']:
await self._calling_message.delete() await self._calling_message.delete()
await self._message.delete() await self._message.delete()
@ -293,7 +294,6 @@ class Book:
self._locked = False self._locked = False
await self._message.remove_reaction(reaction, self._channel.guild.me) await self._message.remove_reaction(reaction, self._channel.guild.me)
continue continue
await self._message.remove_reaction(reaction, user)
await self.display_page() await self.display_page()
self._bot.loop.create_task(reaction_checker()) self._bot.loop.create_task(reaction_checker())