whatsapp-web.js 1.16.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +5 -0
- package/package.json +1 -1
- package/src/structures/ClientInfo.js +6 -0
package/index.d.ts
CHANGED
|
@@ -260,6 +260,11 @@ declare namespace WAWebJS {
|
|
|
260
260
|
|
|
261
261
|
/** Current connection information */
|
|
262
262
|
export interface ClientInfo {
|
|
263
|
+
/**
|
|
264
|
+
* Current user ID
|
|
265
|
+
* @deprecated Use .wid instead
|
|
266
|
+
*/
|
|
267
|
+
me: ContactId
|
|
263
268
|
/** Current user ID */
|
|
264
269
|
wid: ContactId
|
|
265
270
|
/**
|
package/package.json
CHANGED
|
@@ -26,6 +26,12 @@ class ClientInfo extends Base {
|
|
|
26
26
|
*/
|
|
27
27
|
this.wid = data.wid;
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @deprecated Use .wid instead
|
|
32
|
+
*/
|
|
33
|
+
this.me = data.wid;
|
|
34
|
+
|
|
29
35
|
/**
|
|
30
36
|
* Information about the phone this client is connected to. Not available in multi-device.
|
|
31
37
|
* @type {object}
|