summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/entities/Member.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts
index 0535313e..65942816 100644
--- a/src/util/entities/Member.ts
+++ b/src/util/entities/Member.ts
@@ -136,7 +136,7 @@ export class Member extends BaseClassWithoutId {
 	joined_by: string;
 
 	@Column({ nullable: true })
-	avatar: string;
+	avatar?: string;
 
 	@Column({ nullable: true })
 	banner: string;
@@ -522,7 +522,8 @@ export type PublicMemberKeys =
 	| "pending"
 	| "deaf"
 	| "mute"
-	| "premium_since";
+	| "premium_since"
+	| "avatar";
 
 export const PublicMemberProjection: PublicMemberKeys[] = [
 	"id",
@@ -534,6 +535,7 @@ export const PublicMemberProjection: PublicMemberKeys[] = [
 	"deaf",
 	"mute",
 	"premium_since",
+	"avatar",
 ];
 
 export type PublicMember = Omit<Pick<Member, PublicMemberKeys>, "roles"> & {