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:59:32 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
15b1588fb7fa29a4b2526e6ffc130795f6d936ee
15b1588f
2 parents
15f44813
abc84c6b
Merge branch 'feature/global' into develop
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
deploy-commands.js
deploy-commands.js
View file @
15b1588
...
...
@@ -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