Updated log function
This commit is contained in:
@@ -24,16 +24,16 @@ for (const file of contentMenuCommands) {
|
||||
}
|
||||
|
||||
const [error] = await tryCatch(updateCommands())
|
||||
if (error) log(error, "error")
|
||||
if (error) log.error(error)
|
||||
|
||||
async function updateCommands() {
|
||||
log(`Started refreshing ${commands.length} application (/) commands.`, "info")
|
||||
log.info(`Started refreshing ${commands.length} application (/) commands.`)
|
||||
|
||||
await rest.put(
|
||||
Routes.applicationGuildCommands(env.dev.DEVID, env.dev.GUILDID),
|
||||
{ body: commands }
|
||||
).then(() => {
|
||||
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info")
|
||||
log.info(`Successfully reloaded ${commands.length} application (/) commands.`)
|
||||
process.exit(0)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user