formatting

This commit is contained in:
Daniel Bulant 2021-10-16 20:22:33 +02:00
parent 593fa2cea9
commit 4bef072456

View file

@ -58,7 +58,7 @@ module.exports = class rozvrh extends commando.Command {
continue; continue;
} }
if(!Array.isArray(cell)) cell = [cell]; if(!Array.isArray(cell)) cell = [cell];
for(const scell of cell) { for(const scell of cell) {
embed.addField(scell.Subject.Abbrev, `\`${api.formatRoom(scell.Room.Abbrev) || "?"}\` - ${scell.Teacher.Name} - **${scell.Group.Name}**`, cell.length > 1); embed.addField(scell.Subject.Abbrev, `\`${api.formatRoom(scell.Room.Abbrev) || "?"}\` - ${scell.Teacher.Name} - **${scell.Group.Name}**`, cell.length > 1);
} }
if(cell.length > 1 && Array.isArray(schedule[cellI + 1]) && schedule[cellI + 1].length > 1) embed.addField("\u200B", "\u200B", true); if(cell.length > 1 && Array.isArray(schedule[cellI + 1]) && schedule[cellI + 1].length > 1) embed.addField("\u200B", "\u200B", true);