Types

Link copied to clipboard
@Serializable
data class ChannelMessageEvent(val id: String, val time: Long, val self: BotSelf, val messageId: String, val userId: String, val guildId: String, val channelId: String, val message: List<Segment>, val altMessage: String? = null, val subType: String = "", val type: String = "message", val detailType: String = "channel") : OneBotEvent
Link copied to clipboard
@Serializable
data class ConnectMetaEvent(val id: String, val time: Long, val self: BotSelf, val version: VersionInfo, val subType: String = "", val type: String = "meta", val detailType: String = "connect") : OneBotEvent
Link copied to clipboard
@Serializable
data class FriendDecreaseNoticeEvent(val id: String, val time: Long, val self: BotSelf, val userId: String, val subType: String = "", val type: String = "notice", val detailType: String = "friend_decrease") : OneBotEvent
Link copied to clipboard
@Serializable
data class FriendIncreaseNoticeEvent(val id: String, val time: Long, val self: BotSelf, val userId: String, val subType: String = "", val type: String = "notice", val detailType: String = "friend_increase") : OneBotEvent
Link copied to clipboard
@Serializable
data class GroupMemberDecreaseNoticeEvent(val id: String, val time: Long, val self: BotSelf, val groupId: String, val userId: String, val operatorId: String, val subType: String, val type: String = "notice", val detailType: String = "group_member_decrease") : OneBotEvent
Link copied to clipboard
@Serializable
data class GroupMemberIncreaseNoticeEvent(val id: String, val time: Long, val self: BotSelf, val groupId: String, val userId: String, val operatorId: String, val subType: String, val type: String = "notice", val detailType: String = "group_member_increase") : OneBotEvent
Link copied to clipboard
@Serializable
data class GroupMessageEvent(val id: String, val time: Long, val self: BotSelf, val messageId: String, val userId: String, val groupId: String, val message: List<Segment>, val altMessage: String? = null, val subType: String = "", val type: String = "message", val detailType: String = "group") : OneBotEvent
Link copied to clipboard
@Serializable
data class HeartbeatMetaEvent(val id: String, val time: Long, val self: BotSelf, val interval: Int, val subType: String = "", val type: String = "meta", val detailType: String = "heartbeat") : OneBotEvent
Link copied to clipboard
@Serializable
data class PrivateMessageEvent(val id: String, val time: Long, val self: BotSelf, val messageId: String, val userId: String, val message: List<Segment>, val altMessage: String? = null, val subType: String = "", val type: String = "message", val detailType: String = "private") : OneBotEvent
Link copied to clipboard
@Serializable
data class RequestEvent(val id: String, val time: Long, val self: BotSelf, val subType: String = "", val type: String = "request", val detailType: String, val userId: String? = null, val groupId: String? = null) : OneBotEvent
Link copied to clipboard
@Serializable
data class StatusUpdateMetaEvent(val id: String, val time: Long, val self: BotSelf, val status: StatusInfo, val subType: String = "", val type: String = "meta", val detailType: String = "status_update") : OneBotEvent
Link copied to clipboard
@Serializable
data class UnknownEvent(val id: String, val time: Long, val self: BotSelf, val subType: String = "", val type: String, val detailType: String) : OneBotEvent

Properties

Link copied to clipboard
abstract val detailType: String
Link copied to clipboard
abstract val id: String
Link copied to clipboard
abstract val self: BotSelf
Link copied to clipboard
abstract val subType: String
Link copied to clipboard
abstract val time: Long
Link copied to clipboard
abstract val type: String