Bot DMs Checking

Is there a way where I can check all my Bot's DMs with users?
22 Replies
d.js toolkit
d.js toolkit2mo ago
- 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
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sincerely, alxx ᴬᴳ
Ah! Well I want to be able to see who my bot is sending DMs to, such as commands in DMs
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sincerely, alxx ᴬᴳ
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.
Amgelo
Amgelo2mo ago
why are they available in DM if you don't want them to show up there
Sincerely, alxx ᴬᴳ
I already limited it not to anymore. But we would like them banned.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sincerely, alxx ᴬᴳ
"The owner wants them banned"
Amgelo
Amgelo2mo ago
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
Sincerely, alxx ᴬᴳ
So I wouldn't be able to find the specific user then?
Amgelo
Amgelo2mo ago
well you can check who uses the command, not in what DM
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sincerely, alxx ᴬᴳ
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sincerely, alxx ᴬᴳ
Well it would crash it so I just limited it not to as I don't want them using it in DMs
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sincerely, alxx ᴬᴳ
The owner wants them banned
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sincerely, alxx ᴬᴳ
Owner wants it and I'm just a staff member
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sincerely, alxx ᴬᴳ
Okay, well thanks for the help anyways!

Did you find this page helpful?