2022-11-16 13:53:42 -05:00
|
|
|
import Discord,{SlashCommandBuilder} from 'discord.js';
|
2023-01-27 21:33:55 -05:00
|
|
|
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')
|
|
|
|
.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
|
|
|
}
|