Updated ephemreal deprecation
This commit is contained in:
@@ -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"
|
||||
@@ -28,7 +28,7 @@ export default async function loadButtonEvents(client: Client, ft: FileType) {
|
||||
if (!button) {
|
||||
interaction.reply({
|
||||
content: "Button logic not implemented. This is most likely an old button",
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
console.error(`No event matching ${interaction.customId} was found.`)
|
||||
return
|
||||
@@ -58,7 +58,7 @@ export default async function loadButtonEvents(client: Client, ft: FileType) {
|
||||
description: "There was an error while executing this button!",
|
||||
color: embedColor
|
||||
}],
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
} else {
|
||||
await interaction.editReply({
|
||||
|
||||
@@ -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"
|
||||
@@ -26,7 +26,7 @@ export default async function loadSlashCommandsEvents(client: Client, ft: FileTy
|
||||
if (!command) {
|
||||
interaction.reply({
|
||||
content: "Command logic not implemented. This is most likely an old command",
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
console.error(`No command matching ${interaction.commandName} was found.`)
|
||||
return
|
||||
@@ -56,7 +56,7 @@ export default async function loadSlashCommandsEvents(client: Client, ft: FileTy
|
||||
description: "There was an error while executing this command!",
|
||||
color: embedColor
|
||||
}],
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
} else {
|
||||
await interaction.editReply({
|
||||
|
||||
@@ -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"
|
||||
@@ -26,7 +26,7 @@ export default async function loadContextMenuEvents(client: Client, ft: FileType
|
||||
if (!command) {
|
||||
interaction.reply({
|
||||
content: "Command logic not implemented. This is most likely an old command",
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
console.error(`No command matching ${interaction.commandName} was found.`)
|
||||
return
|
||||
@@ -56,7 +56,7 @@ export default async function loadContextMenuEvents(client: Client, ft: FileType
|
||||
description: "There was an error while executing this contextmenu command!",
|
||||
color: embedColor
|
||||
}],
|
||||
ephemeral: true
|
||||
flags: MessageFlags.Ephemeral
|
||||
})
|
||||
} else {
|
||||
await interaction.editReply({
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user