Skip to content

Commit

Permalink
Revert "fix: old objects not being cached (discordjs#3225)"
Browse files Browse the repository at this point in the history
This reverts commit ceebb8a.
  • Loading branch information
samsamson33 committed Feb 27, 2020
1 parent c82e4f7 commit 151059e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stores/DataStore.js
Expand Up @@ -18,7 +18,7 @@ class DataStore extends Collection {

add(data, cache = true, { id, extras = [] } = {}) {
const existing = this.get(id || data.id);
if (existing && existing._patch && cache) existing._patch(data);
if (existing && existing.partial && cache && existing._patch) existing._patch(data);
if (existing) return existing;

const entry = this.holds ? new this.holds(this.client, data, ...extras) : data;
Expand Down
2 changes: 1 addition & 1 deletion test/voice.js
Expand Up @@ -6,7 +6,7 @@ const ytdl = require('ytdl-core');
const prism = require('prism-media');
const fs = require('fs');

const client = new Discord.Client({ fetchAllMembers: false, partials: [], apiRequestMethod: 'sequential' });
const client = new Discord.Client({ fetchAllMembers: false, partials: true, apiRequestMethod: 'sequential' });

const auth = require('./auth.js');

Expand Down

0 comments on commit 151059e

Please sign in to comment.