mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-27 22:34:11 +00:00
Expose mor emember keys
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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"> & {
|
||||
|
||||
@@ -44,6 +44,12 @@ export const MemberPrivateProjection: (keyof Member)[] = [
|
||||
"roles",
|
||||
"settings",
|
||||
"user",
|
||||
"avatar",
|
||||
"banner",
|
||||
"bio",
|
||||
"theme_colors",
|
||||
"pronouns",
|
||||
"communication_disabled_until",
|
||||
];
|
||||
|
||||
@Entity({
|
||||
|
||||
Reference in New Issue
Block a user