From 171bcd99d9d0e4668f9e92c6b8f9397a3124add9 Mon Sep 17 00:00:00 2001 From: Lamp Date: Sun, 2 Dec 2018 15:34:29 -0800 Subject: [PATCH] delete createtextchannel command it never was used constructively. --- src/commands.js | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/commands.js b/src/commands.js index 3eaf688..964a403 100755 --- a/src/commands.js +++ b/src/commands.js @@ -33,36 +33,6 @@ global.commands = { } }, - - "createtextchannel":{ - usage: "", - description: "Creates a generic text channel in this server and gives you full permissions for it.", - exec: async function (msg) { - if (!msg.args[0]) return "EBADUSG"; - //var name = msg.txt(1).replace(/[^a-zA-Z0-9]/g, '-').substr(0,100).toLowerCase(); - var name = msg.txt(1); - msg.guild.channels.create(name, { - parent: config.channels.user_channels, - overwrites: [ - { - id: msg, - allow: [ - "SEND_MESSAGES", - "MANAGE_MESSAGES", - "MANAGE_CHANNELS", - "MANAGE_ROLES", - "MANAGE_WEBHOOKS" - ] - } - ] - }).then(channel => { - msg.reply(`${channel}`); - }, error=>{ - msg.reply(`:warning: Failed to create channel. \`\`\` ${error} \`\`\``); - }); - } - }, - 'delete': { usage: "[channel]", aliases: ['archive'],