mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
Merge pull request #1 from luth31/fix-strictcheck
Fix compilation with strictNullChecks: true
This commit is contained in:
commit
96e5ea655d
@ -53,7 +53,7 @@ export interface ReadyEventData {
|
||||
flags: bigint;
|
||||
mfa_enabled: boolean;
|
||||
nsfw_allowed: boolean;
|
||||
phone: string;
|
||||
phone: string | null;
|
||||
premium: boolean;
|
||||
premium_type: number;
|
||||
verified: boolean;
|
||||
|
@ -16,7 +16,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
|
||||
phone?: string; // phone number of the 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
|
||||
premium: boolean; // if user bought nitro
|
||||
@ -27,7 +27,7 @@ export interface User {
|
||||
mfa_enabled: boolean; // if multi factor authentication is enabled
|
||||
created_at: Date; // registration date
|
||||
verified: boolean; // if the user is offically verified
|
||||
email?: string; // email of the user
|
||||
email: string; // email of the user
|
||||
flags: bigint; // UserFlags
|
||||
public_flags: bigint;
|
||||
user_settings: UserSettings;
|
||||
@ -57,7 +57,7 @@ export interface PublicUser {
|
||||
id: string;
|
||||
discriminator: string;
|
||||
username: string;
|
||||
avatar?: string;
|
||||
avatar: string | null;
|
||||
public_flags: bigint;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user