mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
voice state fixes
This commit is contained in:
@@ -9,7 +9,7 @@ class VoiceStateStore extends DataStore {
|
||||
|
||||
add(data, cache = true) {
|
||||
const existing = this.get(data.user_id);
|
||||
if (existing) return existing;
|
||||
if (existing) return existing._patch(data);
|
||||
|
||||
const entry = new VoiceState(this.guild, data);
|
||||
if (cache) this.set(data.user_id, entry);
|
||||
|
||||
Reference in New Issue
Block a user