Dateien nach "commands/moderation" hochladen

This commit is contained in:
2024-02-07 14:47:42 +00:00
parent d7ed75660f
commit 10814db576
19 changed files with 1066 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
const Discord = module.require("discord.js");
module.exports = {
name: "unlock",
description: "Unlocks a Channel",
usage: "unlock <channel>",
args: true,
category: "moderation",
permissions: "MANAGE_CHANNELS",
run: async(client, message, args) => {
if (!message.member.hasPermission('MANAGE_SERVER', 'MANAGE_CHANNELS')) {
return message.channel.send("Sie haben nicht genügend Berechtigungen")
}
message.channel.overwritePermissions([
{
id: message.guild.id,
null : ['SEND_MESSAGES'],
},
],);
const embed = new Discord.MessageEmbed()
.setTitle("Channel Updates")
.setDescription(`🔓 ${message.channel} has been Unlocked`)
.setColor("RANDOM");
await message.channel.send(embed);
message.delete();
}
}