Made the connection type configurable
This commit is contained in:
parent
70cee2a446
commit
5982f477fc
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ class VoiceConnection {
|
|||
|
||||
constructor(client) {
|
||||
this.client = client;
|
||||
this.type = settings.global("voice_connection_type", VoiceConnectionType.JS_ENCODE);
|
||||
this.voiceRecorder = new VoiceRecorder(this);
|
||||
if(this.type != VoiceConnectionType.NATIVE_ENCODE) {
|
||||
this.voiceRecorder.on_data = this.handleVoiceData.bind(this);
|
||||
|
|
Loading…
Add table
Reference in a new issue