You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lavalink extensions may add API routes, and we might want to consider supporting extending the Rest class with more methods in a modular way without having to add all routes to one specific class, and without "chain subclassing".
Lavalink extensions may add API routes, and we might want to consider supporting extending the Rest class with more methods in a modular way without having to add all routes to one specific class, and without "chain subclassing".
Lavaclient does this by using reflection and manually declaring the extra functions (e.g. https://github.com/lavaclient/lavaclient/blob/master/packages/plugin/lavasearch/src/plugin.ts)
We may also revisit the old, significantly more complex router from v2, which makes use of reflection and proxy (https://github.com/shipgirlproject/Shoukaku/blob/v2/src/node/ShoukakuRouter.js)
There are many ways to accomplish this, e.g. prototype extension, reflection, mixins, chained decorators... etc.
The text was updated successfully, but these errors were encountered: