mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: moved VERIFY_CHANNEL to config
This commit is contained in:
1 parent
4b5caa6059
commit
b84ef0cebf
1 file changed
+1
-3
+1
-3
@@ -10,8 +10,6 @@ import {
|
|||||||
import { readdirSync } from 'fs';
|
import { readdirSync } from 'fs';
|
||||||
import config from '../config.json' assert { type: 'json' };
|
import config from '../config.json' assert { type: 'json' };
|
||||||
|
|
||||||
const VERIFY_CHANNEL = '1097677884266643527';
|
|
||||||
|
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers],
|
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers],
|
||||||
});
|
});
|
||||||
@@ -22,7 +20,7 @@ client.on('ready', (c) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.on('guildMemberAdd', (member) => {
|
client.on('guildMemberAdd', (member) => {
|
||||||
member.guild.channels.cache.get(VERIFY_CHANNEL).send({
|
member.guild.channels.cache.get(config.verifyChannel)?.send({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor('#8e3cf5')
|
.setColor('#8e3cf5')
|
||||||
|
|||||||
Reference in new issue
Block a user