diff --git a/protocol/src/commonMain/kotlin/com/github/topi314/lavaqueue/protocol/messages.kt b/protocol/src/commonMain/kotlin/com/github/topi314/lavaqueue/protocol/messages.kt index 0963be7..0025b21 100644 --- a/protocol/src/commonMain/kotlin/com/github/topi314/lavaqueue/protocol/messages.kt +++ b/protocol/src/commonMain/kotlin/com/github/topi314/lavaqueue/protocol/messages.kt @@ -6,9 +6,15 @@ import kotlinx.serialization.Serializable @SerialName("ready") @Serializable -data class QueueEndEvent( +@Suppress("DataClassPrivateConstructor") +data class QueueEndEvent private constructor( + val op: Message.Op, + val type: String, val guildId: String ) { - val op: Message.Op = Message.Op.Event - val type: String = "QueueEndEvent" + constructor(guildId: String) : this( + Message.Op.Event, + "QueueEndEvent", + guildId, + ) } \ No newline at end of file