From e4fa2a3ec343a2d97d00e6b3af1b38b5cd4abc28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Susa=C3=B1a?= Date: Mon, 7 Nov 2022 12:14:46 -0500 Subject: [PATCH] feat: guild locales in Interactions (#125) * fix * s --- packages/core/src/structures/interactions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/structures/interactions.ts b/packages/core/src/structures/interactions.ts index 6e2d8b7..8e1e983 100644 --- a/packages/core/src/structures/interactions.ts +++ b/packages/core/src/structures/interactions.ts @@ -82,6 +82,7 @@ export abstract class BaseInteraction implements Model { this.version = data.version; this.locale = data.locale as Locales; + this.guildLocales = data.guild_locale as Locales; const perms = data.app_permissions; @@ -117,6 +118,7 @@ export abstract class BaseInteraction implements Model { // must be implemented locale: Locales; + guildLocales: Locales; // readonly property according to docs readonly version: 1; @@ -553,6 +555,7 @@ export class PingInteraction extends BaseInteraction implements Model { commandType: ApplicationCommandTypes; commandGuildId?: Snowflake; override locale = undefined as never; + override guildLocales = undefined as never; async pong(): Promise { await this.session.rest.post(