Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- const db = require("quick.db");
- let prefix = "+";
- exports.run = async (client, message, prefix) => {
- if (message.author.bot || message.channel.type == "dm") return undefined;
- if (!message.member.hasPermission("ADMINISTRATOR")) return;
- let args = message.content.split(" ");
- if(!args[1]) return message.channel.send(`**${prefix}setPrivate-category [CATEGORY ID]**`)
- let find = message.guild.channels.cache.find(ch => ch.id === args[1]);
- if(!find) return message.channel.send("**Invalid Channel**")
- let channelCategory = find;
- if(channelCategory.type != "category") return message.channel.send(`**Invalid Channel Type : Supported Type \`category\`**`)
- await db.set(`PrivateCategory_[${message.guild.id}]`,channelCategory.id)
- message.channel.send(`**Voice Channel Is : \`${channelCategory.name}\`**`)
- };
- exports.conf = {
- enabled: true,
- aliases: ["setprivate-category"],
- };
- exports.help = {
- name: 'setprivate-category',
- description: '',
- usage: ''
- };
- /*
- Code by Me , 9 9 9 </>#9044
- Me Codes Link : https://discord.gg/td3NFBBkGC or https://discord.gg/mecodes
- */
- /*
- Other Link :
- Private Channel (Event) : https://pastebin.com/E1VAjLF5
- Setup Channel : https://pastebin.com/T4x5uZk8
- */
Add Comment
Please, Sign In to add comment