register commands for multiple servers
i got the code for my command register file from the docs. there you need to input a guild id, but what if you can add my bot to multiple discord servers then i cant just all copy in ids right? how would i do that? is there a way to like globaly register commands?
18 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 OPuse global commands
thx
ill look at it
Just remember to remove the guild commands you deployed
remove?
Yes
how would i remove the,
deploy an empty array
ah okay
is this right?
no
.
did it
Not in the code you showed
yea ik but i changed it now to applicationCommands
but on my guild i dont see the command (i registerd it too)
did you refresh your discord client
Oh thats for sure it u mean like CTRL+R
yes