Export to dm in owner only stuff

This commit is contained in:
Dragon Fire
2020-06-07 18:13:08 -04:00
parent 2265bd1dca
commit 9841a4db16
6 changed files with 16 additions and 10 deletions
@@ -22,8 +22,9 @@ module.exports = class CommandLeaderboardExportCommand extends Command {
});
}
run(msg) {
async run(msg) {
const result = this.client.exportCommandLeaderboard();
return msg.say({ files: [{ attachment: result, name: 'command-leaderboard.json' }] });
await msg.direct({ files: [{ attachment: result, name: 'command-leaderboard.json' }] });
return msg.say('📬 Sent \`command-leaderboard.json\` to your DMs!');
}
};