This commit is contained in:
Daniel Odendahl Jr
2017-09-17 06:01:46 +00:00
parent 6acb08e2fb
commit 67731fae02
+1 -1
View File
@@ -21,7 +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 channel.setPosition(msg.channel.position);
await msg.channel.delete();
return null;
}