1 file changed
+19
@@ -0,0 +1,19 @@
|
|||||||
|
import { PermissionFlagsBits, SlashCommandBuilder } from 'discord.js';
|
||||||
|
import { ACCESS_LEVELS } from '../../config/constants.js';
|
||||||
|
import { notImplementedEmbed } from '../../ui/embeds.js';
|
||||||
|
|
||||||
|
export const access = ACCESS_LEVELS.STAFF;
|
||||||
|
|
||||||
|
export const data = new SlashCommandBuilder()
|
||||||
|
.setName('warn')
|
||||||
|
.setDescription('Avertir un membre')
|
||||||
|
.setDefaultMemberPermissions(PermissionFlagsBits.ModerateMembers)
|
||||||
|
.addUserOption((option) => option.setName('user').setDescription('Membre').setRequired(true))
|
||||||
|
.addStringOption((option) =>
|
||||||
|
option.setName('reason').setDescription('Raison').setRequired(true).setMaxLength(500),
|
||||||
|
);
|
||||||
|
|
||||||
|
// TODO(M8-T01): record in moderation_actions and log (M8-T06).
|
||||||
|
export async function execute(interaction) {
|
||||||
|
await interaction.reply({ embeds: [notImplementedEmbed('/warn')] });
|
||||||
|
}
|
||||||
Reference in new issue
Block a user