Updated ephemreal deprecation

This commit is contained in:
2025-01-28 21:14:50 +01:00
parent a70bd4c934
commit f58c71f667
21 changed files with 67 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
import { Events } from "discord.js"
import { Events, MessageFlags } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
@@ -25,7 +25,7 @@ export default async function loadModalEvents(client: Client, ft: FileType) {
if (!modal) {
interaction.reply({
content: "Modal logic not implemented. This is most likely an old modal",
ephemeral: true
flags: MessageFlags.Ephemeral
})
console.error(`No modal matching ${interaction.customId} was found.`)
return