voice state fixes

This commit is contained in:
Amish Shah
2018-08-10 15:15:52 +01:00
parent df54d11dce
commit fe8ece0192
5 changed files with 12 additions and 10 deletions

View File

@@ -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);