fix(ClientUser): Bio is null
Reported by Void.#0176
This commit is contained in:
parent
536c29f45c
commit
d024ec5bf4
@ -38,12 +38,12 @@ class ClientUser extends User {
|
|||||||
|
|
||||||
// Todo: Add (Selfbot)
|
// Todo: Add (Selfbot)
|
||||||
if ('premium_type' in data) {
|
if ('premium_type' in data) {
|
||||||
const nitro = NitroType[data.premium_type];
|
const nitro = NitroType[data.premium_type ?? 0];
|
||||||
/**
|
/**
|
||||||
* Nitro type of the client user.
|
* Nitro type of the client user.
|
||||||
* @type {NitroType}
|
* @type {NitroType}
|
||||||
*/
|
*/
|
||||||
this.nitroType = nitro ?? `UNKNOWN_${data.premium_type}`;
|
this.nitroType = nitro ?? `UNKNOWN_TYPE_${data.premium_type}`;
|
||||||
}
|
}
|
||||||
if ('purchased_flags' in data) {
|
if ('purchased_flags' in data) {
|
||||||
/**
|
/**
|
||||||
@ -74,6 +74,9 @@ class ClientUser extends User {
|
|||||||
*/
|
*/
|
||||||
this.emailAddress = data.email;
|
this.emailAddress = data.email;
|
||||||
}
|
}
|
||||||
|
if ('bio' in data) {
|
||||||
|
this.bio = data.bio;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user