Skip to content

Commit ef3f1c9

Browse files
committed
Add upgrade file
1 parent c6af1b3 commit ef3f1c9

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jda.getDirectAudioController().connect(voiceChannel);
7171

7272
> [!IMPORTANT]
7373
> Using `Guild#getAudioManager()` will ***NOT*** work. This is because the audio manager makes **JDA** connect to the voice channel, and we want to send the even to LavaLink.
74-
> You can however use `Member#getVoiceState` perfectly fine
74+
> You can however use `Member#getVoiceState` perfectly fine, this is also how you get the voice channel that your bot is in.
7575
7676
## Installation and usage with Discord4j
7777

upgrade.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Coming from the v3 client
2+
3+
First things first, there is no dependency on lavaplayer anymore. This means that all the track loading will have to be done via the server.
4+
This also means that the following classes no longer exist:
5+
- PlayerEventListenerAdapter
6+
7+
This client also uses project reactor, their docs are over at https://projectreactor.io/docs
8+
9+
## Classes that serve similar purposes
10+
- `Lavalink`/`JDALavalink` -> `LavalinkClient`
11+
- `Link`/`JDALink` -> `Link`
12+
- `Link.State` -> `LinkState`
13+
- `LavalinkSocket` -> `Node`
14+
- `LavalinkRestClient` -> `Node`
15+
- `LavalinkLoadBalancer` -> `DefaultLoadBalancer`
16+
- `PenaltyProvider` -> `IPenaltyProvider`
17+
- Any filters -> they are in `dev.arbjerg.lavalink.protocol.v4.Filters` class.
18+
19+
If you are missing anything from here, feel free to let me know in the lavalink discord

0 commit comments

Comments
 (0)