mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Export to dm in owner only stuff
This commit is contained in:
@@ -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!');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user