From 235ea9fe3e1eee72939b7e40cb2ba56b9e7ede88 Mon Sep 17 00:00:00 2001 From: BuildTools <59115290+BanTheNons@users.noreply.github.com> Date: Thu, 5 Aug 2021 20:53:58 +0300 Subject: [PATCH 1/4] Added bot to PublicUserProjection --- src/models/User.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/models/User.ts b/src/models/User.ts index d4893e14..add848d0 100644 --- a/src/models/User.ts +++ b/src/models/User.ts @@ -11,6 +11,7 @@ export const PublicUserProjection = { public_flags: true, avatar: true, bio: true, + bot: true, }; export interface User { @@ -64,6 +65,7 @@ export interface PublicUser { username: string; avatar: string | null; public_flags: bigint; + bot: boolean; } export interface ConnectedAccount { From 122bed345627437bc263e3267d405adaacc51544 Mon Sep 17 00:00:00 2001 From: BuildTools <59115290+BanTheNons@users.noreply.github.com> Date: Fri, 6 Aug 2021 15:23:09 +0300 Subject: [PATCH 2/4] Added accent_color --- src/models/User.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/models/User.ts b/src/models/User.ts index add848d0..ca13ebb7 100644 --- a/src/models/User.ts +++ b/src/models/User.ts @@ -10,6 +10,7 @@ export const PublicUserProjection = { id: true, public_flags: true, avatar: true, + accent_color: true, bio: true, bot: true, }; @@ -19,6 +20,7 @@ export interface User { username: string; // username max length 32, min 2 discriminator: string; // #0001 4 digit long string from #0001 - #9999 avatar: string | null; // hash of the user avatar + accent_color: number; // banner color of user phone: string | null; // phone number of the user desktop: boolean; // if the user has desktop app installed mobile: boolean; // if the user has mobile app installed @@ -64,6 +66,7 @@ export interface PublicUser { discriminator: string; username: string; avatar: string | null; + accent_color: number; public_flags: bigint; bot: boolean; } From 9a356e50230a93afba3c06a52804584f560eedd9 Mon Sep 17 00:00:00 2001 From: BuildTools <59115290+BanTheNons@users.noreply.github.com> Date: Fri, 6 Aug 2021 15:44:28 +0300 Subject: [PATCH 3/4] apparently this can also be null --- src/models/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/User.ts b/src/models/User.ts index ca13ebb7..61166ecb 100644 --- a/src/models/User.ts +++ b/src/models/User.ts @@ -20,7 +20,7 @@ export interface User { username: string; // username max length 32, min 2 discriminator: string; // #0001 4 digit long string from #0001 - #9999 avatar: string | null; // hash of the user avatar - accent_color: number; // banner color of user + accent_color: number | null; // banner color of user phone: string | null; // phone number of the user desktop: boolean; // if the user has desktop app installed mobile: boolean; // if the user has mobile app installed From b4cc54eac90ad5b222dffdad9bbfd391a181fe84 Mon Sep 17 00:00:00 2001 From: BuildTools <59115290+BanTheNons@users.noreply.github.com> Date: Sat, 7 Aug 2021 11:00:31 +0300 Subject: [PATCH 4/4] added accent_color to the user schema --- src/models/User.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/User.ts b/src/models/User.ts index 61166ecb..281c14e6 100644 --- a/src/models/User.ts +++ b/src/models/User.ts @@ -146,6 +146,7 @@ export const UserSchema = new Schema({ username: String, discriminator: String, avatar: String, + accent_color: Number, phone: String, desktop: Boolean, mobile: Boolean,