diff --git a/src/stores/PresenceStore.js b/src/stores/PresenceStore.js index 15fc9f124..dc758d3c3 100644 --- a/src/stores/PresenceStore.js +++ b/src/stores/PresenceStore.js @@ -12,7 +12,7 @@ class PresenceStore extends DataStore { add(data, cache) { const existing = this.get(data.user.id); - return existing ? existing.patch(data) : super.add(data, cache, { id: data.user.id }); + return existing ? existing.patch(data) : super.add(data, cache); } /** diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index d24670b64..9b6beee74 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -115,7 +115,12 @@ class GuildMember extends Base { * @readonly */ get presence() { - return this.guild.presences.get(this.id) || new Presence(this.client, { user: { id: this.id } }); + return this.guild.presences.get(this.id) || new Presence(this.client, { + user: { + id: this.id, + }, + guild: this, + }); } /**