aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/rm.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/commands/rm.js')
-rw-r--r--bot/src/commands/rm.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/src/commands/rm.js b/bot/src/commands/rm.js
index ec6f647..7a1351c 100644
--- a/bot/src/commands/rm.js
+++ b/bot/src/commands/rm.js
@@ -1,4 +1,4 @@
-import { SlashCommandBuilder, PermissionFlagsBits } from 'discord.js';
+import { SlashCommandBuilder, PermissionFlagsBits, MessageFlags } from 'discord.js';
export default {
data: new SlashCommandBuilder()
@@ -12,8 +12,7 @@ export default {
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages),
async execute(interaction) {
const amount = interaction.options.getNumber('amount');
-
- if (amount > 100) return interaction.reply('Put a number less than 100.');
+ if (amount > 100) return interaction.reply({ content: 'Put a number less than 100.', flags: MessageFlags.Ephemeral });
return await interaction.channel.bulkDelete(amount)
.then( (messages) => interaction.reply(`Deleted ${messages.size} messages.`));