ApiPermission

class ApiPermission @ApiModelConstructor constructor(val path: String, val method: String, val desc: String, val authStatus: Int)(source)

接口权限对象

Constructors

Link copied to clipboard
constructor(path: String, method: String, desc: String, authStatus: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "auth_status")
val authStatus: Int

授权状态,auth_stats 为 1 时已授权

Link copied to clipboard

API 接口名称,例如 获取频道信

Link copied to clipboard

请求方法,例如 GET

Link copied to clipboard

API 接口名,例如 /guilds/{guild_id}/members/{user_id}

Inherited properties

Link copied to clipboard

Functions

Link copied to clipboard
operator fun component1(): String
Link copied to clipboard
operator fun component2(): String
Link copied to clipboard
operator fun component3(): String
Link copied to clipboard
operator fun component4(): Int
Link copied to clipboard
fun copy(path: String = this.path, method: String = this.method, desc: String = this.desc, authStatus: Int = this.authStatus): ApiPermission
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String