diff --git a/src/structures/Guild.js b/src/structures/Guild.js index f06d1708a..a0824aabd 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -69,6 +69,7 @@ class Guild extends Base { } } + /* eslint-disable complexity */ /** * Sets up the guild. * @param {*} data The raw data of the guild @@ -210,7 +211,7 @@ class Guild extends Base { } } - this.voiceStates = new VoiceStateCollection(this); + if (!this.voiceStates) this.voiceStates = new VoiceStateCollection(this); if (data.voice_states) { for (const voiceState of data.voice_states) this.voiceStates.set(voiceState.user_id, voiceState); }