mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: refined welcome
This commit is contained in:
1 parent
97cc9509c0
commit
be644bb3d9
1 file changed
+3
-4
@@ -4,6 +4,7 @@ import {
|
||||
GuildMember,
|
||||
TextChannel,
|
||||
} from 'discord.js';
|
||||
import markdownEscape from 'markdown-escape';
|
||||
import discord from '../../discord.json' assert { type: 'json' };
|
||||
import { ACCENT_COLOR } from '../constants/colors';
|
||||
|
||||
@@ -18,14 +19,12 @@ export default async function (member: GuildMember) {
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor(ACCENT_COLOR)
|
||||
.setTitle(`Welcome ${member.user.username}`)
|
||||
.setTitle(`Welcome, ${markdownEscape(member.user.displayName)}`)
|
||||
.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')],
|
||||
});
|
||||
|
||||
console.log(`${member.user.tag} joined`);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user