From dd99e47c894baea92709762e3120751395bbf4a6 Mon Sep 17 00:00:00 2001 From: Mega Date: Tue, 20 Jun 2023 16:44:52 +0300 Subject: [PATCH 1/3] Added Pronouns support Updated ClientUser.js + Pronouns Support + setPronouns Method --- src/structures/ClientUser.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index d5b43c6..9d6688d 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -87,6 +87,9 @@ class ClientUser extends User { if ('bio' in data) { this.bio = data.bio; } + if ('pronouns' in data) { + this.pronouns = data.pronouns; + } if (!this.friendNicknames?.size) { /** @@ -611,6 +614,15 @@ class ClientUser extends User { setGlobalName(globalName = '') { return this.edit({ global_name: globalName }); } + + /** + * Set pronouns + * @param {string | null} bio of pronouns + * @returns {Promise} + */ + setPronouns(pronouns = '') { + return this.edit({ pronouns }); + } } module.exports = ClientUser; From 79082bc0372def86299709f1cb7785fadc908996 Mon Sep 17 00:00:00 2001 From: Mega Date: Tue, 20 Jun 2023 16:50:30 +0300 Subject: [PATCH 2/3] Update ClientUser.js --- src/structures/ClientUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 9d6688d..a7bfb16 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -617,7 +617,7 @@ class ClientUser extends User { /** * Set pronouns - * @param {string | null} bio of pronouns + * @param {string | null} of pronouns * @returns {Promise} */ setPronouns(pronouns = '') { From ba98c1bdaae6ce902432fc920614b48b87fc8340 Mon Sep 17 00:00:00 2001 From: Mega Date: Tue, 20 Jun 2023 16:52:54 +0300 Subject: [PATCH 3/3] Update ClientUser.js --- src/structures/ClientUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index a7bfb16..a1a41b5 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -617,7 +617,7 @@ class ClientUser extends User { /** * Set pronouns - * @param {string | null} of pronouns + * @param {string | null} pronouns * @returns {Promise} */ setPronouns(pronouns = '') {