mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
26 lines
863 B
TypeScript
26 lines
863 B
TypeScript
import { EmbedBuilder, GuildMember, TextChannel } from 'discord.js';
|
|
import discord from '../../discord.json' assert { type: 'json' };
|
|
import { ACCENT_COLOR } from '../constants/colors.js';
|
|
|
|
export default async function (member: GuildMember) {
|
|
if (member.guild.id === discord.sklld_guild_id) {
|
|
await (
|
|
member.guild.channels.cache.get(
|
|
discord.sklld_verify_channel,
|
|
) as TextChannel
|
|
).send({
|
|
content: member.toString(),
|
|
embeds: [
|
|
new EmbedBuilder()
|
|
.setColor(ACCENT_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`);
|
|
}
|
|
}
|