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
This commit introduces a new public method, `requestREST`, to the `LavalinkNode` class.
This utility provides a flexible and centralized way to make arbitrary REST API calls to the connected Lavalink node. It simplifies interactions with custom endpoints or those provided by Lavalink plugins by handling authentication, URL construction, and basic response parsing automatically.
Key features include:
- Support for modifying request options (method, headers, body).
- Automatic handling of authorization headers.
- Optional response parsing as text instead of JSON.
- Built-in request timeout support.
0 commit comments