waitForMessage
suspend fun waitForMessage(timeout: Long, filter: suspend MessageCreateEvent.() -> Boolean = { true }): Message?
Wait for a message, using the given timeout (in milliseconds ) and filter function.
Will return null if no message is found before the timeout.
suspend fun UserBehavior.waitForMessage(timeout: Long, filter: suspend MessageCreateEvent.() -> Boolean = { true }): Message?
Wait for a message from a user, using the given timeout (in milliseconds) and extra filter function.
Will return null if no message is found before the timeout.
suspend fun MessageChannelBehavior.waitForMessage(timeout: Long, filter: suspend MessageCreateEvent.() -> Boolean = { true }): Message?
Wait for a message in this channel, using the given timeout (in milliseconds) and extra filter function.
Will return null if no message is found before the timeout.