mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +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`
|
||||
* @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
2
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user