summary refs log tree commit diff
diff options
context:
space:
mode:
authorBuildTools <59115290+BanTheNons@users.noreply.github.com>2021-08-07 21:35:51 +0300
committerBuildTools <59115290+BanTheNons@users.noreply.github.com>2021-08-07 21:35:51 +0300
commit2d85e22d97bd7f9c9129f88d7bd3171339b15e78 (patch)
tree35c8e436ae2dda637e0fa1d66c07b2fa7e9304db
parent1.3.39 (diff)
downloadserver-2d85e22d97bd7f9c9129f88d7bd3171339b15e78.tar.xz
added the banner property
-rw-r--r--src/models/User.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models/User.ts b/src/models/User.ts

index 281c14e6..c667e954 100644 --- a/src/models/User.ts +++ b/src/models/User.ts
@@ -11,6 +11,7 @@ export const PublicUserProjection = { public_flags: true, avatar: true, accent_color: true, + banner: true, bio: true, bot: true, }; @@ -21,6 +22,7 @@ export interface User { discriminator: string; // #0001 4 digit long string from #0001 - #9999 avatar: string | null; // hash of the user avatar accent_color: number | null; // banner color of user + banner: string | null; 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 @@ -67,6 +69,7 @@ export interface PublicUser { username: string; avatar: string | null; accent_color: number; + banner: string | null; public_flags: bigint; bot: boolean; } @@ -147,6 +150,7 @@ export const UserSchema = new Schema({ discriminator: String, avatar: String, accent_color: Number, + banner: String, phone: String, desktop: Boolean, mobile: Boolean,