The only non-client specific Lavalink client for JavaScript.
Most of the code is ported from eris-lavalink which you can find here
A non-client specific Lavalink client for JavaScript
License: MIT License
The only non-client specific Lavalink client for JavaScript.
Most of the code is ported from eris-lavalink which you can find here
If anyone could just go through the version 1 code and create some documentation that would be super helpful!
Does this lib support lavalink 2.0? And is there a test folder to can use?
Client discord.js v12 (master)
SandySounds Most recent commit (using V2)
I'm a bit stumped on this, whenever trying to connect to a voice channel using client.player.join(channel.guild.id, channel.id);
, I am consistently getting TypeError: this.client.sendWS is not a function
(see here).
For context, client.player
is a new SandySounds
that looks like this;
client.player = new SandySounds(client, nodes, {
numShards: 1,
userId: client.user.id,
regions: regions,
defaultRegion: 'us'
});
I've tried manually changing the code so that it properly sends the websocket request, but that just ends up with me getting Voice connection timeout
, so I'm a bit stuck. I can't tell if this is an issue with me because I've done something wrong, or if it's something else, but any help would be appreciated.
Getting the same error on both your v2 and the original eris-lavalink.
In the bot's console:
Error: Voice connection timeout
at Timeout.pendingGuilds.(anonymous function).timeout.setTimeout [as _onTimeout] (C:\Users\chris\Desktop\baconbot\node_modules\lavalink.js\src\PlayerManager.js:354:15)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)
Lavalink console:
[16:11:23] [ INFO ] [[/]] Initializing Spring FrameworkServlet 'dispatcherServlet'
[16:11:23] [ INFO ] [DispatcherServlet] FrameworkServlet 'dispatcherServlet': initialization started
[16:11:23] [ INFO ] [DispatcherServlet] FrameworkServlet 'dispatcherServlet': initialization completed in 17 ms
[16:11:23] [ INFO ] [AudioLoaderRestHandler] GET /loadtracks
[16:11:23] [ INFO ] [GarbageCollectionMonitor] GC monitoring enabled, reporting results every 2 minutes.
[16:11:24] [ INFO ] [AudioLoader] Loaded playlist Search results for: lo-fi
[16:11:24] [ INFO ] [SocketServer] {"op":"connect","guildId":"356197359153315840","channelId":"371378812476194838"}
[16:11:24] [ WARN ] [SocketServer] Unexpected operation: connect
[16:11:34] [ INFO ] [SocketServer] {"op":"disconnect","guildId":"356197359153315840"}
[16:11:34] [ WARN ] [SocketServer] Unexpected operation: disconnect
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.