mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix receiver.recreate()
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -60,7 +60,7 @@ class VoiceReceiver extends EventEmitter {
|
||||
* <info>Any streams that you had prior to destroying the receiver will not be recreated.</info>
|
||||
*/
|
||||
recreate() {
|
||||
if (this.destroyed) return;
|
||||
if (!this.destroyed) return;
|
||||
this.connection.udp.udpSocket.on('message', this._listener);
|
||||
this.destroyed = false;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user