From d567e98ac26afc413570f84296bb9b8fa2acedd7 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 25 Aug 2024 12:39:35 +0200 Subject: [PATCH] Fix failing tests --- .../resources/json/interaction/groupsubcommand.json | 3 ++- .../commonTest/resources/json/interaction/rootcommand.json | 3 ++- .../src/commonTest/resources/json/interaction/selectmenu.json | 3 ++- .../src/commonTest/resources/json/interaction/subcommand.json | 3 ++- .../kotlin/json/DispatchEventDeserializationTest.kt | 4 +++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/common/src/commonTest/resources/json/interaction/groupsubcommand.json b/common/src/commonTest/resources/json/interaction/groupsubcommand.json index 1e27103d55d..c7ed5b536c0 100644 --- a/common/src/commonTest/resources/json/interaction/groupsubcommand.json +++ b/common/src/commonTest/resources/json/interaction/groupsubcommand.json @@ -54,5 +54,6 @@ "application_id": "297153970613387264", "app_permissions": "2147483647", "locale": "de", - "guild_locale": "en-US" + "guild_locale": "en-US", + "authorizing_integration_owners": {"0": "0"} } diff --git a/common/src/commonTest/resources/json/interaction/rootcommand.json b/common/src/commonTest/resources/json/interaction/rootcommand.json index 9424de1ccbc..115402d881a 100644 --- a/common/src/commonTest/resources/json/interaction/rootcommand.json +++ b/common/src/commonTest/resources/json/interaction/rootcommand.json @@ -42,5 +42,6 @@ "application_id": "297153970613387264", "app_permissions": "2147483647", "locale": "de", - "guild_locale": "en-US" + "guild_locale": "en-US", + "authorizing_integration_owners": {"0": "0"} } diff --git a/common/src/commonTest/resources/json/interaction/selectmenu.json b/common/src/commonTest/resources/json/interaction/selectmenu.json index de514c5202d..b7fa443b0d2 100644 --- a/common/src/commonTest/resources/json/interaction/selectmenu.json +++ b/common/src/commonTest/resources/json/interaction/selectmenu.json @@ -122,5 +122,6 @@ }, "token": "UNIQUE_TOKEN", "type": 3, - "version": 1 + "version": 1, + "authorizing_integration_owners": {"0": "0"} } diff --git a/common/src/commonTest/resources/json/interaction/subcommand.json b/common/src/commonTest/resources/json/interaction/subcommand.json index 7165eb0220e..8198eb8dd7f 100644 --- a/common/src/commonTest/resources/json/interaction/subcommand.json +++ b/common/src/commonTest/resources/json/interaction/subcommand.json @@ -48,5 +48,6 @@ "application_id": "297153970613387264", "app_permissions": "2147483647", "locale": "de", - "guild_locale": "en-US" + "guild_locale": "en-US", + "authorizing_integration_owners": {"0": "0"} } diff --git a/gateway/src/commonTest/kotlin/json/DispatchEventDeserializationTest.kt b/gateway/src/commonTest/kotlin/json/DispatchEventDeserializationTest.kt index ae7ab0cd696..1d73f840b34 100644 --- a/gateway/src/commonTest/kotlin/json/DispatchEventDeserializationTest.kt +++ b/gateway/src/commonTest/kotlin/json/DispatchEventDeserializationTest.kt @@ -548,9 +548,11 @@ class DispatchEventDeserializationTest { type = InteractionType.Ping, data = InteractionCallbackData(), token = "hunter2", + appPermissions = Permissions(), + authorizingIntegrationOwners = mapOf(ApplicationIntegrationType.GuildInstall to Snowflake.min), version = 1, ), - json = """{"id":"0","application_id":"0","type":1,"data":{},"token":"hunter2","version":1}""", + json = """{"id":"0","application_id":"0","type":1,"data":{},"token":"hunter2","version":1, "app_permissions":"0", "authorizing_integration_owners": {"0": 0}}""", ) @Test