edits from review

This commit is contained in:
Shay
2022-04-07 11:29:06 -07:00
parent 324d196900
commit 04b7ea9add
3 changed files with 8 additions and 10 deletions

View File

@@ -23,8 +23,8 @@ async function HasGuildCommand(client, appId, guildId, command) {
console.log(`"${command["name"]}" command already installed`)
}
}
} catch (e) {
console.error(`Error installing commands: ${e}`)
} catch (err) {
console.error('Error installing commands: ', err);
}
}
@@ -35,8 +35,8 @@ export async function InstallGuildCommand(client, appId, guildId, command) {
// install command
try {
await client({ url, method: 'post', data: command});
} catch (e) {
console.error(`Error installing guild command: ${e}`);
} catch (err) {
console.error('Error installing commands: ', err);
}
}