(commands): Replace /wipe with /prune.

This commit is contained in:
2026-08-26 15:29:43 +08:00
parent c1c7cc9fb4
commit 0ac0dffce4
-25
View File
@@ -1,25 +0,0 @@
import { Command, CommandBuilder, CommandClient, CommandInteraction, Constants, SlashCommand } from "athena-prime";
import { deleteUser } from "../../utils";
// ----------
@SlashCommand(
new CommandBuilder('wipe', 'Wipe a user from the database.')
.setIntegrationTypes(Constants.ApplicationIntegrationType.GuildInstall)
.setContexts(Constants.InteractionContextType.Guild)
.setCommandType(Constants.ApplicationCommandType.ChatInput)
.addUserOption('user', 'The user to wipe.', true)
)
class WipeCommand extends Command<CommandClient> {
users = ['1363132678022631428'];
async handleCommand(context: CommandClient<any, any>, interaction: CommandInteraction) {
console.log('tes');
const user = interaction.getRequiredUser('user');
await deleteUser(user.id);
await interaction.createMessage({ content: `Successfully wiped: ${interaction.user.mention} (*${interaction.user.username}*)`});
}
}
export default new WipeCommand('wipe');