Event

interface Event(source)

A Update event for Bot.

By internal implementation, third-party implementation is unstable.

Author

ForteScarlet

See also

Properties

Link copied to clipboard
abstract val content: Any

The content object of the event. The type is one of the possible optional fields in Update, such as Message (Update.message).

Link copied to clipboard
abstract val name: String

Name of the event. Is the name of the field corresponding to the event, such as edited_message.

Link copied to clipboard
abstract val raw: String?

The raw JSON string used to parse out update. If update is externally provided and raw is not provided, it may get null

Link copied to clipboard
abstract val update: Update

The source Update instance.