Files
whatsapp-web.js/src/structures/Base.js
2020-02-02 14:50:04 -04:00

22 lines
407 B
JavaScript

'use strict';
/**
* Represents a WhatsApp data structure
*/
class Base {
constructor(client) {
/**
* The client that instantiated this
* @readonly
*/
Object.defineProperty(this, 'client', { value: client });
}
_clone() {
return Object.assign(Object.create(this), this);
}
_patch(data) { return data; }
}
module.exports = Base;