Channel Set/Get added

This commit is contained in:
DeSqBlocki
2025-02-08 23:45:55 +01:00
parent f978dbdf2e
commit e74aef15b9
8 changed files with 134 additions and 53 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
const { Events } = require('discord.js')
const { Events, MessageFlags } = require('discord.js')
module.exports = {
name: Events.InteractionCreate,
@@ -17,9 +17,9 @@ module.exports = {
} catch (error) {
console.error(error);
if (interaction.replied || interaction.deferred) {
await interaction.followUp({ content: 'There was an error while executing this command!', ephemeral: true });
await interaction.followUp({ content: 'There was an error while executing this command!', flags: MessageFlags.Ephemeral });
} else {
await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true });
await interaction.reply({ content: 'There was an error while executing this command!', flags: MessageFlags.Ephemeral });
}
}
}