Skip to content

Commit

Permalink
Fix invalid deserialization of VoiceChannelEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 8, 2024
1 parent 4056cfa commit 70c4b2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gateway/src/commonMain/kotlin/Event.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<DiscordEmoji?> = Optional.Missing(),
@SerialName("animation_type")
val animationType: Optional<AnimationType > = 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
)

Expand Down

0 comments on commit 70c4b2d

Please sign in to comment.