Files
Dev-Pengu/Commands/mute.js
2022-11-22 19:53:50 +01:00

27 lines
930 B
JavaScript

const { EmbedBuilder, SlashCommandBuilder, PermissionFlagsBits } = require('discord.js');
module.exports = {
name: "mute",
description: "Mute users",
options: [],
CommandCreator() {
const data = new SlashCommandBuilder()
.setName(this.name)
.setDefaultMemberPermissions(PermissionFlagsBits.KickMembers)
.setDescription(this.description)
.setDefaultMemberPermissions(PermissionFlagsBits.MuteMembers)
.addMentionableOption(option => option.setName("target").setDescription("target to mute").setRequired(true))
.addStringOption(option => option.setName("reason").setDescription("Reason to take action").setRequired(true));
return data.toJSON();
},
async run(bot, interaction) {
interaction.reply("not implemented")
.catch(err => {
console.log(err)
return
});
},
}