Skip to content

Commit c1d5321

Browse files
committed
Fix typos in readme
1 parent fc49f93 commit c1d5321

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ LavalinkClient client = new LavalinkClient(
6363

6464
JDABuilder.createDefault(botToken)
6565
// .... your jda configuration
66-
.setVoiceDispatchInterceptor(JDAVoiceUpdateListener(client))
66+
.setVoiceDispatchInterceptor(new JDAVoiceUpdateListener(client))
6767
// .... your jda configuration
6868
.build();
6969
```
@@ -74,8 +74,10 @@ jda.getDirectAudioController().connect(voiceChannel);
7474
```
7575

7676
> [!IMPORTANT]
77-
> 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.
77+
> 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 event to LavaLink.
7878
> You can however use `Member#getVoiceState` perfectly fine, this is also how you get the voice channel that your bot is in.
79+
>
80+
> You can get the current voice channel of your bot by calling `Guild#getSelfMember()#getVoiceState()#getChannel`
7981
8082
## Installation and usage with Discord4j
8183

0 commit comments

Comments
 (0)