code: async def wait_loop(self):
          
  
          start, back, forward, end, close = self.emojis
  
          def check(payload: discord.RawReactionActionEvent):
              """
              Checks if this reaction is related to the paginator interface.
              """
  
              owner_check = not self.owner or payload.user_id == self.owner.id
  
              emoji = payload.emoji
              if isinstance(emoji, discord.PartialEmoji) and emoji.is_unicode_emoji():
                  emoji = emoji.name
  
              return payload.message_id == self.message.id and \
                  emoji and emoji in self.emojis and \
                  payload.user_id != self.bot.user.id and owner_check
  
          try:
              while not self.bot.is_closed():
                  payload = await self.bot.wait_for('raw_reaction_add', check=check, timeout=self.timeout)
  
                  emoji = payload.emoji
                  if isinstance(emoji, discord.PartialEmoji) and emoji.is_unicode_emoji():
                      emoji = emoji.name
  
                  if emoji == close:
                      await self.message.delete()
                      return
  
                  if emoji == start:
                      self._display_page = 0
                  elif emoji == end:
                      self._display_page = self.page_count - 1
                  elif emoji == back:
                      self._display_page -= 1
                  elif emoji == forward:
                      self._display_page += 1
  
                  self.bot.loop.create_task(self.update())
  
                  try:
                      await self.message.remove_reaction(payload.emoji, discord.Object(id=payload.user_id))
                  except discord.Forbidden:
                      pass
  
          except asyncio.TimeoutError:
              if self.delete_message:
                  return await self.message.delete()
  
              for emoji in filter(None, self.emojis):
                  try:
                      await self.message.remove_reaction(emoji, self.message.guild.me)
                  except (discord.Forbidden, discord.NotFound):
                      pass
docs: Waits on a loop for reactions to the message. This should not be called manually - it is handled by `send_to`.