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 { ChannelType, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel } from "discord.js"
import { ChannelType, InteractionContextType, MessageFlags, PermissionFlagsBits, SlashCommandBuilder, TextChannel } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/typings"
@@ -27,7 +27,7 @@ export default {
.setContexts(InteractionContextType.Guild),
async execute({ interaction }) {
await interaction.deferReply({ ephemeral: true })
await interaction.deferReply({ flags: MessageFlags.Ephemeral })
const message = interaction.options.getString("message")!
const channel = (interaction.options.getChannel("channel") || interaction.channel) as TextChannel