{"id":40669108,"url":"https://github.com/zero734kr/discordjs-paginator","last_synced_at":"2026-01-21T09:18:00.226Z","repository":{"id":40707399,"uuid":"322139391","full_name":"zero734kr/discordjs-paginator","owner":"zero734kr","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T20:17:26.000Z","size":121,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-27T16:19:13.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zero734kr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-17T00:48:21.000Z","updated_at":"2020-12-18T00:13:33.000Z","dependencies_parsed_at":"2023-01-21T06:00:21.491Z","dependency_job_id":null,"html_url":"https://github.com/zero734kr/discordjs-paginator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zero734kr/discordjs-paginator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero734kr%2Fdiscordjs-paginator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero734kr%2Fdiscordjs-paginator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero734kr%2Fdiscordjs-paginator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero734kr%2Fdiscordjs-paginator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zero734kr","download_url":"https://codeload.github.com/zero734kr/discordjs-paginator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zero734kr%2Fdiscordjs-paginator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28630946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-21T09:18:00.150Z","updated_at":"2026-01-21T09:18:00.215Z","avatar_url":"https://github.com/zero734kr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eDiscordJS Embed Paginator\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/discordjs-paginator\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/discordjs-paginator.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/zero734kr/discordjs-paginator#readme\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/zero734kr/discordjs-paginator/graphs/commit-activity\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/zero734kr/discordjs-paginator/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/zero734kr/discordjs-paginator\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmcharts.com/compare/discordjs-paginator?minimal=true\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Downloads\" src=\"https://img.shields.io/npm/dm/discordjs-paginator.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e Embed Paginator to use easy and fastly with discord.js\n\n## Install\n\n```sh\n# NPM\n$ npm install discordjs-paginator\n# Yarn\n$ yarn add discordjs-paginator\n```\n\n## Options\n\n### EmbedPaginator\n\n| Option           | Type                                                                                | Required | Default                                       | Description                                                          |\n|------------------|-------------------------------------------------------------------------------------|----------|-----------------------------------------------|----------------------------------------------------------------------|\n| `message`        | [Message](https://discord.js.org/#/docs/main/master/class/Message)                  |    O     |                                               | The message instance to be binded with paginator                     |\n| `bindPageViewTo` | string (only \"footer\" and \"author\" allowed)                                         |    x     |   void                                        | Location to bind page view like `Page: 1 / 3`                        |\n| `channel`        | [TextChannel](https://discord.js.org/#/docs/main/stable/class/TextChannel)          |    x     |   void                                        | Overrides the `message` option                                       |\n| `emojis.prev`    | string                                                                              |    x     |    ◀                                          | The emoji used for previous button                                   |\n| `emojis.stop`    | string                                                                              |    x     |    ⏹                                         | The emoji used for stop button                                       |\n| `emojis.next`    | string                                                                              |    x     |    ▶                                          | The emoji used for next button                                       |\n| `filterCallback` | function: boolean                                                                   |    x     | ``(r, u, e) =\u003e r.emoji.name === e \u0026\u0026 !u.bot`` | Callback function to filter reactions                                |\n| `time`           | number                                                                              |    x     |   360000                                      | Timeout to destroy reaction collectors                               |\n| `pageView`       | string                                                                              |    x     | ``\"Page: {CURRENT_PAGE} / {TOTAL_PAGE}\"``     | Page view text to be binded (only work with `bindPageViewTo` option) |\n\n\n## Usage\n\nIf you want to see usage more quickly, [click](https://github.com/zero734kr/discordjs-paginator#quick-usage)\n\n```js\nconst { EmbedPaginator } = require(\"discordjs-paginator\")\nconst { Client, Collection, MessageEmbed } = require(\"discord.js\")\nconst client = new Client()\nconst PREFIX = \"!\"\n\nclient.storage = new Collection()\nclient.deploys = new Collection()\n\nclient.on(\"ready\", () =\u003e console.log(`Ready as ${client.user.tag}`))\n\nclient.on(\"message\", async message =\u003e {\n    if (\n        message.author.bot\n        || message.channel.type === \"dm\"\n        || message.system\n        || !message.content.startsWith(PREFIX)\n    ) return\n\n    const args = message.content.slice(PREFIX.length).trim().split(/ +/gi)\n    const command = args.shift().toLowerCase()\n\n    if (command === \"embed\") {\n        const subcommand = args.shift().toLowerCase()\n\n        if (subcommand === \"add\") {\n            const embed = new MessageEmbed().setDescription(args.join(\" \"))\n\n            const cache = client.storage.get(message.author.id)\n            if (cache) client.storage.set(message.author.id, [...cache, embed])\n            else client.storage.set(message.author.id, [embed])\n\n            return message.reply(\"added\")\n        }\n        if (subcommand === \"remove\") {\n            const index = parseInt(args[0]) - 1\n\n            const cache = client.storage.get(message.author.id)\n            if (!cache) return message.reply(\"couldn't find embed to remove, empty storage\")\n            if (!cache[index]) return message.reply(`index ${index} out of range(length: ${cache.length})`)\n\n            client.storage.set(message.author.id, cache.filter((f, i) =\u003e i !== index))\n            return message.reply(\"removed\")\n        }\n        if (subcommand === \"deploy\") {\n            const cache = client.storage.get(message.author.id)\n            const msgResolvable = args[0]\n\n            if (!cache) return message.reply(\"couldn't find embeds to show\")\n            if (!msgResolvable) return message.reply(`Usage: \\`\\`${PREFIX}embed deploy \u003cmsg ID\u003e\\`\\``)\n\n            const deploy = new EmbedPaginator({\n                message: await message.channel.messages.fetch(msgResolvable),\n                bindPageViewTo: \"footer\",\n                pageView: \"Page {CURRENT_PAGE} of {TOTAL_PAGE}\"\n            })\n\n            for (const embed of cache) deploy.addEmbed(embed)\n\n            deploy.show()\n\n            client.deploys.set(message.author.id, deploy)\n            return message.reply(\"deployed\")\n        }\n        if (subcommand === \"clear\") {\n            client.storage.delete(message.author.id)\n            client.deploys.delete(message.author.id)\n            return message.reply(\"forcibly removed embed storage\")\n        }\n    }\n})\n\nclient.login(\"super secret token\")\n```\n\n### Quick Usage\n\n```js\nnew EmbedPaginator({\n  message: await message.channel.messages.fetch(msgResolvable),\n  bindPageViewTo: \"footer\",\n  pageView: \"Page {CURRENT_PAGE} of {TOTAL_PAGE}\"\n})\n```\n\n## Author\n\n👤 **zero734kr**\n\n* Personal Github: [@zero734kr](https://github.com/zero734kr)\n\n\n## 🤝 Contribuiting\n\nIssues and Pull Requests are welcome!\u003cbr\u003e\nIf you had a problem please contact at [issues page](https://github.com/zero734kr/discordjs-paginator/issues)\u003cbr\u003e\nCode Change Requests are available to open pulls at [PR page](https://github.com/zero734kr/discordjs-paginator/pulls).\n\n\n## Support\n\nIf this library was useful please star⭐️ this repo\n\n\n## 📝 License\n\nCopyright © 2020 [zero734kr](https://github.com/zero734kr).\u003cbr /\u003e\nThis project is [MIT](https://github.com/zero734kr/discordjs-paginator/blob/master/LICENSE) licensed.\n\n***\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzero734kr%2Fdiscordjs-paginator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzero734kr%2Fdiscordjs-paginator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzero734kr%2Fdiscordjs-paginator/lists"}