feat: simpler welcome message

This commit is contained in:
TrèsAbhi committed 2023-11-13 21:16:45 -06:00
1 parent 95588ef6b6
commit 286936131d
1 file changed
+2 -17
+2 -17
View File
@@ -1,12 +1,5 @@
import {
AttachmentBuilder,
EmbedBuilder,
GuildMember,
TextChannel,
} from 'discord.js';
import markdownEscape from 'markdown-escape';
import { AttachmentBuilder, GuildMember, TextChannel } from 'discord.js';
import discord from '../../discord.json' assert { type: 'json' };
import { ACCENT_COLOR } from '../constants/colors';
export default async function (member: GuildMember) {
if (member.guild.id === discord.sklld_guild_id) {
@@ -15,15 +8,7 @@ export default async function (member: GuildMember) {
discord.sklld_verify_channel,
) as TextChannel
).send({
content: member.toString(),
embeds: [
new EmbedBuilder()
.setColor(ACCENT_COLOR)
.setTitle(`Welcome, ${markdownEscape(member.user.displayName)}`)
.setDescription(
`Welcome to the Skilled server! To continue, please use the \`/link\` command.`,
),
],
content: `# Welcome, ${member.toString()}!\nPlease use the \`/link\` command like the video below to continue.`,
files: [new AttachmentBuilder('https://i.imgur.com/2p6GFgC.gif')],
});
}