refactor(User): set accentColor and banner to undefined when not yet received (#6721)

Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com>
This commit is contained in:
Rodry
2021-10-04 23:16:59 +01:00
committed by GitHub
parent d0025beb7b
commit ba93e85d0d
3 changed files with 14 additions and 11 deletions

6
typings/index.d.ts vendored
View File

@@ -2039,9 +2039,9 @@ export class User extends PartialTextBasedChannel(Base) {
protected constructor(client: Client, data: RawUserData);
private _equals(user: APIUser): boolean;
public accentColor: number | null;
public accentColor: number | null | undefined;
public avatar: string | null;
public banner: string | null;
public banner: string | null | undefined;
public bot: boolean;
public readonly createdAt: Date;
public readonly createdTimestamp: number;
@@ -2049,7 +2049,7 @@ export class User extends PartialTextBasedChannel(Base) {
public readonly defaultAvatarURL: string;
public readonly dmChannel: DMChannel | null;
public flags: Readonly<UserFlags> | null;
public readonly hexAccentColor: HexColorString | null;
public readonly hexAccentColor: HexColorString | null | undefined;
public id: Snowflake;
public readonly partial: false;
public system: boolean;