mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
trim credit
This commit is contained in:
@@ -27,10 +27,10 @@ module.exports = class CreditCommand extends Command {
|
|||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setTitle(command.name)
|
.setTitle(command.name)
|
||||||
.setColor(0x7289DA)
|
.setColor(0x7289DA)
|
||||||
.setDescription(command.credit.map(credit => {
|
.setDescription(trimArray(command.credit.map(credit => {
|
||||||
if (!credit.reasonURL) return `${embedURL(credit.name, credit.url)} (${credit.reason})`;
|
if (!credit.reasonURL) return `${embedURL(credit.name, credit.url)} (${credit.reason})`;
|
||||||
return `${embedURL(credit.name, credit.url)} (${embedURL(credit.reason, credit.reasonURL)})`;
|
return `${embedURL(credit.name, credit.url)} (${embedURL(credit.reason, credit.reasonURL)})`;
|
||||||
}).join('\n'));
|
}), 15).join('\n'));
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
}
|
}
|
||||||
const cmd = command.toLowerCase();
|
const cmd = command.toLowerCase();
|
||||||
|
|||||||
Reference in New Issue
Block a user