From 6f3076325ebcf5c680b8915b78d2fb0cbf192413 Mon Sep 17 00:00:00 2001 From: Advaith Date: Sun, 22 Nov 2020 10:39:06 -0800 Subject: [PATCH] remove User#locale (#4932) --- src/structures/User.js | 9 --------- typings/index.d.ts | 5 +---- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/structures/User.js b/src/structures/User.js index d2766f1c8..d7ebe03f0 100644 --- a/src/structures/User.js +++ b/src/structures/User.js @@ -28,7 +28,6 @@ class User extends Base { this.id = data.id; this.system = null; - this.locale = null; this.flags = null; this._patch(data); @@ -81,14 +80,6 @@ class User extends Base { this.system = Boolean(data.system); } - if ('locale' in data) { - /** - * The locale of the user's client (ISO 639-1) - * @type {?string} - */ - this.locale = data.locale; - } - if ('public_flags' in data) { /** * The flags for this user diff --git a/typings/index.d.ts b/typings/index.d.ts index 0d90d40e3..fe4a07e7d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1528,7 +1528,6 @@ declare module 'discord.js' { public flags: Readonly | null; public id: Snowflake; public lastMessageID: Snowflake | null; - public locale: string | null; public readonly partial: false; public readonly presence: Presence; public system: boolean | null; @@ -3054,11 +3053,9 @@ declare module 'discord.js' { type PartialTypes = 'USER' | 'CHANNEL' | 'GUILD_MEMBER' | 'MESSAGE' | 'REACTION'; - interface PartialUser - extends Omit, 'deleted'> { + interface PartialUser extends Omit, 'deleted'> { bot: User['bot']; flags: User['flags']; - locale: User['locale']; system: User['system']; readonly tag: null; username: null;