devRael1 / discordjs-pagination

A pagination system for Discord.js v14
https://www.npmjs.com/package/@devraelfreeze/discordjs-pagination
MIT License
11 stars 10 forks source link

Enable buttons for everyone in the server #11

Closed EndritElshani closed 1 year ago

EndritElshani commented 1 year ago

Hello, I was wondering if there's a way to make it possible for everyone to go through pages and not only the ones who called the command.

devRael1 commented 1 year ago

Hi,

You can create a custom filter to always make the filter true with a simple condition like:

return true; return 1 === 1; return interaction.guild.id === <guildID>

You just have to make sure that your custom filter always returns the same value, true.

Disclaimer: doing this implies that several people will be able to use the buttons of the pagination system, so it can create spam buttons.

EndritElshani commented 1 year ago

Thank you very much!