Optional ReadonlybodyJSON body to send with
ReadonlyendpointLavalink endpoint
Optional ReadonlyheadersHTTP request headers
Optional ReadonlymethodHTTP request method, GET by default
Optional ReadonlyparamsURL params
Optional ReadonlypluginPlugin required by endpoint
ReadonlyTThis hack is to work around TypeScript types not existing at runtime. We can specify the return type here.
Routes should implement this interface to use with fetch function
Properties can be a value, or a function that returns a value to access
thisExample
Example with LavaSearch
/loadsearchendpoint