From bce9a8af1b90dcfcf607e87e61bedfdf7eae3001 Mon Sep 17 00:00:00 2001 From: iDroid Date: Sun, 10 Jun 2018 17:58:00 +0200 Subject: [PATCH] feat(User): add locale property (#2571) --- src/structures/User.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/structures/User.js b/src/structures/User.js index 674583efb..da36de7bb 100644 --- a/src/structures/User.js +++ b/src/structures/User.js @@ -52,6 +52,13 @@ class User extends Base { */ 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 * @type {?Snowflake}