commit
a176df7e20
@ -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} pronouns
|
||||
* @returns {Promise<ClientUser>}
|
||||
*/
|
||||
setPronouns(pronouns = '') {
|
||||
return this.edit({ pronouns });
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ClientUser;
|
||||
|
Loading…
Reference in New Issue
Block a user