Does Discord.js natively support a debouncer or similar feature to prevent excessive button inputs?
I am curious if Discord.js provides native support for a debouncer to handle issues like excessive button inputs. If not, are there alternative features or approaches available to address this problem?
4 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!discord does that already
However, the issue arises when the logic in my code takes a long time to execute after the button is pressed. That being said, I sincerely appreciate your input—I'm incredibly, truly grateful for your help! It seems I will need to implement a solution myself.
Yes, you will need to add some sort of cooldown then
The guide explains how to add them to commands, should not be too hard to implement the same logic for your buttons