mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
17 lines
700 B
TypeScript
17 lines
700 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')
|
|
.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'))
|
|
} |