3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

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;
}