mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
Clean up a bunch of promise stuff
This commit is contained in:
@@ -136,7 +136,7 @@ class StreamDispatcher extends EventEmitter {
|
||||
const packet = this._createPacket(sequence, timestamp, this.player.opusEncoder.encode(buffer));
|
||||
while (repeats--) {
|
||||
this.player.voiceConnection.sockets.udp.send(packet)
|
||||
.catch(e => this.emit('debug', `failed to send a packet ${e}`));
|
||||
.catch(e => this.emit('debug', `Failed to send a packet ${e}`));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user