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