diff --git a/commands/rr.js b/commands/rr.js index f51909b..78f5a38 100644 --- a/commands/rr.js +++ b/commands/rr.js @@ -648,7 +648,7 @@ export default { let textZoznam = `# zoznam kolekcií` - if (kolekcie) { + if (Object.keys(kolekcie)?.length) { for (const kolekcia of Object.keys(kolekcie)) { textZoznam += `\n- ${kolekcia}` } @@ -697,7 +697,7 @@ export default { let textZoznam = `# zoznam rolí (${kolekcia})` - if (role) { + if (role?.length) { for (const rola of role) { textZoznam += `\n- ${rola.nazov} <@&${rola.id}>` }