Expose mor emember keys

This commit is contained in:
Rory&
2025-11-25 23:04:25 +01:00
parent 666ec3e855
commit 0a649a0de2
4 changed files with 17 additions and 1 deletions
Binary file not shown.
Binary file not shown.
+11 -1
View File
@@ -64,7 +64,12 @@ export type PublicMemberKeys =
| "deaf"
| "mute"
| "premium_since"
| "avatar";
| "avatar"
| "banner"
| "bio"
| "theme_colors"
| "pronouns"
| "communication_disabled_until";
export const PublicMemberProjection: PublicMemberKeys[] = [
"id",
@@ -77,6 +82,11 @@ export const PublicMemberProjection: PublicMemberKeys[] = [
"mute",
"premium_since",
"avatar",
"banner",
"bio",
"theme_colors",
"pronouns",
"communication_disabled_until",
];
export type PublicMember = Omit<Pick<Member, PublicMemberKeys>, "roles"> & {
+6
View File
@@ -44,6 +44,12 @@ export const MemberPrivateProjection: (keyof Member)[] = [
"roles",
"settings",
"user",
"avatar",
"banner",
"bio",
"theme_colors",
"pronouns",
"communication_disabled_until",
];
@Entity({