fix deploy bug

This commit is contained in:
kdh8219 2023-04-29 00:38:07 +09:00
parent 5ef4749875
commit 2d772838de

View file

@ -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.`);