diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-04 10:05:14 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-04 10:05:14 -0500 |
| commit | cc06b8ed4e4e0aef02dfd8ab15df22a57a177a0a (patch) | |
| tree | deffb57bee9fe24a8d1b8143fba603774544ee00 /bot/src/commands/rm.js | |
| parent | 11bb9ab6b30314d91209bc9888d95783cc247e98 (diff) | |
| download | AleeBot-cc06b8ed4e4e0aef02dfd8ab15df22a57a177a0a.tar.gz AleeBot-cc06b8ed4e4e0aef02dfd8ab15df22a57a177a0a.tar.bz2 AleeBot-cc06b8ed4e4e0aef02dfd8ab15df22a57a177a0a.zip | |
Readme change; Docker; Logging
Diffstat (limited to 'bot/src/commands/rm.js')
| -rw-r--r-- | bot/src/commands/rm.js | 5 |
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.`)); |
