fix(Guild): preferredLocale to always be a string (#6402)

This commit is contained in:
Jiralite
2021-08-12 15:06:03 +01:00
committed by GitHub
parent 6342430073
commit 4a64662a7d
2 changed files with 2 additions and 2 deletions

View File

@@ -337,7 +337,7 @@ class Guild extends AnonymousGuild {
/**
* 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}
*/
this.preferredLocale = data.preferred_locale;

2
typings/index.d.ts vendored
View File

@@ -669,7 +669,7 @@ export class Guild extends AnonymousGuild {
public members: GuildMemberManager;
public mfaLevel: MFALevel;
public ownerId: Snowflake;
public preferredLocale?: string;
public preferredLocale: string;
public premiumSubscriptionCount: number | null;
public premiumTier: PremiumTier;
public presences: PresenceManager;