Fixed Deprecation of Ephemeral

This commit is contained in:
2026-04-06 16:21:57 +02:00
parent 0769a482fb
commit 564216ee8a
14 changed files with 56 additions and 55 deletions
+3 -3
View File
@@ -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