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

@@ -29,7 +29,7 @@ export default async function loadModalEvents(client: Client, ft: FileType) {
content: "Modal logic not implemented. This is most likely an old modal",
flags: MessageFlags.Ephemeral
})
log(`No modal matching ${interaction.customId} was found.`, "error")
log.error(`No modal matching ${interaction.customId} was found.`)
return
}
@@ -50,7 +50,7 @@ export default async function loadModalEvents(client: Client, ft: FileType) {
})
}
log(error, "error")
log.error(error)
if (!interaction.deferred) {
await interaction.reply({
embeds: [{