mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 19:50:55 +00:00
remove User#locale (#4932)
This commit is contained in:
parent
8c8883ef26
commit
6f3076325e
2 changed files with 1 additions and 13 deletions
|
|
@ -28,7 +28,6 @@ class User extends Base {
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
|
|
||||||
this.system = null;
|
this.system = null;
|
||||||
this.locale = null;
|
|
||||||
this.flags = null;
|
this.flags = null;
|
||||||
|
|
||||||
this._patch(data);
|
this._patch(data);
|
||||||
|
|
@ -81,14 +80,6 @@ class User extends Base {
|
||||||
this.system = Boolean(data.system);
|
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) {
|
if ('public_flags' in data) {
|
||||||
/**
|
/**
|
||||||
* The flags for this user
|
* The flags for this user
|
||||||
|
|
|
||||||
5
typings/index.d.ts
vendored
5
typings/index.d.ts
vendored
|
|
@ -1528,7 +1528,6 @@ declare module 'discord.js' {
|
||||||
public flags: Readonly<UserFlags> | null;
|
public flags: Readonly<UserFlags> | null;
|
||||||
public id: Snowflake;
|
public id: Snowflake;
|
||||||
public lastMessageID: Snowflake | null;
|
public lastMessageID: Snowflake | null;
|
||||||
public locale: string | null;
|
|
||||||
public readonly partial: false;
|
public readonly partial: false;
|
||||||
public readonly presence: Presence;
|
public readonly presence: Presence;
|
||||||
public system: boolean | null;
|
public system: boolean | null;
|
||||||
|
|
@ -3054,11 +3053,9 @@ declare module 'discord.js' {
|
||||||
|
|
||||||
type PartialTypes = 'USER' | 'CHANNEL' | 'GUILD_MEMBER' | 'MESSAGE' | 'REACTION';
|
type PartialTypes = 'USER' | 'CHANNEL' | 'GUILD_MEMBER' | 'MESSAGE' | 'REACTION';
|
||||||
|
|
||||||
interface PartialUser
|
interface PartialUser extends Omit<Partialize<User, 'bot' | 'flags' | 'system' | 'tag' | 'username'>, 'deleted'> {
|
||||||
extends Omit<Partialize<User, 'bot' | 'flags' | 'locale' | 'system' | 'tag' | 'username'>, 'deleted'> {
|
|
||||||
bot: User['bot'];
|
bot: User['bot'];
|
||||||
flags: User['flags'];
|
flags: User['flags'];
|
||||||
locale: User['locale'];
|
|
||||||
system: User['system'];
|
system: User['system'];
|
||||||
readonly tag: null;
|
readonly tag: null;
|
||||||
username: null;
|
username: null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue