inCategory

suspend fun <T : Event> CheckContext<T>.inCategory(builder: suspend (T) -> CategoryBehavior)

Check asserting that an Event fired within a given channel category.

Only events that can reasonably be associated with a single channel are supported. Please raise an issue if an event you expected to be supported, isn't.

Parameters

builder

Lambda returning the category to compare to.


suspend fun <T : Event> CheckContext<T>.inCategory(id: Snowflake)

Check asserting that an Event fired within a given channel category.

Only events that can reasonably be associated with a single channel are supported. Please raise an issue if an event you expected to be supported, isn't.

Parameters

id

Category snowflake to compare to.