diff --git a/index.d.ts b/index.d.ts index b391515..166aa40 100644 --- a/index.d.ts +++ b/index.d.ts @@ -260,6 +260,11 @@ declare namespace WAWebJS { /** Current connection information */ export interface ClientInfo { + /** + * Current user ID + * @deprecated Use .wid instead + */ + me: ContactId /** Current user ID */ wid: ContactId /** diff --git a/src/structures/ClientInfo.js b/src/structures/ClientInfo.js index b6cb2d6..e8686b1 100644 --- a/src/structures/ClientInfo.js +++ b/src/structures/ClientInfo.js @@ -26,6 +26,12 @@ class ClientInfo extends Base { */ this.wid = data.wid; + /** + * @type {object} + * @deprecated Use .wid instead + */ + this.me = data.wid; + /** * Information about the phone this client is connected to. Not available in multi-device. * @type {object}