mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Export command leaderboard on shutdown command
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user