Code Improvements

This commit is contained in:
Daniel Odendahl Jr
2017-04-17 21:57:35 +00:00
parent 45ba18bea9
commit 9dd0589de5
46 changed files with 73 additions and 209 deletions
+2 -2
View File
@@ -34,6 +34,7 @@ module.exports = class PruneCommand extends Command {
}]
});
}
hasPermission(msg) {
return msg.member.hasPermission('MANAGE_MESSAGES');
}
@@ -51,8 +52,7 @@ module.exports = class PruneCommand extends Command {
});
await message.channel.bulkDelete(messages, true);
return null;
}
catch (err) {
} catch (err) {
return message.say(':x: Error! Something went wrong! Perhaps there are not enough messages in the channel from earlier than two weeks?');
}
}