const { EmbedBuilder, Events } = require('discord.js'); module.exports = { name: Events.GuildMemberRemove, async execute (member) { const welcomeChannel = 'YOUR_LEAVE_CHANNEL_ID'; const channel = member.guild.channels.cache.get(welcomeChannel); const embed = new EmbedBuilder() .setTitle('🙋‍♂️ Goodbye!') .setDescription(`${member.user.tag} has left the server 🥲`) .setColor('Red') .setThumbnail(member.user.displayAvatarURL()); channel.send({ embeds: [embed] }); } }