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.punish(client, interaction, 'warn');
|
2022-11-13 19:18:15 -05:00
|
|
|
},
|
2022-11-16 13:53:42 -05:00
|
|
|
data: new SlashCommandBuilder()
|
|
|
|
.setName('warn')
|
|
|
|
.setDescription('Warn a member')
|
2022-11-29 09:22:26 -05:00
|
|
|
.setDMPermission(false)
|
2022-11-16 13:53:42 -05:00
|
|
|
.addUserOption((opt)=>opt
|
|
|
|
.setName('member')
|
|
|
|
.setDescription('Which member to warn?')
|
|
|
|
.setRequired(true))
|
|
|
|
.addStringOption((opt)=>opt
|
|
|
|
.setName('reason')
|
|
|
|
.setDescription('Reason for the warning')
|
|
|
|
.setRequired(false))
|
2022-11-13 19:18:15 -05:00
|
|
|
}
|