getRoleOrNull

open suspend fun getRoleOrNull(roleId: Snowflake): Role?(source)

Requests to get the Role represented by the roleId, returns null if the Role isn't present.

Throws

if anything went wrong during the request.