2022-11-16 13:53:42 -05:00
|
|
|
import Discord,{SlashCommandBuilder} from 'discord.js';
|
|
|
|
import { TClient } from 'src/client';
|
2022-11-13 19:18:15 -05:00
|
|
|
export default {
|
2022-11-16 13:53:42 -05:00
|
|
|
async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
|
|
|
|
client.unPunish(client, interaction)
|
2022-11-13 19:18:15 -05:00
|
|
|
},
|
2022-11-16 13:53:42 -05:00
|
|
|
data: new SlashCommandBuilder()
|
|
|
|
.setName('unpunish')
|
|
|
|
.setDescription('Remove the active punishment from a member')
|
2022-11-29 09:22:26 -05:00
|
|
|
.setDMPermission(false)
|
2022-11-16 13:53:42 -05:00
|
|
|
.addIntegerOption((opt)=>opt
|
|
|
|
.setName('case_id')
|
|
|
|
.setDescription('Case # of the punishment to be overwritten')
|
|
|
|
.setRequired(true))
|
|
|
|
.addStringOption((opt)=>opt
|
|
|
|
.setName('reason')
|
2022-11-20 04:04:40 -05:00
|
|
|
.setDescription('Reason for removing the punishment'))
|
2022-11-13 19:18:15 -05:00
|
|
|
}
|