RoleEvent

interface RoleEvent

Generic interface for custom events that can contain role behaviors. Mostly used by checks.

Properties

Link copied to clipboard
abstract val role: RoleBehavior?

The role behavior for this event, if any.

Functions

Link copied to clipboard
abstract suspend fun getRole(): Role

Get a Role object, or throw if one can't be retrieved.

Link copied to clipboard
abstract suspend fun getRoleOrNull(): Role?

Get a Role object, or return null if one can't be retrieved.