Lavalink

Latest version: v5.3.0

Safety actively analyzes 621776 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

5.3.0

Additions
- [typings] Add player types to `PlayerManager` class.
- [docs] Annotate return type of `DeferredAudioTrack.load` method.
- [docs] Expose the `DataReader` and `DataWriter` classes in `DataIO`.
- [interface] Add support for per-source base64 track field decoding.
- [interface] Add `DefaultPlayer.remove_filters` method for removing multiple filters at once.

Fixes
- [typings] Fix events type for `lavalink.listener` decorator.
- [internal] Fix LowPass filter trying to convert `'smoothing'` to a float.
- [internal] Attach exception information to error log when handling websocket message.

Changes
- [interface] Renamed `AudioTrack.stream` to `AudioTrack.is_stream` for naming consistency and clarity.
- `AudioTrack.stream` is still available but marked deprecated.

5.2.0

Additions
- Added public `Node.request` method for making HTTP requests.
- Added `Client.remove_event_hooks` method.

Fixes
- Fix a potential issue where `player.current` would be set to `None` upon receiving subsequent `TrackStartEvent`s.
- Fix `position` potentially reading incorrectly when a non-zero `start_time` was provided.
- Fix `player.paused` potentially holding an incorrect state if the player is paused and then skipped (forcing an un-pause).

Changes
- Documentation improvements.
- Improve robustness of player failover.

5.1.0

Additions
- Node.get_rest_latency()

5.0.0

This release adds support for Lavalink server v4 (with REST API).

For a full changelog, you can [view the commits here](https://github.com/devoxin/Lavalink.py/compare/4.0.7...5.0.0)

4.0.7

Fixes
- Fix bad `endTime` check.
- Additionally, raise minimum `endTime` duration to `1`.

Additions
- Add `LoadResult.selected_track` convenience property.
- Add `Client.get_source()` convenience method.

Changes
- Raise original error in `utils.timestamp_to_millis`.
- Slight improvement to `DefaultPlayer.play` documentation to clarify the difference between it and `BasePlayer.play_track`.

4.0.6

Fixes
- Fixed `DefaultPlayer.play` not throwing if the provided track does not have a `track` str, and it is not an instance of `DeferredAudioTrack`.

Additions
- Add return type to `utfm_codec.read_utfm`.
- Add return type to `utils.encode_track`.
- Improved typedefs of `Stats` object.
- Improved typedefs of `Penalty` object.
- Improved typedefs of `Node`.
- Improved typedefs of `NodeManager`.
- Improved typedefs of `PlayerManager`.
- Improved typedefs of `QueueEndEvent`.
- Improved typedefs of `PlayerUpdateEvent`.
- Improved typedefs of `WebSocketClosedEvent`.
- Improved typedefs of track events.
- Improved typedefs of node events.

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.