How to register a User Installed SlashCommand

i created a shlashcommand but it does not appear as user installed command
new SlashCommandBuilder()
.setName("example")
.setDescription("example command")
.setIntegrationTypes([ApplicationIntegrationType.GuildInstall, ApplicationIntegrationType.UserInstall])
.setContexts([InteractionContextType.BotDM, InteractionContextType.Guild, InteractionContextType.PrivateChannel]),
new SlashCommandBuilder()
.setName("example")
.setDescription("example command")
.setIntegrationTypes([ApplicationIntegrationType.GuildInstall, ApplicationIntegrationType.UserInstall])
.setContexts([InteractionContextType.BotDM, InteractionContextType.Guild, InteractionContextType.PrivateChannel]),
tried to install it as global as well as guild command does not show.
3 Replies
d.js toolkit
d.js toolkit3w 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
NyR
NyR3w ago
Did you register the commands afterwards? That's all there is from d.js part. Rest depends on if the user has your app installed Also, user install command is for global. Doesn't make sense for it be guild commands
Winnmi
WinnmiOP3w ago
I removed and readded the App still does not show up Well i fucked up. Got it noow

Did you find this page helpful?