{"id":25876051,"url":"https://github.com/cbrra/discord.js-embedpagination","last_synced_at":"2026-01-28T12:01:48.736Z","repository":{"id":57685866,"uuid":"487577693","full_name":"Cbrra/discord.js-EmbedPagination","owner":"Cbrra","description":"Allows you to create a simple and fully customizable embed pagination with discord.js v14.","archived":false,"fork":false,"pushed_at":"2022-05-08T12:05:38.000Z","size":54,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T16:51:24.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Cbrra.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":"2022-05-01T15:51:09.000Z","updated_at":"2025-10-05T01:10:19.000Z","dependencies_parsed_at":"2022-09-18T23:00:52.045Z","dependency_job_id":null,"html_url":"https://github.com/Cbrra/discord.js-EmbedPagination","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Cbrra/discord.js-EmbedPagination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cbrra%2Fdiscord.js-EmbedPagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cbrra%2Fdiscord.js-EmbedPagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cbrra%2Fdiscord.js-EmbedPagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cbrra%2Fdiscord.js-EmbedPagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cbrra","download_url":"https://codeload.github.com/Cbrra/discord.js-EmbedPagination/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cbrra%2Fdiscord.js-EmbedPagination/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T10:53:21.605Z","status":"ssl_error","status_checked_at":"2026-01-28T10:53:20.789Z","response_time":57,"last_error":"SSL_read: 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":"2025-03-02T10:20:38.226Z","updated_at":"2026-01-28T12:01:48.701Z","avatar_url":"https://github.com/Cbrra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EmbedPagination\n\n\u003cp\u003e\n    \u003ca href=\"https://discord.gg/d8DTUfT\"\u003e\u003cimg src=\"https://img.shields.io/discord/687287209300197566?color=5865F2\u0026logo=discord\u0026logoColor=white\" alt=\"Discord server\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.npmjs.com/package/djs-embedpagination\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/djs-embedpagination.svg?maxAge=3600\" alt=\"npm version\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## About\nAllows you to create a simple and fully customizable embed pagination with [discord.js](https://github.com/discordjs/discord.js/) v14.\n\n## Help\nNeed help ? Join my [Discord server](https://discord.gg/d8DTUfT) and send me a private message ! (Cobra//#5239 ; 619838036846575617)\n\n## Docs\nCreate the pagination instance with your discord's client's user's id\n```js\nnew EmbedPagination(clientId: string)\n```\n\nSet the user who own this pagination, and the optional error message for others\n\u003cbr\u003eIf no errorMessage provided, everyone can use the pagination\n```js\nsetUserId(userId: Snowflake, errorMessage?: string): this\n```\n\nSet the interaction or the message\n```js\n.setInteraction(interaction): this\nor\n.setMessage(message): this\n```\n\nSet the longevity (default to 1_200_000)\n```js\n.setTime(time: number): this\n```\n\nSet the navigation buttons labels\n```js\n.setLabels(label0: string, label1: string): this\n```\n\nSet additionnal rows to the message\n```js\n.setRows(rows: ActionRowBuilder\u003cButtonBuilder | SelectMenuBuilder\u003e[]): this\n```\n\nAdd an embed\n```js\naddEmbed(embed: EmbedBuilder | ((instance: this) =\u003e EmbedBuilder)): this\n```\n\nSet embeds\n```js\nsetEmbeds(embeds: (EmbedBuilder | ((instance: this) =\u003e EmbedBuilder))[]): this\n```\n\nAdd a button\n```js\naddButton(button: PaginationButton): this\n```\n\nSet buttons\n```js\nsetButtons(buttons: PaginationButton[]): this\n```\n\nIf true and if the pagination only contains 1 page, remove the navigation buttons\n```js\nautoRemoveUpdateButtons(value: boolean): this\n```\n\nDisable the navigation buttons\n```js\ndisableUpdateButtons(state: boolean): this\n```\n\nDisable all the message components at the end of the collector\n```js\ndisableAtEnd(state: boolean): this\n```\n\nSet a callback executed at each page change\n```js\nsetUpdateCallback(callback: (instance: this, p: number) =\u003e void): this\n```\n\nSet a callback for your custom components\n```js\nsetSpecialCallback(callback: (instance: this, i: MessageComponentInteraction | SelectMenuInteraction) =\u003e void): this\n```\n\nUpdate the pagination\n```js\nupdate(): void\n```\n\nStart the pagination\n```js\nstart(page?: number): Promise\u003cvoid\u003e\n```\n\nChange the current page of the pagination (can be use in the callbacks)\n```js\nchangePage(type: string, interaction: MessageComponentInteraction): void\n```\n\n## Basic Example (Slash Command)\n```js\nconst { EmbedBuilder, ButtonBuilder, ButtonStyle } = require(\"discord.js\");\nconst { EmbedPagination } = require(\"djs-embedpagination\");\n\nconst embed = new EmbedBuilder()\n    .setColor(\"#2a90fe\")\n    .setTitle(\"First embed\")\n    .setDescription(\"If you see this, the embedpagination works !\");\n\nconst embed2 = new EmbedBuilder()\n    .setColor(\"#2a90fe\")\n    .setTitle(\"Second embed\")\n    .setDescription(\"Hello world !\");\n\nnew EmbedPagination(client.user.id)\n    .setUserId(interaction.user.id, \"You can't interact with this message !\")\n    .setInteraction(interaction)\n    .setLabels(\"Previous Page\", \"Next Page\")\n    .setEmbeds([embed, embed2])\n    .addButton({\n        position: \"Right\",\n        button: new ButtonBuilder()\n            .setCustomId(\"custom-button\")\n            .setLabel(\"Custom button\")\n            .setStyle(ButtonStyle.Secondary)\n    })\n    .setSpecialCallback((instance, i) =\u003e i.reply(\"Clicked !\"))\n    .start();\n```\nResult:\n\u003cbr\u003e\u003cimg src=\"./example.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrra%2Fdiscord.js-embedpagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbrra%2Fdiscord.js-embedpagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbrra%2Fdiscord.js-embedpagination/lists"}