topRole

fun topRole(guildID: Snowflake): suspend (User) -> Role?

Create a lambda that returns a user's top role, if they're a member of the guild corresponding to the given ID.

Return

Lambda returning the user's top role, or null if they're not on the guild or have no roles.

Parameters

guildID

Guild ID to check against.