From 2d772838def5d49505d2ed8e5c9d46a97e595df6 Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Sat, 29 Apr 2023 00:38:07 +0900 Subject: [PATCH] fix deploy bug --- src/deploy.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/deploy.ts b/src/deploy.ts index 5e347e3..59855d6 100755 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -21,7 +21,11 @@ const rest = new REST({ version: "10" }).setToken( process.env.DISCORD_CLIENT_ID as string, process.env.DISCORD_TARGET_GUILD_ID as string ), - { body: commands } + { + body: commands.map((command) => { + return command.data.toJSON(); + }), + } ); console.log(`Successfully reloaded all application (/) commands.`);