Skip to content

Commit

Permalink
Fix typos in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Dec 17, 2023
1 parent fc49f93 commit c1d5321
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ LavalinkClient client = new LavalinkClient(

JDABuilder.createDefault(botToken)
// .... your jda configuration
.setVoiceDispatchInterceptor(JDAVoiceUpdateListener(client))
.setVoiceDispatchInterceptor(new JDAVoiceUpdateListener(client))
// .... your jda configuration
.build();
```
Expand All @@ -74,8 +74,10 @@ jda.getDirectAudioController().connect(voiceChannel);
```

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

Expand Down

0 comments on commit c1d5321

Please sign in to comment.