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