mirror of
https://github.com/danbulant/discord.js
synced 2026-06-06 00:02:52 +00:00
feat(User): add locale property (#2571)
This commit is contained in:
parent
99bd355522
commit
bce9a8af1b
1 changed files with 7 additions and 0 deletions
|
|
@ -52,6 +52,13 @@ class User extends Base {
|
||||||
*/
|
*/
|
||||||
if (typeof data.avatar !== 'undefined') this.avatar = data.avatar;
|
if (typeof data.avatar !== 'undefined') this.avatar = data.avatar;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The locale of the user's client (ISO 639-1)
|
||||||
|
* @type {?string}
|
||||||
|
* @name User#locale
|
||||||
|
*/
|
||||||
|
if (data.locale) this.locale = data.locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ID of the last message sent by the user, if one was sent
|
* The ID of the last message sent by the user, if one was sent
|
||||||
* @type {?Snowflake}
|
* @type {?Snowflake}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue