Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
timotejroiko committed Oct 24, 2020
1 parent 37f0490 commit 5677980
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ Discord.Structures.extend("Presence", P => {
return class Presence extends P {
patch(data) {
super.patch(data);
if(!this.guild) { return; }
if(!this.guild.members.cache.has(data.user.id)) {
if(this.guild && !this.guild.members.cache.has(data.user.id)) {
this._member = {
user: data.user,
roles: data.roles,
Expand Down

0 comments on commit 5677980

Please sign in to comment.