1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 16:30:59 -04:00
Daggerbot-TS/src/commands/unpunish.ts
2022-11-30 01:22:26 +11:00

18 lines
732 B
TypeScript

import Discord,{SlashCommandBuilder} from 'discord.js';
import { TClient } from 'src/client';
export default {
async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
client.unPunish(client, interaction)
},
data: new SlashCommandBuilder()
.setName('unpunish')
.setDescription('Remove the active punishment from a member')
.setDMPermission(false)
.addIntegerOption((opt)=>opt
.setName('case_id')
.setDescription('Case # of the punishment to be overwritten')
.setRequired(true))
.addStringOption((opt)=>opt
.setName('reason')
.setDescription('Reason for removing the punishment'))
}