diff --git a/src/stores/ChannelStore.js b/src/stores/ChannelStore.js index d0e1caa77..762f0e193 100644 --- a/src/stores/ChannelStore.js +++ b/src/stores/ChannelStore.js @@ -54,9 +54,9 @@ class ChannelStore extends DataStore { add(data, guild, cache = true) { const existing = this.get(data.id); - if (existing && existing._patch && cache) existing._patch(data); - if (existing && guild) { - guild.channels.add(existing); + if (existing) { + if (existing._patch && cache) existing._patch(data); + if (guild) guild.channels.add(existing); return existing; }