User Isntall not registering slash commands

Hi, running latest versoin of discordjs with typescript and such, andcommands do register however when trying to instl them as a uer, they don't appear. Does anyone know any reason for this? I'll atach the command registratnoi code below but I have no idea why it doesn't worok as it works in guilds. Let me know if you need any more info
7 Replies
d.js toolkit
d.js toolkit3mo 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!
wowie
wowieOP3mo ago
none of these pplt would really apprecite some help
NyR
NyR3mo ago
User install is not supported by discordjs yet
Deimoss
Deimoss3mo ago
discordjs doesn't support it, but you can register them using REST and respond to them just fine just make sure you have the correct integration_types and contexts in your command's data https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure it also takes some time for commands to show up in discord
wowie
wowieOP3mo ago
ahh ok thank you ewwwwwwwww ok i'll try it out thanks so much @Deimoss would you be willng to help me implement it into djs
Deimoss
Deimoss3mo ago
you're already registering the commands through REST . typescript will scream at you for putting contexts in the command's data though, you can just ts-ignore that i don't know how you would do that if you're using a builder as i usually write the data for commands as a plain object
NyR
NyR3mo ago
Convert the builder into json using toJSON(), then add the required properties to the json
Want results from more Discord servers?
Add your server