mirai-core / net.mamoe.mirai.message / nextMessageAsync

nextMessageAsync

fun <reified P : ContactMessage> P.nextMessageAsync(timeoutMillis: Long = -1, coroutineContext: CoroutineContext = EmptyCoroutineContext): Deferred<MessageChain>

Exceptions

TimeoutCancellationException -

See Also

nextMessage

inline fun <reified P : ContactMessage> P.nextMessageAsync(timeoutMillis: Long = -1, coroutineContext: CoroutineContext = EmptyCoroutineContext, crossinline filter: suspend P.(P) -> Boolean): Deferred<MessageChain>

See Also

nextMessage