diff --git a/README.md b/README.md index 3d30aba..af66ade 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,6 @@

-## Words from the Developer -- I'm on vacation so the library won't update much :3 - ## About Welcome to `discord.js-selfbot-v13@v2.14`, based on `discord.js@13.16` diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 32f6c29..2ca45bb 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -48,6 +48,7 @@ class ClientUser extends User { */ this.nitroType = nitro ?? `UNKNOWN_TYPE_${data.premium_type}`; } + if ('purchased_flags' in data) { /** * Purchased state of the client user. @@ -55,6 +56,7 @@ class ClientUser extends User { */ this.purchasedFlags = new PurchasedFlags(data.purchased_flags || 0); } + if ('premium_usage_flags' in data) { /** * Premium usage state of the client user. @@ -62,7 +64,7 @@ class ClientUser extends User { */ this.premiumUsageFlags = new PremiumUsageFlags(data.premium_usage_flags || 0); } - // Key: premium = boolean; + if ('phone' in data) { /** * Phone number of the client user. @@ -70,6 +72,7 @@ class ClientUser extends User { */ this.phoneNumber = data.phone; } + if ('nsfw_allowed' in data) { /** * Whether or not the client user is allowed to send NSFW messages [iOS device]. @@ -77,6 +80,7 @@ class ClientUser extends User { */ this.nsfwAllowed = data.nsfw_allowed; } + if ('email' in data) { /** * Email address of the client user. @@ -84,9 +88,11 @@ class ClientUser extends User { */ this.emailAddress = data.email; } + if ('bio' in data) { this.bio = data.bio; } + if ('pronouns' in data) { this.pronouns = data.pronouns; } diff --git a/src/structures/User.js b/src/structures/User.js index 1aa3638..5914ae7 100644 --- a/src/structures/User.js +++ b/src/structures/User.js @@ -300,6 +300,8 @@ class User extends Base { * @type {?Array} */ this.themeColors = data.user_profile.theme_colors; + + this.pronouns = data.user_profile.pronouns; } if ('guild_member_profile' in data && 'guild_member' in data) {