From 2eb94f375e557e830245dbc2419e3e1e345bdef1 Mon Sep 17 00:00:00 2001 From: q-Sci Date: Fri, 6 Oct 2023 20:17:49 +0200 Subject: [PATCH] fixed some issue --- commands/test/test-command.ts | 3 ++- index.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/commands/test/test-command.ts b/commands/test/test-command.ts index 0e43a6c..fe255fb 100644 --- a/commands/test/test-command.ts +++ b/commands/test/test-command.ts @@ -70,7 +70,8 @@ export const sendTestButton = async () => { const guild: Guild | undefined = client.guilds.cache.get(guildId); if (!guild) throw new Error('Guild not found'); - (guild.channels.cache.get("1135557183845711983") as TextChannel).send({ components: [actionRow] }); // Channel Id for #How-to-basics + // (guild.channels.cache.get("1135557183845711983") as TextChannel).send({ components: [actionRow] }); // Channel Id for #How-to-basics (main server) + // (guild.channels.cache.get("1159905209414332526") as TextChannel).send({ components: [actionRow] }); // Test server channel }; diff --git a/index.ts b/index.ts index a07f1a7..370fe3a 100644 --- a/index.ts +++ b/index.ts @@ -13,9 +13,9 @@ client.on(Events.ClientReady, async (c) => { }); client.login(process.env.TOKEN); // Log in to the bot -/*client.on("ready", () => { +client.on("ready", () => { sendTestButton() -});*/ +}); // Load commands const foldersPath = path.join(__dirname, 'commands');