From 70c4b2dfadec0b10d85605bc1bb6f84e7a1bde45 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Fri, 8 Nov 2024 22:04:08 +0100 Subject: [PATCH] Fix invalid deserialization of VoiceChannelEffect --- gateway/src/commonMain/kotlin/Event.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gateway/src/commonMain/kotlin/Event.kt b/gateway/src/commonMain/kotlin/Event.kt index e2ec3f2f018..e87a0d3da39 100644 --- a/gateway/src/commonMain/kotlin/Event.kt +++ b/gateway/src/commonMain/kotlin/Event.kt @@ -698,13 +698,20 @@ public data class DeletedSound( @Serializable public data class VoiceChannelEffect( + @SerialName("channel_id") val channelId: Snowflake, + @SerialName("guild_id") val guildId: Snowflake, + @SerialName("user_id") val userId: Snowflake, val emoji: Optional = Optional.Missing(), + @SerialName("animation_type") val animationType: Optional = Optional.Missing(), + @SerialName("animation_id") val animationId: OptionalInt = OptionalInt.Missing, + @SerialName("sound_id") val soundId: OptionalSnowflake = OptionalSnowflake.Missing, + @SerialName("sound_volume") val soundVolume: OptionalDouble = OptionalDouble.Missing )