Unable to DM User despite open DMs
code:
Output in pics
Somehow whenever i do this with my main(this acc) and select myself in the userselectmenu it works.
6 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 OPconsole output:
Ive tried a friends account too same thing
You can't check whether the user allows DMs without actually trying to send a dm.
You seem to be checking whether a DM channel happen to be cached at the moment, which is unrelated to whether you can actually send a DM to them.
Oh
How can i check if they have dms available?
(if i can)
You can't, you have to just send and handle the eventual error occuring.
oh
okay
thanks ill try it out
Thank you so much, it worked!