mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Fix
This commit is contained in:
@@ -37,7 +37,7 @@ module.exports = class CreditCommand extends Command {
|
|||||||
const commands = this.client.registry.commands
|
const commands = this.client.registry.commands
|
||||||
.filter(c => c.credit && c.credit.length && c.credit.find(cred => cred.name.toLowerCase().includes(cmd)))
|
.filter(c => c.credit && c.credit.length && c.credit.find(cred => cred.name.toLowerCase().includes(cmd)))
|
||||||
.map(com => {
|
.map(com => {
|
||||||
const { credit } = com;
|
const credit = com.credit.find(cred => cred.name.toLowerCase().includes(cmd));
|
||||||
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)})`;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user