user9816298
user9816298

Reputation:

how to make discord bot send a new user DM?

I Know How to Use

bot.on("guildMemberAdd" ,(message, member) => {
    bot.channels.find('name', "chat").send("Welcome")
}

But How Could You Make It Send The User A DM When They Join The Server

Upvotes: 1

Views: 4714

Answers (1)

Jake
Jake

Reputation: 1429

According to the docs is should be as simple as this:

bot.on("guildMemberAdd", member => {
    member.send("Welcome")
        .catch(console.error);
});

Upvotes: 2

Related Questions