added titles & GM display for listing groups

This commit is contained in:
Michel Fedde 2025-05-27 20:09:05 +02:00
parent 13f2bf30fa
commit 2e26b1c210

View file

@ -143,12 +143,13 @@ export class GroupCommand implements Command, ChatInteractionCommand, Autocomple
const nextPlaydate = playdateRepo.getNextPlaydateForGroup(group);
const values = [
`${iconCache.getEmoji("people_group_solid")} ${roleMention(group.role.roleid)}`
`Role: ${iconCache.getEmoji("people_group_solid")} ${roleMention(group.role.roleid)}`,
`Leader/GM: ${userMention(group.leader.memberid)}`
];
if (nextPlaydate) {
values.push(
`${iconCache.getEmoji("calendar_days_solid")} ${time(nextPlaydate.from_time, "F")}`
`Next Playdate: ${iconCache.getEmoji("calendar_days_solid")} ${time(nextPlaydate.from_time, "F")}`
)
}