How to make a user installed app
Hi, I just went over discord's guide on user installed apps : https://discord.com/developers/docs/tutorials/developing-a-user-installable-app
I was just thinking, is d.js supporting user installed apps ?
Cause i'm using TS and I want types and the good stuff that d.js provides likes the API interactions.
Thanks in advance 🙂
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 OP:method: SlashCommandBuilder#setIntegrationTypes()
@1.9.0
Sets the integration types of this command.
:method: SlashCommandBuilder#setContexts() @1.9.0
Sets the contexts of this command.they are supported from v14.16
Ok, so in the end, it's a classic d.js bot with a specified context and an express (or any webserver) right ?
depends on what you want to do
djs does not require express or any webserver to function
oh, so you can do a user app (only, not guild nor both) fully with djs ?
yes
I see. What's the better approach here ?
Is there by any chance a sample user app using d.js ?
HTTP-only applications receive interactions through HTTP webhooks instead of the Discord Gateway. Bots that are not connected to the Gateway, but use HTTP interactions appear as online without a status. Discord.js does not support HTTP interactions. Use discord-interactions instead.
Alright, thank you very much for your answers ! Thanks @treble/luna too !
Have a nice day
I suggest marking post as solved if your problem has been solved and have no further questions!
^^