mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-26 03:59:53 +01: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,
|
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`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user