mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix gen-credit
This commit is contained in:
@@ -43,7 +43,7 @@ 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 || '')}\n${sortByName(c.commands, 'name').map(cmd => {
|
||||
if (!cmd.reasonURL) return ` * ${cmd.name} (${cmd.reason})`;
|
||||
return ` * ${cmd.name} (${embedURL(c.reason, c.reasonURL)})`;
|
||||
}).join('\n')}`);
|
||||
|
||||
Reference in New Issue
Block a user