mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Turn off display embedURL in gen-credit
This commit is contained in:
@@ -43,9 +43,9 @@ module.exports = class GenerateCreditCommand extends Command {
|
||||
}
|
||||
credit = sortByName(credit, 'name');
|
||||
const mapped = credit
|
||||
.map(c => `- ${embedURL(c.name, c.url || '')}\n${sortByName(c.commands, 'name').map(cmd => {
|
||||
.map(c => `- ${embedURL(c.name, c.url || '', false)}\n${sortByName(c.commands, 'name').map(cmd => {
|
||||
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
||||
return ` * ${cmd.name} (${embedURL(cmd.reason, cmd.reasonURL || '')})`;
|
||||
return ` * ${cmd.name} (${embedURL(cmd.reason, cmd.reasonURL || '', false)})`;
|
||||
}).join('\n')}`);
|
||||
return msg.channel.send({ files: [{ attachment: Buffer.from(mapped.join('\n')), name: 'credit.txt' }] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user