mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: removed ready message
This commit is contained in:
1 parent
11365a6cd9
commit
cd48b65ed6
5 files changed
+10
-25
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { EmbedBuilder, GuildMember, TextChannel } from 'discord.js';
|
||||
import discord from '../../discord.json' assert { type: 'json' };
|
||||
import { SKILLED_COLOR } from '../constants/colors.js';
|
||||
|
||||
export default async function (member: GuildMember) {
|
||||
if (member.guild.id === discord.guild_id) {
|
||||
await (
|
||||
member.guild.channels.cache.get(discord.verify_channel) as TextChannel
|
||||
).send({
|
||||
content: member.toString(),
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor(SKILLED_COLOR)
|
||||
.setTitle(`Welcome ${member.user.username}`)
|
||||
.setDescription(
|
||||
`Welcome to the Skilled server, **${member.user.username}**! To continue, please use the \`/verify\` command.\n\nExample: \`/verify Europe Sabina244\``,
|
||||
),
|
||||
],
|
||||
});
|
||||
|
||||
console.log(`${member.user.tag} joined`);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user