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
d.js toolkit
d.js toolkit10mo 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! - Marked as resolved by OP
Danial
Danial10mo ago
You 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?
Shrewd 💫
Shrewd 💫OP10mo ago
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
!Delta!
!Delta!10mo ago
im not sure about a command u can check about pm2
Amgelo
Amgelo10mo ago
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
d.js docs
d.js docs10mo ago
:class: ApplicationCommandManager (extends CachedManager) Manages API methods for application commands and stores their cache.
Amgelo
Amgelo10mo ago
get it from:
d.js docs
d.js docs10mo ago
:property: Client#application The application of this bot :property: ClientApplication#commands The application command manager for this application
Amgelo
Amgelo10mo ago
for the clientapplication to be available you first need to login though
Shrewd 💫
Shrewd 💫OP10mo ago
alright ill see, thanks
Want results from more Discord servers?
Add your server