mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: only react to people joining skilled clan
This commit is contained in:
1 parent
48241bd0d4
commit
4fe4d93fb0
1 file changed
+16
-14
@@ -3,19 +3,21 @@ import discord from '../../discord.json' assert { type: 'json' };
|
||||
import { SKILLED_COLOR } from '../constants/colors.js';
|
||||
|
||||
export default async function (member: GuildMember) {
|
||||
console.log(`${member.user.tag} joined`);
|
||||
if (member.guild.id === discord.guild_id) {
|
||||
await (
|
||||
member.guild.channels.cache.get(discord.verify_channel) as TextChannel
|
||||
).send({
|
||||
content: member.toString(),
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor(SKILLED_COLOR)
|
||||
.setTitle(`Welcome ${member.user.username}`)
|
||||
.setDescription(
|
||||
`Welcome to the Skilled server, **${member.user.username}**! To continue, please use the \`/verify\` command.\n\nExample: \`/verify Europe Sabina244\``,
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
await (
|
||||
member.guild.channels.cache.get(discord.verify_channel) as TextChannel
|
||||
).send({
|
||||
content: member.toString(),
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor(SKILLED_COLOR)
|
||||
.setTitle(`Welcome ${member.user.username}`)
|
||||
.setDescription(
|
||||
`Welcome to the Skilled server, **${member.user.username}**! To continue, please use the \`/verify\` command.\n\nExample: \`/verify Europe Sabina244\``,
|
||||
),
|
||||
],
|
||||
});
|
||||
console.log(`${member.user.tag} joined`);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user