Merge pull request #12 from BanTheNons/publicuserprojection-bot
Added bot to PublicUserProjection and implemented user banner colors
This commit is contained in:
		
						commit
						6ff334be3b
					
				| @ -10,7 +10,9 @@ export const PublicUserProjection = { | |||||||
| 	id: true, | 	id: true, | ||||||
| 	public_flags: true, | 	public_flags: true, | ||||||
| 	avatar: true, | 	avatar: true, | ||||||
|  | 	accent_color: true, | ||||||
| 	bio: true, | 	bio: true, | ||||||
|  | 	bot: true, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| export interface User { | export interface User { | ||||||
| @ -18,6 +20,7 @@ export interface User { | |||||||
| 	username: string; // username max length 32, min 2
 | 	username: string; // username max length 32, min 2
 | ||||||
| 	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
 | ||||||
| 	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
 | ||||||
| @ -63,7 +66,9 @@ export interface PublicUser { | |||||||
| 	discriminator: string; | 	discriminator: string; | ||||||
| 	username: string; | 	username: string; | ||||||
| 	avatar: string | null; | 	avatar: string | null; | ||||||
|  | 	accent_color: number; | ||||||
| 	public_flags: bigint; | 	public_flags: bigint; | ||||||
|  | 	bot: boolean; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export interface ConnectedAccount { | export interface ConnectedAccount { | ||||||
| @ -141,6 +146,7 @@ export const UserSchema = new Schema({ | |||||||
| 	username: String, | 	username: String, | ||||||
| 	discriminator: String, | 	discriminator: String, | ||||||
| 	avatar: String, | 	avatar: String, | ||||||
|  | 	accent_color: Number, | ||||||
| 	phone: String, | 	phone: String, | ||||||
| 	desktop: Boolean, | 	desktop: Boolean, | ||||||
| 	mobile: Boolean, | 	mobile: Boolean, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flam3rboy
						Flam3rboy