inGuild

suspend fun <T : Event> CheckContext<T>.inGuild(builder: suspend (T) -> GuildBehavior)

Check asserting that the guild an Event fired for is in a specific guild.

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

Parameters

builder

Lambda returning the guild to compare to.


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

Check asserting that the guild an Event fired for is in a specific guild.

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

Parameters

id

Guild snowflake to compare to.