awaitMessage

inline suspend fun EventWaiter.awaitMessage(channel: MessageChannel, author: UserSnowflake? = null, crossinline filter: (Message) -> Boolean = { true }): Message(source)

Suspends until a Message from the author satisfying the filter is received on any shard, then returns it.

If you wish to use a timeout with it, you can use withTimeoutOrNull.

Parameters

filter

Additional conditions to satisfy before returning the message