KookChatCapableChannel
代表一个 KOOK 中可以发送消息(有聊天能力的)的频道。
Since
4.2.0
Author
ForteScarlet
See also
Inheritors
Inherited properties
Functions
Link copied to clipboard
发送纯文本消息。
open suspend fun send(type: Int, content: String, quote: ID?, nonce: String?, tempTargetId: ID?): KookMessageReceipt
根据 SendChannelMessageApi api 构建并发送消息。
发送消息。
open suspend fun send(text: String, quote: ID? = null, tempTargetId: ID? = null): KookMessageReceipt
发送纯文本消息,并指定 tempTargetId.
abstract suspend fun send(message: Message, quote: ID? = null, tempTargetId: ID? = null): KookMessageReceipt
abstract suspend fun send(message: MessageContent, quote: ID? = null, tempTargetId: ID? = null): KookMessageReceipt
发送消息,并可选的指定 quote 和 tempTargetId.
Inherited functions
Link copied to clipboard
使用 DSL 直接配置 KookChannelUpdater.builder 并更新频道信息。
Link copied to clipboard
获取一个频道更新器。 提供需要修改的内容,然后使用 KookChannelUpdater.execute 更新频道数据。