new ReactionEvent(Creates a new instance of ReactionEvent.params
):ReactionEvent
Client
The client associated with the event.
• params.data
The data associated with the event.
• params.data.from: string
• params.data.id: string
• params.data.isForwarded: boolean
• params.data.reaction: ReactionMessage
• params.data.timestamp: string
ReactionEvent
MessageEvent
.constructor
client: Client
The client instance associated with the event.
ReactionEventInterface
.client
MessageEvent
.client
context: MessageContext
The context of the message.
ReactionEventInterface
.context
MessageEvent
.context
isForwarded: boolean
MessageEvent
.isForwarded
messageId: string
The ID of the message.
ReactionEventInterface
.messageId
MessageEvent
.messageId
reaction: ReactionMessage
The reaction message associated with the event.
ReactionEventInterface
.reaction
timestamp: number
The timestamp of the message.
ReactionEventInterface
.timestamp
MessageEvent
.timestamp
react(Reacts to the message with an emoji.params
):Promise
<object
|object
>
string
The emoji to react with.
• params.phoneNumber: string
The phone number of the sender.
Promise
<object
| object
>
MessageEvent
.react
read():Marks the message as read.Promise
<object
|object
|object
|object
|object
>
Promise
<object
| object
| object
| object
| object
>
MessageEvent
.read
reply<Sends a reply to the message.T
>(props
):Promise
<object
|object
>
BaseMessage
<string
>
T
The message to send as a reply.
Promise
<object
| object
>
MessageEvent
.reply