Skip to content

Commit

Permalink
remove User#locale (#4932)
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 authored Nov 22, 2020
1 parent 8c8883e commit 6f30763
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
9 changes: 0 additions & 9 deletions src/structures/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class User extends Base {
this.id = data.id;

this.system = null;
this.locale = null;
this.flags = null;

this._patch(data);
Expand Down Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,6 @@ declare module 'discord.js' {
public flags: Readonly<UserFlags> | null;
public id: Snowflake;
public lastMessageID: Snowflake | null;
public locale: string | null;
public readonly partial: false;
public readonly presence: Presence;
public system: boolean | null;
Expand Down Expand Up @@ -3054,11 +3053,9 @@ declare module 'discord.js' {

type PartialTypes = 'USER' | 'CHANNEL' | 'GUILD_MEMBER' | 'MESSAGE' | 'REACTION';

interface PartialUser
extends Omit<Partialize<User, 'bot' | 'flags' | 'locale' | 'system' | 'tag' | 'username'>, 'deleted'> {
interface PartialUser extends Omit<Partialize<User, 'bot' | 'flags' | 'system' | 'tag' | 'username'>, 'deleted'> {
bot: User['bot'];
flags: User['flags'];
locale: User['locale'];
system: User['system'];
readonly tag: null;
username: null;
Expand Down

0 comments on commit 6f30763

Please sign in to comment.