Skip to content

Commit fd1999e

Browse files
committed
forgot about reload commands, probably getting rid of that command soon
1 parent 99082ea commit fd1999e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/reload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const reloadCommand: Command = {
2323
const config = loadVariables();
2424
const client = interaction.client as Client & { commands?: Collection<string, Command> };
2525

26-
await loadCommands(client, config.clientId, config.guildId, config.botToken);
26+
await loadCommands(client, config.clientId, config.botToken, config.guildId);
2727

2828
await interaction.editReply("Commands reloaded successfully.");
2929
} catch (error) {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ for (const file of eventFiles) {
5757
logger.startup(`Loaded event ${file.replace(/\.[jt]s$/, '')}`);
5858
}
5959

60-
await loadCommands(client, config.clientId, config.botToken, config.guildId ?? undefined)
60+
await loadCommands(client, config.clientId, config.botToken, config.guildId)
6161

6262
try {
6363
client.login(config.botToken);

0 commit comments

Comments
 (0)