Certain global slash commands missing for Guild Install but not for User Install
in short: for whatever reason the guild install of the bot is missing specific global slash commands, which gets fixed by doing a user install. i see no noticable patterns between the commands that do show up and those that dont, that might indicate why this is happening; no errors at all; the bot has the proper intents and permissions (i think)


11 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 OPthis is double weird because i havent known about this until a server member reached out to me saying that for some reason a command i just ran was missing for them (the bot is in the server, but i also had it user install'ed too)
they told me it appeared once they user install'ed it
and i have no idea whether its my code base, discord.js, or discord's api causing this
full directory tree of the entire bot code base (excluding files in
.gitignore
)update:
* upgraded bun
1.2.10
-> 1.2.11
* updated discord.js 14.19.1
-> 14.19.3
issue still persists
(also, re-adding the bot into the server does not help)/rolluntil shows up too, its very similar to /roll
refreshGlobalCommands does run

and no member/roles/channel overrides have been set for any command that does show up
you need to clean up all of your commands first and deploy it
that fixed it :KikuriThumbsUp:
solution code (code changed since first file upload in https://canary.discord.com/channels/222078108977594368/1367982328554590209/1367983229025521704) for anyone looking: