mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(event): enrich necessary attributes in InteractionEvent.Reply
This commit is contained in:
@@ -37,7 +37,6 @@ sealed class InteractionEvent {
|
||||
}
|
||||
|
||||
enum class EventStatus {
|
||||
START,
|
||||
RUNNING,
|
||||
ERROR,
|
||||
DONE
|
||||
@@ -45,12 +44,20 @@ sealed class InteractionEvent {
|
||||
|
||||
}
|
||||
|
||||
data class Reply(
|
||||
data class Reply @JvmOverloads constructor(
|
||||
override val status: EventStatus,
|
||||
override val target: String,
|
||||
val content: String,
|
||||
val mode: ContentMode = ContentMode.REPLACE,
|
||||
val seq: Long? = null,
|
||||
val done: Boolean = false
|
||||
) : InteractionEvent() {
|
||||
override val event = Event.REPLY
|
||||
|
||||
enum class ContentMode {
|
||||
APPEND,
|
||||
REPLACE
|
||||
}
|
||||
}
|
||||
|
||||
data class Module(
|
||||
|
||||
Reference in New Issue
Block a user