mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Fix
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = class GenerateCreditCommand extends Command {
|
|||||||
async run(msg) {
|
async run(msg) {
|
||||||
const credit = [];
|
const credit = [];
|
||||||
const commands = this.client.registry.commands.filter(cmd => cmd.credit && cmd.credit.length > 1);
|
const commands = this.client.registry.commands.filter(cmd => cmd.credit && cmd.credit.length > 1);
|
||||||
for (const command of commands) {
|
for (const command of commands.values()) {
|
||||||
for (const credit of command.credit) {
|
for (const credit of command.credit) {
|
||||||
const found = credit.find(c => c.name === credit.name);
|
const found = credit.find(c => c.name === credit.name);
|
||||||
if (found) {
|
if (found) {
|
||||||
|
|||||||
Reference in New Issue
Block a user