1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 16:30:59 -04:00
Daggerbot-TS/src/commands/warn.ts
2023-01-28 13:33:55 +11:00

18 lines
665 B
TypeScript

import Discord,{SlashCommandBuilder} from 'discord.js';
import TClient from 'src/client';
export default {
async run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
client.punish(client, interaction, 'warn');
},
data: new SlashCommandBuilder()
.setName('warn')
.setDescription('Warn a member')
.addUserOption((opt)=>opt
.setName('member')
.setDescription('Which member to warn?')
.setRequired(true))
.addStringOption((opt)=>opt
.setName('reason')
.setDescription('Reason for the warning')
.setRequired(false))
}