ApiResponse

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

Generic API response envelope for OneBot actions.

Constructors

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

Properties

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