From cc06b8ed4e4e0aef02dfd8ab15df22a57a177a0a Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 4 Mar 2025 10:05:14 -0500 Subject: Readme change; Docker; Logging --- bot/src/commands/rm.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bot/src/commands/rm.js') 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.`)); -- cgit v1.2.3