code: async def numbered_page(self):
          
          to_delete = []
          to_delete.append(await self.bot.send_message(self.message.channel, 'What page do you want to go to?'))
          msg = await self.bot.wait_for_message(author=self.author, channel=self.message.channel,
                                                check=lambda m: m.content.isdigit(), timeout=30.0)
          if msg is not None:
              page = int(msg.content)
              to_delete.append(msg)
              if page != 0 and page <= self.maximum_pages:
                  await self.show_page(page)
              else:
                  to_delete.append(await self.bot.say('Invalid page given. (%s/%s)' % (page, self.maximum_pages)))
                  await asyncio.sleep(5)
          else:
              to_delete.append(await self.bot.send_message(self.message.channel, 'Took too long.'))
              await asyncio.sleep(5)
  
          try:
              await self.bot.delete_messages(to_delete)
          except Exception:
              pass
docs: lets you type a page number to go to