MessageReceptionEvent class final
A message was received and queued (message.reception).
This is the first event of every message, inbound or outbound.
- Inheritance
-
- Object
- WebhookEvent
- MessageWebhookEvent
- MessageReceptionEvent
Constructors
- MessageReceptionEvent({required DateTime timestamp, required String webhookId, required MessageEventData data, JsonMap raw = const {}})
-
Creates the event.
const
Properties
- data → MessageEventData
-
The message data of the event.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- raw → JsonMap
-
The JSON payload this event was decoded from.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
When the event occurred.
finalinherited
- type → String
-
The event type, for example
message.delivered.finalinherited - webhookId → String
-
The ID of the webhook this event was sent to.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → JsonMap -
Encodes this event as JSON.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited