Tomato6966 / lavalink-client

Easy, flexible and feature-rich lavalink@v4 Client. Both for Beginners and Proficients.
https://tomato6966.github.io/lavalink-client/
MIT License
48 stars 13 forks source link

Error with bun runtime #22

Closed Kisakay closed 4 months ago

Kisakay commented 5 months ago

when i'm trying to power on my discord bot with the bun runtime (https://bun.sh)

The client can´t be connected to the node :

510 |         // reset the reconnect attempts amount
511 |         this.reconnectAttempts = 1;
512 |         this.info = await this.fetchInfo().catch(() => null);
513 |         if (!this.info && ["v3", "v4"].includes(this.version)) {
514 |             const errorString = `Lavalink Node (${this.poolAddress}) does not provide any /${this.version}/info`;
515 |             throw new Error(errorString);
                        ^
error: Lavalink Node (http://XXX.XXX.XX.X:XXXX) does not provide any /v4/info
      at /home/xxxxx/Documents/GitHub/ihrz/node_modules/lavalink-client/dist/cjs/structures/Node.js:515:19
Tomato6966 commented 4 months ago

Seems like it's more or less an error for not hosting a lavalink v4 version

Kisakay commented 4 months ago

Lavalink client uses a method that Bun has not yet implemented.