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