diff --git a/app/src/commands/system/reload.ts b/app/src/commands/system/reload.ts index 3ec3f3f..e792258 100644 --- a/app/src/commands/system/reload.ts +++ b/app/src/commands/system/reload.ts @@ -17,6 +17,9 @@ export const reload = createCommand({ .setDescription(`Successfully reloaded ${KyokoClient.commands.size} commands.`) .setColor("Green"); + // Deploy commands + await KyokoClient.deployCommands(); + await interaction.editReply({ embeds: [embed] }); } catch (error) { console.error(error); diff --git a/app/src/scripts/deploy.ts b/app/src/scripts/deploy.ts deleted file mode 100644 index c5a712d..0000000 --- a/app/src/scripts/deploy.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { KyokoClient } from "@lib/KyokoClient"; - -console.log("🚀 Starting deployment script..."); - -// Load all commands first -await KyokoClient.loadCommands(false); - -console.log(`📦 Loaded ${KyokoClient.commands.size} commands.`); - -// Deploy -await KyokoClient.deployCommands(); - - -console.log("👋 Deployment script finished."); -process.exit(0);