2023-11-13 21:16:45 -06:00
|
|
|
import { AttachmentBuilder, GuildMember, TextChannel } from 'discord.js';
|
2023-04-20 13:43:35 +00:00
|
|
|
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) {
|
2023-04-26 23:43:13 +00:00
|
|
|
await (
|
2023-05-19 23:36:02 +00:00
|
|
|
member.guild.channels.cache.get(
|
|
|
|
|
discord.sklld_verify_channel,
|
|
|
|
|
) as TextChannel
|
2023-04-26 23:43:13 +00:00
|
|
|
).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-26 23:43:13 +00:00
|
|
|
});
|
|
|
|
|
}
|
2023-04-20 13:37:10 +00:00
|
|
|
}
|