VoiceConnection speaking bugfix (#1343)

Looks like I made a typo...
This commit is contained in:
aemino
2017-04-06 07:20:34 -07:00
committed by Crawl
parent d1d8179460
commit ab589fa5f2

View File

@@ -410,7 +410,7 @@ class VoiceConnection extends EventEmitter {
* @param {User} user The user that has started/stopped speaking
* @param {boolean} speaking Whether or not the user is speaking
*/
if (this.status === Constants.Status.CONNECTED) this.emit('speaking', user, speaking);
if (this.status === Constants.VoiceStatus.CONNECTED) this.emit('speaking', user, speaking);
guild._memberSpeakUpdate(user_id, speaking);
}