fix zoznam
This commit is contained in:
@@ -648,7 +648,7 @@ export default {
|
|||||||
|
|
||||||
let textZoznam = `# zoznam kolekcií`
|
let textZoznam = `# zoznam kolekcií`
|
||||||
|
|
||||||
if (kolekcie) {
|
if (Object.keys(kolekcie)?.length) {
|
||||||
for (const kolekcia of Object.keys(kolekcie)) {
|
for (const kolekcia of Object.keys(kolekcie)) {
|
||||||
textZoznam += `\n- ${kolekcia}`
|
textZoznam += `\n- ${kolekcia}`
|
||||||
}
|
}
|
||||||
@@ -697,7 +697,7 @@ export default {
|
|||||||
|
|
||||||
let textZoznam = `# zoznam rolí (${kolekcia})`
|
let textZoznam = `# zoznam rolí (${kolekcia})`
|
||||||
|
|
||||||
if (role) {
|
if (role?.length) {
|
||||||
for (const rola of role) {
|
for (const rola of role) {
|
||||||
textZoznam += `\n- ${rola.nazov} <@&${rola.id}>`
|
textZoznam += `\n- ${rola.nazov} <@&${rola.id}>`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user