Leave message discord.js code example
Example 1: discord.js messageDelete
client.on('messageDelete', (messageDelete) => {
//Your code
});
//Note, you have to define client.
//Its best to run these events through something called a "event handler"
Example 2: farewell discord.js
client.on('guildMemberRemove',(member) => {
client.channels.find('log_channel').send(`**${member.username}** has just left server.. Bye Bye`);
}