mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
Make owner commands cleaner
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = class CommandLeaderboardExportCommand extends Command {
|
||||
|
||||
async run(msg) {
|
||||
const result = this.client.exportCommandLeaderboard();
|
||||
await msg.direct({ files: [{ attachment: result, name: 'command-leaderboard.json' }] });
|
||||
return msg.say('📬 Sent `command-leaderboard.json` to your DMs!');
|
||||
if (msg.guild) await msg.say('📬 Sent `command-leaderboard.json` to your DMs!');
|
||||
return msg.direct({ files: [{ attachment: result, name: 'command-leaderboard.json' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user