{"id":15021720,"url":"https://github.com/i-moony/djs-button-pages","last_synced_at":"2025-10-29T22:31:15.920Z","repository":{"id":37532715,"uuid":"505095381","full_name":"i-Moony/djs-button-pages","owner":"i-Moony","description":"Simple yet powerful and extensible module to create fully-customizable embed pages with buttons.","archived":false,"fork":false,"pushed_at":"2023-05-25T13:53:23.000Z","size":2675,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-10-19T06:46:13.787Z","etag":null,"topics":["discord","discord-js","pagination"],"latest_commit_sha":null,"homepage":"https://i-moony.github.io/djs-button-pages/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i-Moony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-19T11:53:30.000Z","updated_at":"2024-05-13T12:43:53.000Z","dependencies_parsed_at":"2024-08-30T02:01:03.679Z","dependency_job_id":"04c208b3-d124-4f21-ad80-bc6722d6a0d4","html_url":"https://github.com/i-Moony/djs-button-pages","commit_stats":{"total_commits":208,"total_committers":1,"mean_commits":208.0,"dds":0.0,"last_synced_commit":"180820f9a79530f97666ed5ca6592e3eedd5fe74"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-Moony%2Fdjs-button-pages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-Moony%2Fdjs-button-pages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-Moony%2Fdjs-button-pages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-Moony%2Fdjs-button-pages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i-Moony","download_url":"https://codeload.github.com/i-Moony/djs-button-pages/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238909296,"owners_count":19550837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-js","pagination"],"created_at":"2024-09-24T19:56:56.693Z","updated_at":"2025-10-29T22:31:15.313Z","avatar_url":"https://github.com/i-Moony.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align = \"center\"\u003e\n    \u003cbr\u003e\n    \u003cp\u003e\n        \u003ca href = \"https://i-moony.github.io/djs-button-pages/\"\u003e\n            \u003cimg src = \"./assets/djs-button-pages-cropped.png\" alt = \"logo\" /\u003e\n        \u003c/a\u003e\n    \u003c/p\u003e\n    \u003cp\u003e\n        \u003ca href = \"https://www.npmjs.com/package/djs-button-pages\"\u003e\n            \u003cimg src = \"https://img.shields.io/npm/v/djs-button-pages?color=FF4433\u0026style=for-the-badge\" alt = \"npm-version\" /\u003e\n        \u003c/a\u003e\n        \u003ca href = \"https://www.npmjs.com/package/djs-button-pages\"\u003e\n            \u003cimg src = \"https://img.shields.io/npm/dt/djs-button-pages?color=FF4433\u0026style=for-the-badge\" alt = \"npm-downloads\" /\u003e\n        \u003c/a\u003e\n        \u003ca href = \"https://github.com/i-Moony/djs-button-pages\"\u003e\n            \u003cimg src = \"https://img.shields.io/github/issues/i-Moony/djs-button-pages?color=FF4433\u0026style=for-the-badge\" alt = \"github-issues\" /\u003e\n        \u003c/a\u003e\n    \u003c/p\u003e\n    \u003cp\u003e\n        \u003ca href = \"https://discord.gg/WRKyCpHRAP\"\u003e\n            \u003cimg src = \"https://img.shields.io/discord/1094672489180844164?color=%235164e3\u0026label=Discord\u0026logo=Discord\u0026logoColor=%23FFFFFF\u0026style=for-the-badge\" /\u003e\n        \u003c/a\u003e\n    \u003c/p\u003e\n    \u003cimg src = \"./assets/showcase.gif\" alt = \"Library in action\" title = \"Library in action\" /\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n# 📚 About package:\n### **Simple yet powerful and extensible module to create fully-customizable embed pages with buttons.**\n\n▶️ Works with [Discord.JS](https://www.npmjs.com/package/discord.js). Supports v14. *Legacy versions support v13 and v14.*\n\n**▶️ This packages supports creation of custom buttons with your own scripts through a simple API.**\n\n▶️ If you want some pre-built buttons consider using [@djs-button-pages/presets](https://www.npmjs.com/package/@djs-button-pages/presets). They contain basic ones *(But you can contribute some of your own to this package if you want to)*.\n\n# 📥 Installation:\n### Requires Node **16.9** *(because of Discord.JS)*.\n\n```bash\nnpm install djs-button-pages\n```\n```bash\nyarn add djs-button-pages\n```\n```bash\npnpm install djs-button-pages\n```\n\n### There are several other branches:\n- **djs14-legacy**\n- **djs13**\n- **djs13-legacy**\n\n# 📃 Examples:\n\n## Basic example:\n```js\n// Imports.\nconst { Client, EmbedBuilder, ButtonStyle } = require(\"discord.js\");\nconst { PaginationWrapper } = require(\"djs-button-pages\");\n// Pre-made buttons.\nconst { NextPageButton, PreviousPageButton } = require('@djs-button-pages/presets');\n\nconst embeds =\n[\n    // Array of embeds for pagination.\n];\n\n// Array of buttons for pagination.\nconst buttons =\n[\n    new PreviousPageButton\n    ({\n        custom_id: \"prev_page\",\n        emoji: \"◀\",\n        style: ButtonStyle.Secondary\n    }),\n    new NextPageButton\n    ({\n        custom_id: \"next_page\",\n        emoji: \"▶\",\n        style: ButtonStyle.Secondary\n    }),\n];\n\n// No intents needed for this example.\nconst client = new Client({intents: []});\n\n// Catch command.\nclient.on(\"interactionCreate\", async (interaction) =\u003e {\n    if (interaction.isCommand() \u0026\u0026 interaction.commandName === \"pages\")\n    {\n        // Setup pagination.\n        const pagination = new PaginationWrapper()\n            .setButtons(buttons)\n            .setEmbeds(embeds)\n            .setTime(60000);\n\n        // Send it as a reply to interaction.\n        await pagination.interactionReply(interaction);\n        // Everything else will be done for you!\n    };\n});\n```\n\n### More interesting examples with commentary can be found at [GitHub](https://github.com/i-Moony/djs-button-pages) page.\n\n# ❔ Links:\n* [GitHub](https://github.com/i-Moony/djs-button-pages)\n* [Documentation](https://i-moony.github.io/djs-button-pages/)\n* [NPM](https://www.npmjs.com/package/djs-button-pages)\n* [NotABug](https://notabug.org/m00ny/djs-button-pages)\n* [Discord Server](https://discord.gg/WRKyCpHRAP)\n* [Discord.JS](https://discord.js.org/)\n* [Discord.JS Documenation](https://discord.js.org/#/docs/)\n* [Discord.JS Guide](https://discordjs.guide/)\n\n# 🐛 Bug Reporting:\nFor bug reporting look for [GitHub Issues](https://github.com/i-Moony/djs-button-pages/issues).\n\nIf you need support, you can join my [Discord Server](https://discord.gg/WRKyCpHRAP).\n\n# © License:\n\nCopyright © 2022 Danila Kononov (nickname: moony). All rights reserved.\n\nLicensed under the Apache License, Version 2.0.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-moony%2Fdjs-button-pages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi-moony%2Fdjs-button-pages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-moony%2Fdjs-button-pages/lists"}