Added new logger
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { IAutocomplete } from "~/interfaces"
|
||||
import { log } from "~/utils/Logger.js"
|
||||
|
||||
export default {
|
||||
name: "unban",
|
||||
@@ -25,7 +26,7 @@ export default {
|
||||
}))
|
||||
|
||||
await interaction.respond(results.slice(0, 25)).catch(err => {
|
||||
console.log(err)
|
||||
log(err, "error")
|
||||
})
|
||||
}
|
||||
} as IAutocomplete
|
||||
|
||||
@@ -4,8 +4,8 @@ import { addWaitingList, getWaitingLists, removeWaitingList } from "src/drizzle/
|
||||
import { embedColor, hypixelGuildID, waitingListChannel, waitingListMessage } from "~/config/options.js"
|
||||
import { waitingListRole } from "~/config/roles.js"
|
||||
import { IButton } from "~/interfaces"
|
||||
import { color } from "~/utils/Functions/colors.js"
|
||||
import { getGuild, getIGN } from "~/utils/Hypixel.js"
|
||||
import { log } from "~/utils/Logger.js"
|
||||
|
||||
export default {
|
||||
name: "guildapplicationaccept",
|
||||
@@ -127,8 +127,9 @@ export default {
|
||||
})
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (err) {
|
||||
console.log(
|
||||
color("Error while trying to update waiting list.", "red")
|
||||
log(
|
||||
"Error while trying to update waiting list.",
|
||||
"error"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user