Skip to content

Commit

Permalink
fixed some issue
Browse files Browse the repository at this point in the history
  • Loading branch information
q-Sci committed Oct 6, 2023
1 parent 2a9d1bb commit 2eb94f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion commands/test/test-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};


Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2eb94f3

Please sign in to comment.