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.punish(client, interaction, 'ban');
|
2022-11-13 19:18:15 -05:00
|
|
|
},
|
2022-11-16 13:53:42 -05:00
|
|
|
data: new SlashCommandBuilder()
|
|
|
|
.setName('ban')
|
|
|
|
.setDescription('Ban a member from the server')
|
|
|
|
.addUserOption((opt)=>opt
|
|
|
|
.setName('member')
|
|
|
|
.setDescription('Which member to ban?')
|
|
|
|
.setRequired(true))
|
|
|
|
.addStringOption((opt)=>opt
|
|
|
|
.setName('time')
|
2022-11-20 04:04:40 -05:00
|
|
|
.setDescription('How long the ban will be?'))
|
2022-11-16 13:53:42 -05:00
|
|
|
.addStringOption((opt)=>opt
|
|
|
|
.setName('reason')
|
2022-11-20 04:04:40 -05:00
|
|
|
.setDescription('Reason for the ban'))
|
2022-11-13 19:18:15 -05:00
|
|
|
}
|