1

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

Nir Alfasi
  • 53,191
  • 11
  • 86
  • 129

1 Answers1

2

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

bot.on("guildMemberAdd", member => {
    member.send("Welcome")
        .catch(console.error);
});
slothiful
  • 5,548
  • 3
  • 12
  • 36
Jake
  • 1,339
  • 9
  • 14