From dd99e47c894baea92709762e3120751395bbf4a6 Mon Sep 17 00:00:00 2001 From: Mega Date: Tue, 20 Jun 2023 16:44:52 +0300 Subject: [PATCH] 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;