From b84ef0cebf11cb6cfdb20ab7c4a820b9737702a5 Mon Sep 17 00:00:00 2001 From: tresabhi Date: Tue, 18 Apr 2023 23:39:20 +0000 Subject: [PATCH] feat: moved VERIFY_CHANNEL to config --- src/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 595ed70f0..34dcc69e0 100644 --- a/src/index.js +++ b/src/index.js @@ -10,8 +10,6 @@ import { import { readdirSync } from 'fs'; import config from '../config.json' assert { type: 'json' }; -const VERIFY_CHANNEL = '1097677884266643527'; - const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers], }); @@ -22,7 +20,7 @@ client.on('ready', (c) => { }); client.on('guildMemberAdd', (member) => { - member.guild.channels.cache.get(VERIFY_CHANNEL).send({ + member.guild.channels.cache.get(config.verifyChannel)?.send({ embeds: [ new EmbedBuilder() .setColor('#8e3cf5')