Skip to content

Commit

Permalink
Update VoiceManager.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xjuanfxx authored Mar 5, 2023
1 parent fc5ff81 commit ae009fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/VoiceManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class VoiceManager {
});
connection.on('stateChange', (oldState, newState) => {
if (oldState.status === VoiceConnectionStatus.Ready && newState.status === VoiceConnectionStatus.Connecting) {
connection.configureNetworking();
connection.configureNetworking();
}
});
});
// Resolve this voice manager once the connection is ready.
connection.on(VoiceConnectionStatus.Ready, () => {
connection.subscribe(this.player);
Expand Down

0 comments on commit ae009fe

Please sign in to comment.