Update slash commands

How can one update both guild and public commands without deleting them? (if guild commands are updated first, public commands will delete them)
6 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
treble/luna
treble/lunaOP3y ago
version: 14.0.3, node 18.8.0 i currently have 2 commandhandlers, one of private, one for public commands. They always overwrite eachother, and i dont really know how i would fix it
Jaworek
Jaworek3y ago
u cant disable global commands per one guild as i understood
treble/luna
treble/lunaOP3y ago
ah, so thats the way to do it? sorry if this is a silly question, i'm new to slash commands
Jaworek
Jaworek3y ago
can u explain what u mean?
treble/luna
treble/lunaOP3y ago
is there no other to do it than that? because if i'd wanted to like update commands for one guild it'd remove all my global commands, or vice versa, if i want to update global commands, it removes my guild commands. And would it then be done with .setDMpermission? because as far as i can see that's for global commands
Want results from more Discord servers?
Add your server