Shop with pages update too slow
Hi,
i have a command for a shop with items that users can buy. I want to be able to add and remove items so the command don't have pre-coded items and grab them in a model. If they are too many items it create a new page of the shop with button.
Currently, it's working but it's very slow, like when I change page new buttons are disabled for like 2-3 seconds which is not smooth at all. Does someone have an idea to make this better ?
Thx by advance
Code: https://sourceb.in/t5o73LacQE
3 Replies
- 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!
- ✅
Marked as resolved by OPIf you are waiting for button or select menu input from a specific message, don't create the collector on the channel.
- Channel collectors return component interactions for any component within that channel.
Works great ! Thanks a lot !