From d7f8fd1ae0a56e3fee7d87c75e4cdfab5f785604 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Sat, 4 May 2019 16:21:49 +0100 Subject: [PATCH] fix #3244 --- src/structures/Guild.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index a5d13fa65..b1361aef4 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -57,6 +57,8 @@ class Guild extends Base { */ this.presences = new PresenceStore(this.client); + this.voiceStates = new VoiceStateStore(this); + /** * Whether the bot has been removed from the guild * @type {boolean} @@ -307,8 +309,8 @@ class Guild extends Base { } } - if (!this.voiceStates) this.voiceStates = new VoiceStateStore(this); if (data.voice_states) { + this.voiceStates.clear(); for (const voiceState of data.voice_states) { this.voiceStates.add(voiceState); }