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