From 9a3b0e16f819d4e39e06d55fbe5f832033992921 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 17 Sep 2017 05:53:28 +0000 Subject: [PATCH] Beep --- commands/moderation/clear-channel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/moderation/clear-channel.js b/commands/moderation/clear-channel.js index d62da364..94014261 100644 --- a/commands/moderation/clear-channel.js +++ b/commands/moderation/clear-channel.js @@ -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; }