feat: refined welcome

This commit is contained in:
TrèsAbhi committed 2023-10-10 21:37:17 -05:00
1 parent 97cc9509c0
commit be644bb3d9
1 file changed
+3 -4
+3 -4
View File
@@ -4,6 +4,7 @@ import {
GuildMember, GuildMember,
TextChannel, TextChannel,
} from 'discord.js'; } from 'discord.js';
import markdownEscape from 'markdown-escape';
import discord from '../../discord.json' assert { type: 'json' }; import discord from '../../discord.json' assert { type: 'json' };
import { ACCENT_COLOR } from '../constants/colors'; import { ACCENT_COLOR } from '../constants/colors';
@@ -18,14 +19,12 @@ export default async function (member: GuildMember) {
embeds: [ embeds: [
new EmbedBuilder() new EmbedBuilder()
.setColor(ACCENT_COLOR) .setColor(ACCENT_COLOR)
.setTitle(`Welcome ${member.user.username}`) .setTitle(`Welcome, ${markdownEscape(member.user.displayName)}`)
.setDescription( .setDescription(
`Welcome to the Skilled server, **${member.user.username}**! To continue, please use the \`/link\` command.`, `Welcome to the Skilled server! To continue, please use the \`/link\` command.`,
), ),
], ],
files: [new AttachmentBuilder('https://i.imgur.com/2p6GFgC.gif')], files: [new AttachmentBuilder('https://i.imgur.com/2p6GFgC.gif')],
}); });
console.log(`${member.user.tag} joined`);
} }
} }