From 8c83b7d684d90434a2e6bb0900070c759cb4f113 Mon Sep 17 00:00:00 2001 From: Dragory Date: Fri, 14 Dec 2018 09:01:32 +0200 Subject: [PATCH] Fix for error when persisting voice state --- src/plugins/Persist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/Persist.ts b/src/plugins/Persist.ts index 1d9bab93..f46c3809 100644 --- a/src/plugins/Persist.ts +++ b/src/plugins/Persist.ts @@ -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; }