mirror of
https://github.com/mimamch/wa-multi-session.git
synced 2026-04-25 00:36:08 +03:00
[PR #12] [FEATURE]: listener for labels association events created #51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mimamch/wa-multi-session/pull/12
Author: @MateoMax-hub
Created: 7/24/2023
Status: 🔄 Open
Base:
master← Head:feature/labels-association-event📝 Commits (2)
d642f7flistener for labels association events createdf058ea4labels edit event listener created📊 Changes
3 files changed (+37 additions, -2 deletions)
View changed files
📝
package-lock.json(+23 -2)📝
src/Defaults/index.ts(+2 -0)📝
src/Socket/index.ts(+12 -0)📄 Description
FEATURE:
event for labels.association are now assigned to a a new listener "ON_LABEL_ASSOCIATION" and used on the function "onLabelAssociation", the function will receive a callback to execute each time the events get triggered (adding o removing a label on a chat), in the parameters of the callback you will receive an obj like this:
type can be add or remove depending if you are adding or removing a label, and labelId is an id for the label selected to do this event, i'm planning on making a function to get the labels an maybe i can at that point integrate it with this so you can get the labelId and it's name too
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.