Discord.js development utilities

I have noticed that testing my bot by hand is quite slow. In addition, there is a clear lag between the time i create a new slash command and when i can actually use it in Discord. That's why i would like to know about resources/libraries in order to test the bot without needing discord/online environment itself, or to avoid the lag of new slash commands being created.
4 Replies
d.js toolkit
d.js toolkit2mo 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!
Mark
Mark2mo ago
There aren't unit tests in place, there have been attempts to mock the API, but nothing has ever come from it What lag are you experiencing in creating and deploying commands? The deploy to discord is instant (restart your regular discord client to see them) unless you're rate limited because you're deploying too often (200 commands per day) by doing something like setting them every time the bot starts
horohousu
horohousu2mo ago
you also might be deploying the commands on all servers, when for testing you should specify the guild in which the commands are deployed not doing so means it could take up to an hour to see the commands
Mark
Mark2mo ago
Incorrect, global commands deploy and update immediately, same as guild commands
Want results from more Discord servers?
Add your server