This commit is contained in:
Daniel Odendahl Jr
2017-09-17 05:53:28 +00:00
parent a8066d97c0
commit 9a3b0e16f8
+2 -1
View File
@@ -19,7 +19,8 @@ module.exports = class ClearChannelCommand extends Command {
async run(msg) {
if (!msg.channel.deletable) return msg.say('This channel cannot be deleted.');
await msg.channel.clone();
const channel = await msg.channel.clone();
if (msg.channel.parent) await channel.setParent(msg.channel.parent);
await msg.channel.delete();
return null;
}