ApiResponse

@Serializable
data class ApiResponse<T>(val status: ResponseStatus, val retcode: Int, val data: T? = null, val message: String? = null, val wording: String? = null, val echo: JsonElement? = null)

Generic API response envelope for OneBot V11 actions.

Constructors

Link copied to clipboard
constructor(status: ResponseStatus, retcode: Int, data: T? = null, message: String? = null, wording: String? = null, echo: JsonElement? = null)

Properties

Link copied to clipboard
val data: T? = null
Link copied to clipboard
val echo: JsonElement? = null
Link copied to clipboard
val message: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val wording: String? = null