getRole

open suspend fun getRole(guildId: Snowflake, roleId: Snowflake): Role(source)

Requests the Role with the given roleId in the Guild wit the given guildId.

Throws

if something went wrong while retrieving the role.

if the role was null.