add error handling
This commit is contained in:
parent
45e016e9c3
commit
86ccca9840
1 changed files with 2 additions and 1 deletions
|
@ -14,4 +14,5 @@ commandFiles.forEach(commandFile => {
|
|||
const restClient = new REST({version: "9"}).setToken(process.env.DISCORD_BOT_TOKEN)
|
||||
restClient.put(Routes.applicationGuildCommands(process.env.DISCORD_APPLICATION_ID, process.env.DISCORD_GUILD_ID),
|
||||
{body: commands})
|
||||
.then(() => console.log("Successully registerd commands"))
|
||||
.then(() => console.log("Successully registerd commands"))
|
||||
.catch(console.error)
|
Loading…
Add table
Reference in a new issue