Zero indexed...

release-1.0.0
DustyP 8 years ago
parent 714d5cd229
commit ee2ebe4274

@ -304,7 +304,7 @@ class Book:
except asyncio.TimeoutError: except asyncio.TimeoutError:
await m.edit(content='Message Timed out.') await m.edit(content='Message Timed out.')
else: else:
self._current_page = int(msg.content) self._current_page = int(msg.content) - 1
elif str(reaction.emoji) == self._bot.book_emojis['unlock']: elif str(reaction.emoji) == self._bot.book_emojis['unlock']:
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)

Loading…
Cancel
Save