mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19: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>
|
* <info>Any streams that you had prior to destroying the receiver will not be recreated.</info>
|
||||||
*/
|
*/
|
||||||
recreate() {
|
recreate() {
|
||||||
if (this.destroyed) return;
|
if (!this.destroyed) return;
|
||||||
this.connection.udp.udpSocket.on('message', this._listener);
|
this.connection.udp.udpSocket.on('message', this._listener);
|
||||||
this.destroyed = false;
|
this.destroyed = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user