Updated log function

This commit is contained in:
2025-06-01 20:30:58 +02:00
parent dd12b86092
commit d165ad15c2
19 changed files with 90 additions and 65 deletions

View File

@@ -26,7 +26,7 @@ export default {
}))
await interaction.respond(results.slice(0, 25)).catch(err => {
log(err, "error")
log.error(err)
})
}
} as IAutocomplete

View File

@@ -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