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