Showing
1 changed file
with
12 additions
and
1 deletions
... | @@ -20,11 +20,22 @@ const rest = new REST({ version: "9" }).setToken(token); | ... | @@ -20,11 +20,22 @@ const rest = new REST({ version: "9" }).setToken(token); |
20 | (async () => { | 20 | (async () => { |
21 | guildIds.map(async (guildId) => { | 21 | guildIds.map(async (guildId) => { |
22 | try { | 22 | try { |
23 | - await rest.put(Routes.applicationGuildCommands(clientId, guildId), {body: commands}); | 23 | + await rest.put(Routes.applicationGuildCommands(clientId, guildId), {body: {}}); |
24 | console.log(`${guildId} 서버 성공`); | 24 | console.log(`${guildId} 서버 성공`); |
25 | } | 25 | } |
26 | catch (error) { | 26 | catch (error) { |
27 | console.error(error); | 27 | console.error(error); |
28 | } | 28 | } |
29 | }); | 29 | }); |
30 | + | ||
31 | + try { | ||
32 | + await rest.put( | ||
33 | + Routes.applicationCommands(clientId), | ||
34 | + { body: commands }, | ||
35 | + ); | ||
36 | + console.log('글로벌 커맨드 등록 성공'); | ||
37 | + } catch (error) { | ||
38 | + console.error(error); | ||
39 | + } | ||
40 | + | ||
30 | })(); | 41 | })(); |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment