<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def listreactions(self, ctx):
 """Lists all the reactions for the server"""

        data = self.config.get(ctx.message.server.id, {})
        if not data:
            await self.bot.responses.failure(message="There are no reactions on this server.")
            return
        try:
            pager = Pages(self.bot, message=ctx.message, entries=list(data.keys()))
            pager.embed.colour = 0x738bd7  # blurple
            pager.embed.set_author(name=ctx.message.server.name + " Reactions", icon_url=ctx.message.server.icon_url)
            await pager.paginate()

        except Exception as e:
            await self.bot.say(e)