BaseManager<T>#holds: new (client: Client, ...args: any) => T
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.
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
:BaseManager<T>#resolve(data: any): T | null
BaseManager<T>#resolveId(data: any): string | null
BaseManager<T>#holds: new (client: Client, ...args: any) => T
The
resolve
andresolveId
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.