1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 20:30:58 -05:00
Daggerbot-TS/src/commands/unpunish.ts

18 lines
732 B
TypeScript
Raw Normal View History

import Discord,{SlashCommandBuilder} from 'discord.js';
import { TClient } from 'src/client';
2022-11-13 19:18:15 -05:00
export default {
async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
client.unPunish(client, interaction)
2022-11-13 19:18:15 -05:00
},
data: new SlashCommandBuilder()
.setName('unpunish')
.setDescription('Remove the active punishment from a member')
.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')
.setRequired(false))
2022-11-13 19:18:15 -05:00
}