fix: rest put

This commit is contained in:
Keisuke Hirata 2024-10-22 19:11:45 +09:00
parent 2e4ed02191
commit 974677b463
2 changed files with 1 additions and 2 deletions

View File

@ -1 +0,0 @@
[]

View File

@ -17,7 +17,7 @@ import commands from "./context_commands.ts";
const rest = new REST({ version: "10" }).setToken(TOKEN);
try {
console.log("refreshing slash commands...");
// await rest.put(Routes.applicationCommands(CLIENT_ID), { body: commands });
await rest.put(Routes.applicationCommands(CLIENT_ID), { body: commands });
console.log("OK");
} catch (error) {
console.error(error);