From 6f2541f8922c36ad19ac690222f510021b45b203 Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Fri, 25 Nov 2022 20:46:51 +1100 Subject: [PATCH] bru #1 --- src/events/guildMemberAdd.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/events/guildMemberAdd.ts b/src/events/guildMemberAdd.ts index 67b644b..9446a94 100644 --- a/src/events/guildMemberAdd.ts +++ b/src/events/guildMemberAdd.ts @@ -4,6 +4,7 @@ export default { name: 'guildMemberAdd', execute: async(client:TClient, member:Discord.GuildMember)=>{ if (member.partial) return; + if (member.guild?.id != client.config.mainServer.id) return; const index = member.guild.memberCount; const suffix = ((index)=>{ const numbers = index.toString().split('').reverse(); // eg 1850 --> [0,5,8,1] @@ -32,4 +33,4 @@ export default { ); (client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel).send({embeds: [embed1]}) } -} \ No newline at end of file +}