Updating bot without shutting it down,
Hey so my question is pretty straightforward; is there any reliable/recommended way to update slash commands and other stuff without shutting the bot down or something? Curious to find out
10 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 OPYou can just run a deploy script to update slash commands, it doesn't care if the bot is online or not, so yes, as for other stuff, what stuff are we talking about?
right of course its me being me, I have everything written Incorrectly
I meant like if my bot is online and I dont want to shut it down
and I want to add things right when bot is online
im not sure about a command u can check about pm2
ast least for commands, you don't need to shut it down, you can modify them on runtime
you can even do it from the bot itself without a separate script
:class: ApplicationCommandManager (extends CachedManager)
Manages API methods for application commands and stores their cache.
get it from:
:property: Client#application
The application of this bot
:property: ClientApplication#commands
The application command manager for this application
for the clientapplication to be available you first need to login though
alright ill see, thanks