Fix: Replace deprecated ephemeral with MessageFlags.Ephemeral
All checks were successful
Auto Build and Push Docker Image / build (push) Successful in 6s
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user