delete createtextchannel command

it never was used constructively.
This commit is contained in:
Lamp 2018-12-02 15:34:29 -08:00 committed by GitHub
parent dd4b493a3b
commit 171bcd99d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 30 deletions

View File

@ -33,36 +33,6 @@ global.commands = {
}
},
"createtextchannel":{
usage: "<name>",
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'],