From ad57c32484115367b89932cfb208185f71906bf4 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 31 Mar 2017 00:32:25 +0000 Subject: [PATCH] Fix Prune --- commands/moderation/prune.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/moderation/prune.js b/commands/moderation/prune.js index a4ad1181..fc470a97 100644 --- a/commands/moderation/prune.js +++ b/commands/moderation/prune.js @@ -44,8 +44,7 @@ module.exports = class PruneCommand extends commando.Command { let messages = await message.channel.fetchMessages({ limit: count }); - let deletion = await message.channel.bulkDelete(messages, true); - return deletion; + await message.channel.bulkDelete(messages, true); } catch (err) { return message.say(':x: Error! Something went wrong! Perhaps there are not enough messages in the channel from earlier than two weeks?');