JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q45906F
  • License MIT

discord.js-pagination-ts modified to use buttons, and extended features.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (discord-js-button-pagination-ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    discord-js-button-pagination-ts

    jellz' discord.js-pagination Modified and changed to use buttons.

    • Buttons
    • Select start page
    • Optional owner
    • Paginate Embeds and or messageOptions, or mix both! (This allows pagination of messages with only text on one page and multiple embeds on next page!)

    Usage

    import { sendPaginatedMessage } from "discord-js-button-pagination-ts";
    import { Message, MessageEmbed } from "discord.js";
    
    new command("Example command", async (message: Message) => {
        const pages = [new MessageEmbed()
            .setDescription("Page 1"),
            // Pages can be the messageOptions object
            {
                content: "Page 2",
                embeds: [new MessageEmbed()
                    .setDescription("Embed on page 2"),
                    new MessageEmbed()
                        .setDescription("Another embed on page 2")],
            }];
    
        await sendPaginatedMessage(message, pages, { owner: message.author, timeout: 30000 });
    });

    TODO: Update this.