Forward banned alts to mod channel

This commit is contained in:
Tarrgon
2025-07-19 13:52:22 -04:00
parent 04982a06d6
commit 5b045de4bd
4 changed files with 27 additions and 1 deletions
+6
View File
@@ -13,6 +13,12 @@ export async function handleMemberJoin(member: GuildMember) {
const content = `${member.toString()}'s e621 and discord account(s):\n${await getE621Alts(member.id, member.guild)}`;
channel.send(content).catch(console.error);
if (guildSettings.moderator_channel_id && content.includes('[BANNED]')) {
const modChannel = await member.guild.channels.fetch(guildSettings.moderator_channel_id) as GuildTextBasedChannel;
if (modChannel) modChannel.send(content).catch(console.error);
}
}
}
}