turtlebias
turtlebias

Reputation: 11

Attempting to make a bot DM someone on command, discord.js

I am attempting to make a report system for my server, but would like it to be in dms. I'm trying to make it to where if someone uses the command "!report" it will dm them my google form for them to fill out. Does anyone know how to do this? This is in Java by the way.

Upvotes: 0

Views: 147

Answers (2)

SP73
SP73

Reputation: 415

try message.author.send("message")

Upvotes: 0

Ayfri
Ayfri

Reputation: 637

You just have to send them a message, the doc lear you that this made this way :

user.send("message");

If you are using members it's simply this :

member.user.send("message");

If you are only using message, just add message. in front.

Upvotes: 1

Related Questions