This commit is contained in:
Daniel Odendahl Jr
2017-09-17 05:59:10 +00:00
parent 9a3b0e16f8
commit 6acb08e2fb
+1
View File
@@ -21,6 +21,7 @@ module.exports = class ClearChannelCommand extends Command {
if (!msg.channel.deletable) return msg.say('This channel cannot be deleted.');
const channel = await msg.channel.clone();
if (msg.channel.parent) await channel.setParent(msg.channel.parent);
await channel.setPosition(msg.channel.rawPosition);
await msg.channel.delete();
return null;
}