Fix for error when persisting voice state

This commit is contained in:
Dragory 2018-12-14 09:01:32 +02:00
parent 7154c006dc
commit 8c83b7d684

View file

@ -44,7 +44,7 @@ export class PersistPlugin extends Plugin {
persistData.nickname = member.nick;
}
if (this.configValue("persist_voice_mutes")) {
if (this.configValue("persist_voice_mutes") && member.voiceState.mute != null) {
persist = true;
persistData.is_voice_muted = member.voiceState.mute;
}