From d0c9ea9196a169c370751b4cbe7c37ca6587baca Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Thu, 12 Aug 2021 13:30:29 +0100 Subject: [PATCH 1/2] types: Always string --- typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index a5ca9b5aa335..c919b4cccd62 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -667,7 +667,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; From 9264a18c4624861e7add9a5ecc428f63b338a1f8 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Thu, 12 Aug 2021 13:31:16 +0100 Subject: [PATCH 2/2] docs(Guild): Prefer is always a string --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 88e3a55309a5..12cb4fd1c3ce 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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;