message member discord.js code example
Example 1: discord.js message on member add
client.on('guildMemberAdd', member => {
member.send("Welcome!");
});
Example 2: discord js message
client.on("message", message => {
if (message.content.toLowerCase() === 'Hello') {
message.channel.send("**Hey! What's Up?**")
}
})
// This Will Print "Hey! What's Up?" When Someone Says "Hello" //