From 9daf4df034436ca1a9621ba3a29ce989e0c0a1f7 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Fri, 25 Nov 2022 20:47:26 +1100 Subject: [PATCH] bru #2 --- src/events/guildMemberRemove.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/events/guildMemberRemove.ts b/src/events/guildMemberRemove.ts index f6c5b1a..e0de9fc 100644 --- a/src/events/guildMemberRemove.ts +++ b/src/events/guildMemberRemove.ts @@ -5,6 +5,7 @@ export default { execute: async(client:TClient, member:Discord.GuildMember)=>{ if (!client.config.botSwitches.logs) return; if (!member.joinedTimestamp) return; + if (member.guild?.id != client.config.mainServer.id) return; const embed = new client.embed().setColor(client.config.embedColorRed).setTimestamp().setThumbnail(member.user.displayAvatarURL({size: 2048}) as string).setTitle(`Member Left: ${member.user.tag}`).setDescription(`<@${member.user.id}>\n\`${member.user.id}\``).addFields( {name: '🔹 Account Creation Date', value: `\n`}, {name: '🔹 Join Date', value: `\n`}, @@ -14,4 +15,4 @@ export default { (client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel).send({embeds: [embed]}); delete client.userLevels._content[member.user.id]; } -} \ No newline at end of file +}