mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
fix(Guild): preferredLocale to always be a string (#6402)
This commit is contained in:
@@ -337,7 +337,7 @@ class Guild extends AnonymousGuild {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The preferred locale of the guild, defaults to `en-US`
|
* The preferred locale of the guild, defaults to `en-US`
|
||||||
* @type {?string}
|
* @type {string}
|
||||||
* @see {@link https://discord.com/developers/docs/dispatch/field-values#predefined-field-values-accepted-locales}
|
* @see {@link https://discord.com/developers/docs/dispatch/field-values#predefined-field-values-accepted-locales}
|
||||||
*/
|
*/
|
||||||
this.preferredLocale = data.preferred_locale;
|
this.preferredLocale = data.preferred_locale;
|
||||||
|
|||||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -669,7 +669,7 @@ export class Guild extends AnonymousGuild {
|
|||||||
public members: GuildMemberManager;
|
public members: GuildMemberManager;
|
||||||
public mfaLevel: MFALevel;
|
public mfaLevel: MFALevel;
|
||||||
public ownerId: Snowflake;
|
public ownerId: Snowflake;
|
||||||
public preferredLocale?: string;
|
public preferredLocale: string;
|
||||||
public premiumSubscriptionCount: number | null;
|
public premiumSubscriptionCount: number | null;
|
||||||
public premiumTier: PremiumTier;
|
public premiumTier: PremiumTier;
|
||||||
public presences: PresenceManager;
|
public presences: PresenceManager;
|
||||||
|
|||||||
Reference in New Issue
Block a user