Bot DMs Checking
Is there a way where I can check all my Bot's DMs with users?
22 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 OPUnknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Ah! Well I want to be able to see who my bot is sending DMs to, such as commands in DMs
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
I want to know who's been trying to use commands in DMs with my bot. I already made it so they cannot use commands in DMs but I would like to see who was as it crashed my bot multiple times even after I told the members to stop and the owner wants them banned so I would like to figure out who it was.
why are they available in DM if you don't want them to show up there
I already limited it not to anymore. But we would like them banned.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
"The owner wants them banned"
you can check the user that invoked the command with the user property
I don't think you can check in what DM they are though
interaction.channel seems to be return null for me
So I wouldn't be able to find the specific user then?
well you can check who uses the command, not in what DM
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Ah okay I'll try that
It's because the commands send a message to the channel it was used in. Since DMs aren't channels it crashes the bot. It doesn't anymore as I limited the bot but yeah
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Well it would crash it so I just limited it not to as I don't want them using it in DMs
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
The owner wants them banned
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Owner wants it and I'm just a staff member
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Okay, well thanks for the help anyways!