mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
Ignore setSpeaking requests when VC isn't connected (#1638)
This commit is contained in:
@@ -133,6 +133,7 @@ class VoiceConnection extends EventEmitter {
|
||||
*/
|
||||
setSpeaking(value) {
|
||||
if (this.speaking === value) return;
|
||||
if (this.status !== Constants.VoiceStatus.CONNECTED) return;
|
||||
this.speaking = value;
|
||||
this.sockets.ws.sendPacket({
|
||||
op: Constants.VoiceOPCodes.SPEAKING,
|
||||
|
||||
Reference in New Issue
Block a user