The Node.js SDK re-exports the WAJS namespace for TypeScript. This reference describes types from WA-JS 4.8.5-rc.0 . For operations available on a connected Node.js client, see Whatsapp . For functions running inside WhatsApp Web, see the WA-JS browser API .
Interface GroupEventTypes
interface GroupEventTypes { "group.participant_changed" : { action : "add" | "remove" | "demote" | "promote" | "leaver" | "join" ; author ?: string ; authorPushName ?: string ; groupId : string ; operation : "add" | "remove" | "demote" | "promote" ; participants : string [] ; } ; }
Defined in node_modules/@wppconnect/wa-js/dist/group/events/eventTypes.d.ts:16
Properties
group.participant_ changed
"group.participant_changed" : { action : "add" | "remove" | "demote" | "promote" | "leaver" | "join" ; author ?: string ; authorPushName ?: string ; groupId : string ; operation : "add" | "remove" | "demote" | "promote" ; participants : string [] ; }
Type Declaration
action : "add" | "remove" | "demote" | "promote" | "leaver" | "join"
Optionalauthor ?: string
OptionalauthorPushName ?: string
groupId : string
operation : "add" | "remove" | "demote" | "promote"
participants : string []
Defined in node_modules/@wppconnect/wa-js/dist/group/events/eventTypes.d.ts:27
Triggered when some member of group has changed