Fixed Deprecation of Ephemeral
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { SlashCommandBuilder, Events } = require('discord.js')
|
||||
const { SlashCommandBuilder, Events, MessageFlags } = require('discord.js')
|
||||
const { mClient } = require('../..')
|
||||
require('dotenv').config()
|
||||
|
||||
@@ -21,7 +21,7 @@ async function channelSet(interaction) {
|
||||
})
|
||||
|
||||
return await interaction.editReply({
|
||||
content: `Set <#${channel.id}> as ${purpose} channel!`, ephemeral: true
|
||||
content: `Set <#${channel.id}> as ${purpose} channel!`, flags: MessageFlags.Ephemeral
|
||||
})
|
||||
}
|
||||
async function channelSimulate(interaction) {
|
||||
@@ -42,7 +42,7 @@ async function channelSimulate(interaction) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return interaction.reply({ content: 'Done.', ephemeral: true })
|
||||
return interaction.reply({ content: 'Done.', flags: MessageFlags.Ephemeral })
|
||||
}
|
||||
async function roleSet(interaction) {
|
||||
const guild = interaction.guild
|
||||
|
||||
Reference in New Issue
Block a user