paginations

I've made paginations and they use collectors. Is there a way of making a paginations without them? So whenever the bot resets, buttons stay up working as well
7 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
monbrey
monbrey11mo ago
You can bind a permanent interactionCreate listener for them if you dont intend these buttons to ever be disabled
chocolate
chocolateOP11mo ago
Would that be a big resource consumer, or I shouldn't worry about that at all? Considering 70% of the time I use those paginations inside of my commands, so they'll be used alot overall
monbrey
monbrey11mo ago
Depends on your design. Are the buttons for short term usage, or permanent
chocolate
chocolateOP11mo ago
Short term usage
monbrey
monbrey11mo ago
Then you should just use collectors Your bot likely wont reset much during that short term period, and if it does, oh well
chocolate
chocolateOP11mo ago
Right I have few more questions regarding paginations as well, I gtg now though so I'll ask them tmrw if that's okay school is in a few hours :dogeHaHa:
Want results from more Discord servers?
Add your server