Skip to content

Commit

Permalink
fix(Guild): preferredLocale to always be a string (#6402)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Aug 12, 2021
1 parent 6342430 commit 4a64662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/structures/Guild.js
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 4a64662

Please sign in to comment.