Package net.mamoe.mirai.message
Types
Link copied to clipboard
open class MessageReceipt<out C : Contact> @MiraiInternalApi constructor(val source: OnlineMessageSource.Outgoing, val target: C)
Content copied to clipboard
发送消息后得到的回执. 可用于撤回, 引用回复等.
Link copied to clipboard
消息序列化器.
Functions
Link copied to clipboard
判断两个 MessageEvent 的 MessageEvent.sender 和 MessageEvent.subject 是否相同
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
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 }): <ERROR CLASS><MessageChain>
Content copied to clipboard
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
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 }): <ERROR CLASS><MessageChain?>
Content copied to clipboard
nextMessageOrNull 的异步版本