feat: add per-group emoji toggle and standardized embed titles

This commit is contained in:
RhenCloud 2026-08-03 01:18:29 +08:00
parent 49baf63a17
commit 809f89400b
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
11 changed files with 437 additions and 133 deletions

View file

@ -141,6 +141,9 @@ function validateGroups(
) {
return { ok: false, error: `group "${g.id}".owners must be a list of strings` };
}
if (g.emoji !== undefined && typeof g.emoji !== "boolean") {
return { ok: false, error: `group "${g.id}".emoji must be a boolean` };
}
}
return { ok: true, groups: groups as Group[] };
}