discord js channel fetch past messages code example
Example: discord.js message on member add
client.on('guildMemberAdd', member => {
member.send("Welcome!");
});
client.on('guildMemberAdd', member => {
member.send("Welcome!");
});