Updated log function
This commit is contained in:
@@ -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: [{
|
||||
|
||||
Reference in New Issue
Block a user