Updated log function
This commit is contained in:
@@ -26,7 +26,7 @@ export default {
|
||||
}))
|
||||
|
||||
await interaction.respond(results.slice(0, 25)).catch(err => {
|
||||
log(err, "error")
|
||||
log.error(err)
|
||||
})
|
||||
}
|
||||
} as IAutocomplete
|
||||
|
||||
@@ -85,7 +85,7 @@ export default {
|
||||
if (process.env.NODE_ENV === "dev") return
|
||||
|
||||
const [error] = await tryCatch(updateWaitingList())
|
||||
if (error) return log("Error while trying to update waiting list.", "error")
|
||||
if (error) return log.error("Error while trying to update waiting list.")
|
||||
|
||||
async function updateWaitingList() {
|
||||
const channel = guild.channels.cache.get(waitingListChannel) as TextChannel
|
||||
|
||||
Reference in New Issue
Block a user