Fix: Replace deprecated ephemeral with MessageFlags.Ephemeral
All checks were successful
Auto Build and Push Docker Image / build (push) Successful in 6s

Fixes Discord.js v14 deprecation warning by replacing all
ephemeral: true usages with flags: [MessageFlags.Ephemeral].

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-22 18:22:44 +01:00
parent d65e613cdd
commit f78636447b
5 changed files with 33 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
import { Events } from 'discord.js';
import { Events, MessageFlags } from 'discord.js';
export default {
name: Events.InteractionCreate,
@@ -21,7 +21,7 @@ export default {
`, interaction.commandName);
} catch (error) {
console.error(error);
const replyOptions = { content: 'There was an error while executing this command!', ephemeral: true };
const replyOptions = { content: 'There was an error while executing this command!', flags: [MessageFlags.Ephemeral] };
if (interaction.replied || interaction.deferred) {
await interaction.followUp(replyOptions);
} else {