mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Make owner commands cleaner
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = class GenerateCreditCommand extends Command {
|
||||
})
|
||||
.filter(cmds => cmds);
|
||||
const file = Buffer.from(`## Credits\n### NPM Packages\n${npm}\n\n### Other Credits\n${list.join('\n')}`);
|
||||
await msg.direct({ files: [{ attachment: file, name: 'credits.txt' }] });
|
||||
return msg.say('📬 Sent `credits.txt` to your DMs!');
|
||||
if (msg.guild) await msg.say('📬 Sent `credits.txt` to your DMs!');
|
||||
return msg.direct({ files: [{ attachment: file, name: 'credits.txt' }] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user