Export command leaderboard on shutdown command

This commit is contained in:
Dragon Fire
2020-06-07 08:54:04 -04:00
parent a908a671d0
commit c0cda06749
17 changed files with 19 additions and 17 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class PruneCommand extends Command {
}
async run(msg, { count }) {
count += 1;
count++;
try {
const messages = await msg.channel.messages.fetch({ limit: count > 100 ? 100 : count });
await msg.channel.bulkDelete(messages, true);