getMemberOrNull

abstract suspend fun getMemberOrNull(guildId: Snowflake, userId: Snowflake): Member?(source)

Requests the Member with the given userId in the Guild wit the given guildId, returns null when the member isn't present.

Throws

if something went wrong while retrieving the member.