pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.17k stars 3.62k forks source link

Adapt TypeScript Events enum #3271

Open BothimTV opened 2 weeks ago

BothimTV commented 2 weeks ago

PR Details

Description

I adapted the TypeScript Events enum to the JavaScript constant.

Motivation and Context

I wanted to implement a reaction listener in TypeScript using Events.MESSAGE_REACTION but it was not included within the TypeScript enum, but in the export.Events of the constants.

How Has This Been Tested

After changing it locally, I could implement it and it works.

Types of changes

Checklist