MessageEvent

interface MessageEvent

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

Properties

Link copied to clipboard
abstract val message: MessageBehavior?

The message behavior for this event, if any.

Functions

Link copied to clipboard
abstract suspend fun getMessage(): Message

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

Link copied to clipboard
abstract suspend fun getMessageOrNull(): Message?

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