남우성

Merge branch 'feature/global' into develop

......@@ -20,11 +20,22 @@ const rest = new REST({ version: "9" }).setToken(token);
(async () => {
guildIds.map(async (guildId) => {
try {
await rest.put(Routes.applicationGuildCommands(clientId, guildId), {body: commands});
await rest.put(Routes.applicationGuildCommands(clientId, guildId), {body: {}});
console.log(`${guildId} 서버 성공`);
}
catch (error) {
console.error(error);
}
});
try {
await rest.put(
Routes.applicationCommands(clientId),
{ body: commands },
);
console.log('글로벌 커맨드 등록 성공');
} catch (error) {
console.error(error);
}
})();
\ No newline at end of file
......