Skip to main content
Version: 1.4

ConsoleEvent

rawEvent

Underlying raw event from Console.

Example:

event.rawEvent;
// {
// message: {
// text: 'Awesome.',
// },
// }

isMessage

Determine if the event is a message event.

Example:

event.isMessage; // true

message

The message object from Console raw event.

Example:

event.message;
// {
// text: 'Awesome.',
// }

isText

Determine if the event is a message event which includes text.

Example:

event.isText; // true

text

The text string from Console raw event.

Example:

event.text; // 'Awesome.'

isPayload

Determine if the event is a payload event.

Example:

event.isPayload; // true

payload

The payload string from Console raw event.

Example:

event.payload; // 'MY_PAYLOAD'