mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
feat: simpler welcome message
This commit is contained in:
1 parent
95588ef6b6
commit
286936131d
1 file changed
+2
-17
@@ -1,12 +1,5 @@
|
|||||||
import {
|
import { AttachmentBuilder, GuildMember, TextChannel } from 'discord.js';
|
||||||
AttachmentBuilder,
|
|
||||||
EmbedBuilder,
|
|
||||||
GuildMember,
|
|
||||||
TextChannel,
|
|
||||||
} 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';
|
|
||||||
|
|
||||||
export default async function (member: GuildMember) {
|
export default async function (member: GuildMember) {
|
||||||
if (member.guild.id === discord.sklld_guild_id) {
|
if (member.guild.id === discord.sklld_guild_id) {
|
||||||
@@ -15,15 +8,7 @@ export default async function (member: GuildMember) {
|
|||||||
discord.sklld_verify_channel,
|
discord.sklld_verify_channel,
|
||||||
) as TextChannel
|
) as TextChannel
|
||||||
).send({
|
).send({
|
||||||
content: member.toString(),
|
content: `# Welcome, ${member.toString()}!\nPlease use the \`/link\` command like the video below to continue.`,
|
||||||
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.`,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
files: [new AttachmentBuilder('https://i.imgur.com/2p6GFgC.gif')],
|
files: [new AttachmentBuilder('https://i.imgur.com/2p6GFgC.gif')],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user