xopbot
Version:
XOPBOT Is A Multipurpose Bot With Over 200+ Commands That Make You Love The Bot!
16 lines • 851 B
JavaScript
const Discord = module.require("discord.js");
const lineReplyNoMention = require('discord-reply');
const color = process.env.Color;
module.exports = {
name: "channelunlock",
cooldown: 10,
permissions: ["ADMINISTRATOR"],
clientpermissions: ["ADMINISTRATOR"],
description: "Unlocks a Channel",
async execute(client, message, cmd, args, Discord) {
const user = message.mentions.users.first()
message.channel.overwritePermissions([{ id: message.guild.id, null: ['SEND_MESSAGES'], },]);
const embed = new Discord.MessageEmbed().setTimestamp().setAuthor(`Channel Updates!`, message.author.displayAvatarURL({ dynamic: true })).setDescription(`**🔓 ${message.channel} Has Been Unlocked By ${message.author.username}!**`).setColor(`${color}`)
await message.lineReplyNoMention({ embed: embed });
}
}