groupme-js / node-groupme

The only GroupMe API library for NodeJS that isn't a million years old.
https://groupme.js.org
MIT License
27 stars 11 forks source link

[Feature] Resolvable support #75

Closed not-so-smart closed 2 years ago

not-so-smart commented 2 years ago

This PR prepares the codebase for resolvable types to be implemented in node-groupme. See #51 for more info on resolvables.

This PR adds the following properties/methods to BaseManager:

The resolve and resolveId methods take a data resolvable and return the resolved data structure. These can be overridden in managers to allow for more powerful and applicable object resolution.

The holds property is the constructor of the type being held by this Manager instance.