Package net.mamoe.mirai.message
Types
MessageReceipt
Link copied to clipboard
open class MessageReceipt<out C : Contact> @MiraiInternalApi constructor(source: OnlineMessageSource.Outgoing, target: C)
Content copied to clipboard
发送消息后得到的回执. 可用于撤回, 引用回复等.
MessageSerializers
Link copied to clipboard
消息序列化器.
Functions
isContextIdenticalWith
Link copied to clipboard
判断两个 MessageEvent 的 MessageEvent.sender 和 MessageEvent.subject 是否相同
nextMessage
Link copied to clipboard
inline suspend fun <P : MessageEvent> P.nextMessage(timeoutMillis: Long = -1, priority: EventPriority = EventPriority.MONITOR, noinline filter: suspend P.(P) -> Boolean = { true }): MessageChain
Content copied to clipboard
挂起当前协程, 等待下一条 MessageEvent.sender 和 MessageEvent.subject 与 this 相同且通过 筛选 的 MessageEvent
nextMessageAsync
Link copied to clipboard
inline fun <P : MessageEvent> P.nextMessageAsync(timeoutMillis: Long = -1, coroutineContext: CoroutineContext = EmptyCoroutineContext, priority: EventPriority = EventPriority.MONITOR, noinline filter: suspend P.(P) -> Boolean = { true }): Deferred<MessageChain>
Content copied to clipboard
nextMessageOrNull
Link copied to clipboard
inline suspend fun <P : MessageEvent> P.nextMessageOrNull(timeoutMillis: Long, priority: EventPriority = EventPriority.MONITOR, noinline filter: suspend P.(P) -> Boolean = { true }): MessageChain?
Content copied to clipboard
挂起当前协程, 等待下一条 MessageEvent.sender 和 MessageEvent.subject 与 this 相同且通过 筛选 的 MessageEvent
nextMessageOrNullAsync
Link copied to clipboard
inline fun <P : MessageEvent> P.nextMessageOrNullAsync(timeoutMillis: Long, coroutineContext: CoroutineContext = EmptyCoroutineContext, priority: EventPriority = EventPriority.MONITOR, noinline filter: suspend P.(P) -> Boolean = { true }): Deferred<MessageChain?>
Content copied to clipboard
nextMessageOrNull 的异步版本
Properties
bot
Link copied to clipboard
sourceIds
Link copied to clipboard
sourceInternalIds
Link copied to clipboard
sourceMessage
Link copied to clipboard
sourceTime
Link copied to clipboard