Use an application bot slash commands in dms
So basically I can use it anywhere but in dms for some reason
13 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 staffHello! 👋 This works in both DMs and servers!
I tried to use ai for help
But didnt work
And made my code spagetti
So dont wanna send it here
I just want to register them to dms
I fixed a bit of the ai code
: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.So I install another package
@Qjuh to what
Should I set it
Then how
What should I edit
To what
I wanted to be available in dma
The docs dont show to what I can set it
@Qjuh it is already installable
Look
Ok so I just edit the context type
@Qjuh i add it to new SlashCommandBuilder right
Oh sorry but I add it to the SlashCommandBuilder Right
Thx
@Qjuh it only eorked in dms
Now it doesnt work anywhere else
Just in dms
Can you do it
Iy didnt work for me
it accepts many contexts, not just one
you passed only one, so it'll only work in that one
pass every context you want it to work on
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
quite literally just pass more contexts to the method
the method accepts an unlimited amount of arguments
yes, but don't use raw values
use the enum
it's the same internally but it's more readable
not really
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View