Removed paging emojis if only one page
This commit is contained in:
parent
97d7dc7e25
commit
87566fffcd
@ -381,11 +381,18 @@ class Book:
|
|||||||
|
|
||||||
await self.display_page()
|
await self.display_page()
|
||||||
|
|
||||||
|
if len(self._pages) > 1:
|
||||||
for emoji in self._bot.book_emojis.values():
|
for emoji in self._bot.book_emojis.values():
|
||||||
try:
|
try:
|
||||||
await self._message.add_reaction(emoji)
|
await self._message.add_reaction(emoji)
|
||||||
except (discord.Forbidden, KeyError):
|
except (discord.Forbidden, KeyError):
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
await self._message.add_reaction(self._bot.book_emojis['unlock'])
|
||||||
|
await self._message.add_reaction(self._bot.book_emojis['close'])
|
||||||
|
except (discord.Forbidden, KeyError):
|
||||||
|
pass
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user