Fix Prune

This commit is contained in:
Daniel Odendahl Jr
2017-03-31 00:32:25 +00:00
parent 698262d24c
commit ad57c32484
+1 -2
View File
@@ -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?');