From 0ac0dffce4c5588eebb93b2c3572db573aff53ec Mon Sep 17 00:00:00 2001 From: Nix Krystik Date: Wed, 26 Aug 2026 15:29:43 +0800 Subject: [PATCH] (commands): Replace `/wipe` with `/prune`. --- src/commands/admin/{wipe.ts => prune.ts} | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) rename src/commands/admin/{wipe.ts => prune.ts} (51%) diff --git a/src/commands/admin/wipe.ts b/src/commands/admin/prune.ts similarity index 51% rename from src/commands/admin/wipe.ts rename to src/commands/admin/prune.ts index 90a32d7..c13f6a3 100644 --- a/src/commands/admin/wipe.ts +++ b/src/commands/admin/prune.ts @@ -4,22 +4,26 @@ import { deleteUser } from "../../utils"; // ---------- @SlashCommand( - new CommandBuilder('wipe', 'Wipe a user from the database.') + new CommandBuilder('prune', 'Prune users from the database.') .setIntegrationTypes(Constants.ApplicationIntegrationType.GuildInstall) .setContexts(Constants.InteractionContextType.Guild) .setCommandType(Constants.ApplicationCommandType.ChatInput) - .addUserOption('user', 'The user to wipe.', true) + .addUserOption('member', 'The member to prune.') ) -class WipeCommand extends Command { - users = ['1363132678022631428']; +class PruneCommand extends Command { + users = [ + '1363132678022631428', // nxbat + '454653142500507649' // bitdash + ]; async handleCommand(context: CommandClient, interaction: CommandInteraction) { - console.log('tes'); - const user = interaction.getRequiredUser('user'); + await interaction.defer(true); + + const user = interaction.getRequiredUser('member'); await deleteUser(user.id); - await interaction.createMessage({ content: `Successfully wiped: ${interaction.user.mention} (*${interaction.user.username}*)`}); + await interaction.createMessage({ content: `Pruned: *${user.username}* | ID: ${user.id}` }); } } -export default new WipeCommand('wipe'); +export default new PruneCommand('prune');