Files
blitzkit/src/events/guildMemberAdd.ts
T

15 lines
578 B
TypeScript
Raw Normal View History

2023-11-13 21:16:45 -06:00
import { AttachmentBuilder, GuildMember, TextChannel } from 'discord.js';
import discord from '../../discord.json' assert { type: 'json' };
2023-04-20 13:37:10 +00:00
export default async function (member: GuildMember) {
2023-05-19 23:36:02 +00:00
if (member.guild.id === discord.sklld_guild_id) {
await (
2023-05-19 23:36:02 +00:00
member.guild.channels.cache.get(
discord.sklld_verify_channel,
) as TextChannel
).send({
2023-11-13 21:16:45 -06:00
content: `# Welcome, ${member.toString()}!\nPlease use the \`/link\` command like the video below to continue.`,
2023-10-10 21:33:11 -05:00
files: [new AttachmentBuilder('https://i.imgur.com/2p6GFgC.gif')],
});
}
2023-04-20 13:37:10 +00:00
}