Function embedPager

  • Allows for embeds to be arranged in a list for users to sift through.

    Parameters

    • pages: EmbedBuilder[]

      Embeds

    • msg: InteractionSendable

      Interaction

    • ephemeral: boolean = false

      Should be ephemeral or not

    • content: string = ""

      Optional content to be added to the message

    • additionalButtons: ButtonBuilder[] = []

      Adds extra buttons to the message

    • callbacks: {
          [name: string]: ((page, interaction) => boolean | Promise<boolean>);
      } = {}

      Custom id indexed dictionary of button callbacks. This will be changed at some point to use QuickButton instead.

      • [name: string]: ((page, interaction) => boolean | Promise<boolean>)
          • (page, interaction): boolean | Promise<boolean>
          • Parameters

            Returns boolean | Promise<boolean>

    Returns Promise<void>