Updated events

This commit is contained in:
2025-03-13 23:08:11 +01:00
parent 1ca511febf
commit e555417e13
8 changed files with 24 additions and 19 deletions

View File

@@ -5,6 +5,7 @@ import { embedColor } from "~/config/options"
import { IModal } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client"
import logToChannel from "~/utils/Functions/logtochannel"
import { log } from "../Logger"
type FileType = "js" | "ts"
export default async function loadModalEvents(client: Client, ft: FileType) {
@@ -27,7 +28,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
})
console.error(`No modal matching ${interaction.customId} was found.`)
log(`No modal matching ${interaction.customId} was found.`, "error")
return
}
@@ -48,7 +49,7 @@ export default async function loadModalEvents(client: Client, ft: FileType) {
})
}
console.error(error)
log(error, "error")
if (!interaction.deferred) {
await interaction.reply({
embeds: [{