mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-13 06:02:39 +01:00
Merge pull request #13 from BanTheNons/user-banners
Implemented profile banners!
This commit is contained in:
commit
e49b84c727
@ -11,6 +11,7 @@ export const PublicUserProjection = {
|
|||||||
public_flags: true,
|
public_flags: true,
|
||||||
avatar: true,
|
avatar: true,
|
||||||
accent_color: true,
|
accent_color: true,
|
||||||
|
banner: true,
|
||||||
bio: true,
|
bio: true,
|
||||||
bot: true,
|
bot: true,
|
||||||
};
|
};
|
||||||
@ -21,6 +22,7 @@ export interface User {
|
|||||||
discriminator: string; // #0001 4 digit long string from #0001 - #9999
|
discriminator: string; // #0001 4 digit long string from #0001 - #9999
|
||||||
avatar: string | null; // hash of the user avatar
|
avatar: string | null; // hash of the user avatar
|
||||||
accent_color: number | null; // banner color of user
|
accent_color: number | null; // banner color of user
|
||||||
|
banner: string | null;
|
||||||
phone: string | null; // phone number of the user
|
phone: string | null; // phone number of the user
|
||||||
desktop: boolean; // if the user has desktop app installed
|
desktop: boolean; // if the user has desktop app installed
|
||||||
mobile: boolean; // if the user has mobile app installed
|
mobile: boolean; // if the user has mobile app installed
|
||||||
@ -67,6 +69,7 @@ export interface PublicUser {
|
|||||||
username: string;
|
username: string;
|
||||||
avatar: string | null;
|
avatar: string | null;
|
||||||
accent_color: number;
|
accent_color: number;
|
||||||
|
banner: string | null;
|
||||||
public_flags: bigint;
|
public_flags: bigint;
|
||||||
bot: boolean;
|
bot: boolean;
|
||||||
}
|
}
|
||||||
@ -147,6 +150,7 @@ export const UserSchema = new Schema({
|
|||||||
discriminator: String,
|
discriminator: String,
|
||||||
avatar: String,
|
avatar: String,
|
||||||
accent_color: Number,
|
accent_color: Number,
|
||||||
|
banner: String,
|
||||||
phone: String,
|
phone: String,
|
||||||
desktop: Boolean,
|
desktop: Boolean,
|
||||||
mobile: Boolean,
|
mobile: Boolean,
|
||||||
|
Loading…
Reference in New Issue
Block a user