Toggle navigation
Toggle navigation
This project
Loading...
Sign in
유병우
/
lostark-discord-bot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
남우성
2022-06-03 14:57:03 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
abc84c6b550dc0e98e90d7afe110d76d73452082
abc84c6b
1 parent
c9ee1778
Update deploy-commands for global command
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
deploy-commands.js
deploy-commands.js
View file @
abc84c6
...
...
@@ -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
...
...
Please
register
or
login
to post a comment