lavaclient

A simple, easy-to-use, and flexible lavalink client for node.js

APACHE-2.0 License

Downloads
2.8K
Stars
116
Committers
23

Bot releases are hidden (Show)

lavaclient - 🎉 Lavaclient v4 Latest Release

Published by viztea about 3 years ago

4th major version of lavaclient is here!

Major Changes

  • The Manager class no longer exists, please use one of Cluster or Node.
  • The Plugin class have been removed.
  • The Structures class have been removed.
  • The Filters class has been removed, use Player#filters and Player#setFilters()
  • A dedicated REST class has been added.
  • Possibly smaller than v3??!!

Stuff I've fixed that people have been complaining about

  • Very poor node reconnecting.

pretty sure that's it lol, oh and it was like remade from the ground up!

lavaclient - Filters

Published by viztea almost 4 years ago

  • (7a1d74c) Added a filters class for the upcoming versions of lavalink.
  • (2ca72de) Added a second parameter to Manager#create, "socket" (suggested by @Jade3375)
  • (2ca72de) Reworked the way discord voice updates are handled, instead of two methods, it's just one.
  • (6d1c3cd) Made payloads sync, no more promises........... might be reverted in future versions.
lavaclient - Version 3.1.0

Published by viztea about 4 years ago

Big Update!

  • Rewrote the Socket, Reworked resuming, and reconnecting options. Reworked the payload queue.
  • Added Player#move, which allows for moving the player to another node.
  • Added the option to omit the port and password (defaults to "youshallnotpass").
  • Added the option to use ssl (https and wss).
lavaclient - Quality-Of-Life Update

Published by viztea about 4 years ago

  • Made host, port, and password optional... defaulting to localhost, 2333, and youshallnotpass
  • Change the way the ideal node accessor works.
  • Added Socket#penalties
  • Changed the way sending of messages works: instead of adding to a queue if the node isn't connected, it adds to a queue regardless but... it uses Socket#{flush -> checkQueue} instead.
  • socketDisconnect no longer exists
lavaclient - Version 3.0.10 (woot)

Published by viztea over 4 years ago

The woot update xd

  • Added statically typed events for the Manager and Player
  • Re-added Player#send to reduce reiteration of this.socket.send
  • Made Manager#create synchronous
  • Removed typedoc stuff
  • Remade the tsconfig.json for a more strict code style.

there's probably more but I forgot... OH YEAH NEW FUCKING DOCS MMMMMM: https://lavaclient.github.io/ (and I actually might've forgot shit

lavaclient.js.org isn't available due to js.org being on a "summer break"

lavaclient - Version 3.0.7

Published by viztea over 4 years ago

Added some new stuff, mostly cleaning up code and removing random elements.

  • Made the README have a center-aligned header and badge section
  • Added a section that showcases the bots that make use of lavaclient.
  • Added an Eris Setup Guide.
  • Added searching and playing music guide.

More Code Related:

  • major Removed the option for auto-connecting
  • minor Added the option to remove the player from the player map when using Player#disconnect
  • major Added Manager#search so the rest plugin is now for extra functionality.
  • minor Added Player#manager getter.
  • minor Added Player#connected getter.

there's probably more that I forgot.