How to create pages for arrays quick.db discord.js

I’m trying to make it so that if there are more than 10 values in the array, the bot will have to create a new page via buttons. I looked at an example with the number of receiving guilds in the id list and its name. But I still don’t understand how it can be implemented. Yes, and I need to number each value, for example:

  1. amogus
  2. aus
    And then