feat(client): move sendReaction method to the Client#201695
Open
maxkoryukov wants to merge 1 commit intowwebjs:mainfrom
Open
feat(client): move sendReaction method to the Client#201695maxkoryukov wants to merge 1 commit intowwebjs:mainfrom
sendReaction method to the Client#201695maxkoryukov wants to merge 1 commit intowwebjs:mainfrom
Conversation
7 tasks
BenyFilho
previously approved these changes
Apr 6, 2026
Member
|
Check Lint errors |
`Message.react` moved to `Client.sendReaction`
76c8425 to
f64f799
Compare
Author
I've fixed it. And today I also will run |
BenyFilho
approved these changes
Apr 6, 2026
9 tasks
Author
|
guys, i ran so i split them:
but the obviously - the "doc PR" contains all changes from "js PR" |
Contributor
|
Nice work! |
Adi1231234
approved these changes
Apr 7, 2026
tuyuribr
approved these changes
Apr 7, 2026
sofi-ans
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Details
Message.reactmoved toClient.sendReaction(and the oldMessage.reactnow calls`this.client.sendReaction)
Description
The new method created from
Message.react, and the original method now calls the new one.Motivation and Context
With this method it is possible to send reactions to any message, not only to the just received message, or fetched by "load/fetch messages"
How Has This Been Tested
Basically, the code were just moved, so I called both:
and both worked in private/group messages.
Environment
I've tested with
whatsapp-web.js@1.34.6inside anode:24.12.0-alpine3.23(linux) docker image.webVersion: "2.3000.1036705643"
Types of changes
Checklist
npm test).index.d.ts) have been updated if necessary.example.js) / documentation have been updated if applicable.Related PRs
sendReactionmethod to the Client #4004