1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-22 10:41:34 +02:00

Merge pull request #6 from DiegoMagdaleno/master

Fix compilation with StrictNullChecks and make the properties have more sense
This commit is contained in:
Flam3rboy 2021-05-23 18:42:30 +02:00 committed by GitHub
commit 5cf40aa1dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ export interface ReadyEventData {
flags: bigint; flags: bigint;
mfa_enabled: boolean; mfa_enabled: boolean;
nsfw_allowed: boolean; nsfw_allowed: boolean;
phone: string; phone: string | null;
premium: boolean; premium: boolean;
premium_type: number; premium_type: number;
verified: boolean; verified: boolean;

View File

@ -16,7 +16,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
phone?: string; // 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
premium: boolean; // if user bought nitro premium: boolean; // if user bought nitro
@ -27,7 +27,7 @@ export interface User {
mfa_enabled: boolean; // if multi factor authentication is enabled mfa_enabled: boolean; // if multi factor authentication is enabled
created_at: Date; // registration date created_at: Date; // registration date
verified: boolean; // if the user is offically verified verified: boolean; // if the user is offically verified
email?: string; // email of the user email: string | null; // email of the user
flags: bigint; // UserFlags flags: bigint; // UserFlags
public_flags: bigint; public_flags: bigint;
user_settings: UserSettings; user_settings: UserSettings;
@ -57,7 +57,7 @@ export interface PublicUser {
id: string; id: string;
discriminator: string; discriminator: string;
username: string; username: string;
avatar?: string; avatar: string | null;
public_flags: bigint; public_flags: bigint;
} }