Turn off display embedURL in gen-credit

This commit is contained in:
Dragon Fire
2020-04-12 09:49:00 -04:00
parent c838fedcb7
commit 8f77fb9438
3 changed files with 399 additions and 398 deletions
+2 -2
View File
@@ -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' }] });
}