GuildRoleCreateRequest

class GuildRoleCreateRequest(guildId: ID, name: String? = null) : KookPostRequest<GuildRoleCreated>

创建服务器角色

guild-role/create

Author

ForteScarlet

Constructors

Link copied to clipboard
fun GuildRoleCreateRequest(guildId: ID, name: String? = null)

Types

Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun request(client: HttpClient, authorization: String, decoder: Json = DEFAULT_JSON, postChecker: suspend (HttpResponse) -> Unit = {}): ApiResult

通过 client 执行网络请求并尝试得到结果。

Link copied to clipboard
open fun requestBlocking(client: HttpClient, authorization: String, decoder: Json = DEFAULT_JSON, postChecker: Consumer<HttpResponse> = defaultRequestPostChecker): ApiResult

通过 client 执行网络请求并尝试得到结果。

Link copied to clipboard
open suspend fun requestData(client: HttpClient, authorization: String, decoder: Json = DEFAULT_JSON): GuildRoleCreated

通过 client 执行网络请求并尝试得到结果。

Link copied to clipboard
open fun requestDataBlocking(client: HttpClient, authorization: String, decoder: Json = DEFAULT_JSON): GuildRoleCreated

通过 client 执行网络请求并尝试得到结果。

Properties

Link copied to clipboard
open val body: Any?

可以提供一个body实例。

Link copied to clipboard
open override val method: HttpMethod

此请求的 method.

Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<out GuildRoleCreated>

得到响应值的反序列化器.

Link copied to clipboard
open override val url: Url

通过 apiPathsbuildParameters 懒构建 url 属性。