Changed DeleteEvent

This commit is contained in:
Brage Skjønborg 2026-01-30 02:09:21 +01:00
parent bab434a834
commit 9d943b2df3

View File

@ -39,9 +39,10 @@ inline fun <reified T> Event.requireAs(): T {
return this as? T ?: throw IllegalArgumentException("Expected ${T::class.java.name}, got ${this::class.java.name}") return this as? T ?: throw IllegalArgumentException("Expected ${T::class.java.name}, got ${this::class.java.name}")
} }
abstract class DeleteEvent: Event() { abstract class DeleteEvent(
open lateinit var deletedEventId: UUID open val deletedEventId: UUID
} ) : Event()