mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix gen-credit
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = class GenerateCreditCommand extends Command {
|
|||||||
}
|
}
|
||||||
credit = sortByName(credit, 'name');
|
credit = sortByName(credit, 'name');
|
||||||
const mapped = credit
|
const mapped = credit
|
||||||
.map(c => `- ${embedURL(c.name, c.url)}\n${sortByName(c.commands, 'name').map(cmd => {
|
.map(c => `- ${embedURL(c.name, c.url || '')}\n${sortByName(c.commands, 'name').map(cmd => {
|
||||||
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
||||||
return ` * ${cmd.name} (${embedURL(c.reason, c.reasonURL)})`;
|
return ` * ${cmd.name} (${embedURL(c.reason, c.reasonURL)})`;
|
||||||
}).join('\n')}`);
|
}).join('\n')}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user