How can I make slash commands available in dm's?
I want to use my bot's commands in his dm's but i can only use them in my server. how i can make them avilable in dm's too?
21 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
discord.js = 14.7.1
node = 18.14.0
are you using builders?
slashcommandbuilder
then you can use
builder.setDMPermission(true)
where?
on the builder?
But you shouldn't have to use that, they are enabled by default
The command needs to be global
how to do this?
i have already something like this. or am i dumb???
those are guild commands
also you should use version 10, not 9
ok now it shows up in dm's.
So, it looks like whatever website that image was hosted in was banned. Any chance you still remember/have what it was?
It's not banned, it quite simply just doesn't exist anymore. But no. What do you need help with?
Damn.
Well, essentially, having the same issue that OP originally had — my flash commands are not showing up in DMs, and I think I have my builder properly set, and not on guild.
show your command file then
Discord.js version 14.15.2
Node version 18.18.0
Note: console.log(commandFiles)
yields the correct array of files, of which that one listed is one of them.
Don't suppose you remember how you fixed this, do ya?
Their problem was simply that they registered the command on a guild level, which you supposedly aren't doing
Damn