mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
refactor: make use of destructuring for Constants (#1942)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const VolumeInterface = require('../util/VolumeInterface');
|
||||
const VoiceBroadcast = require('../VoiceBroadcast');
|
||||
const Constants = require('../../../util/Constants');
|
||||
const { VoiceStatus } = require('../../../util/Constants');
|
||||
|
||||
const secretbox = require('../util/Secretbox');
|
||||
|
||||
@@ -109,7 +109,7 @@ class StreamDispatcher extends VolumeInterface {
|
||||
|
||||
setSpeaking(value) {
|
||||
if (this.speaking === value) return;
|
||||
if (this.player.voiceConnection.status !== Constants.VoiceStatus.CONNECTED) return;
|
||||
if (this.player.voiceConnection.status !== VoiceStatus.CONNECTED) return;
|
||||
this.speaking = value;
|
||||
/**
|
||||
* Emitted when the dispatcher starts/stops speaking.
|
||||
|
||||
Reference in New Issue
Block a user