Inherited properties

Link copied to clipboard
open override val method: String

请求方法,例如 GET(全大写)

Link copied to clipboard
open override val path: String

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

Functions

Link copied to clipboard
fun create(channelId: String, title: String, content: String, format: Int): PublishThreadApi
fun create(channelId: String, title: String, content: String, format: ThreadPublishFormat): PublishThreadApi
Link copied to clipboard
fun createHtml(channelId: String, title: String, content: String): PublishThreadApi

构造 PublishThreadApi,并使用 ThreadPublishFormat.HTML 文本格式。

Link copied to clipboard
fun createJSON(channelId: String, title: String, content: String): PublishThreadApi

构造 PublishThreadApi,并使用 ThreadPublishFormat.JSON 文本格式。

Link copied to clipboard
fun createMarkdown(channelId: String, title: String, content: String): PublishThreadApi

构造 PublishThreadApi,并使用 ThreadPublishFormat.MARKDOWN 文本格式。

Link copied to clipboard
fun createText(channelId: String, title: String, content: String): PublishThreadApi

构造 PublishThreadApi,并使用 ThreadPublishFormat.TEXT 文本格式。

Inherited functions

Link copied to clipboard

用于判断两个 ApiDescription 中的两个属性是否相同。

Link copied to clipboard
open override fun toString(): String