asRole

open suspend override fun asRole(): Role(source)

Requests to get the this behavior as a Role if it's not an instance of a Role.

Throws

RequestException

if anything went wrong during the request.

EntityNotFoundException

if the user wasn't present.