Global Slash Commands won't appear in one guild

Issue - Commands won't show up in one of my guilds - I can invite the bot to different servers and it creates them fine - I removed the bot and added the bot but none of the commands show up for the guild that is having issue's - Using client.application.commands.fetch() all my commands do show up - Using client.guilds.cache the guild in question also shows up - I tried checking Server Settings > Integrations > App it does not show up here actually but if you check audit logs it shows as added - Yes I've restarted my client - Yes I've used a different client (IOS , Web , PTB) - Yes I have perms in the guild
const registerCommandsPromise = (
guildId
? rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commandData })
: rest.put(Routes.applicationCommands(clientId), { body: commandData })
).then(() => ({ type: 'registerCommands' }))
const timeoutPromise = timeout(
() => ({ type: 'timeout' }),
config.timeouts?.commandRegistration || DEFAULT_CONFIG.timeouts.commandRegistration
)
const registerCommandsPromise = (
guildId
? rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commandData })
: rest.put(Routes.applicationCommands(clientId), { body: commandData })
).then(() => ({ type: 'registerCommands' }))
const timeoutPromise = timeout(
() => ({ type: 'timeout' }),
config.timeouts?.commandRegistration || DEFAULT_CONFIG.timeouts.commandRegistration
)
No description
5 Replies
d.js toolkit
d.js toolkit6mo 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!
ja
jaOP6mo ago
discord.js version: discord.js@14.19.2 node version: v20.16.0
Amgelo
Amgelo6mo ago
to avoid misunderstandings
supreme
supreme6mo ago
use Routes.applicationGuildCommands await rest.put(Routes.applicationGuildCommands(cleintId, 'GUILD_ID'), { body: guildCommands });
souji
souji6mo ago
you did not read the problem statement, did you? this is about a global command bot being in a specific guild - they are not trying to specifically deploy a command to that guild as for which i have no idea how that could be the case, but i doubt heavily it has anything to do with discord.js. if the command is available on other guilds and is in the global command list at fetch i do not see how this could be lib related. if the app doesn't show up in the integrations tab although it is added and gas a bot user on it (else it would not be received and cached) it should most definitely be in the integrations tab you can try adding another app to that server and see if the server is desynced for some reason i guess, but if what you describe here is actually the case i'd try contacting discord dev support with the guild and app id. the propagation of cmds is more a discord thing. if it shows up on most servers, then it seems like the global cmds are deployed successfully good call! shortly thought about that but assumed it'd just not let you add more apps? but now that you say it i do recall people stating all sorts of weird behavior when that limit is reached/passed

Did you find this page helpful?