fix/refactor: fix GuildMember#presence getter and cleanup (#2751)

* Fix guild being a guild and not an AbstractHandler in PresenceUpdate

* update the default guild to be a Guild, and not GuildMember

* getters return null instead of undefined

* fix lint
This commit is contained in:
bdistin
2018-08-15 01:50:22 -05:00
committed by SpaceEEC
parent 75254748b1
commit 6506252054
3 changed files with 7 additions and 13 deletions

View File

@@ -124,7 +124,7 @@ class GuildMember extends Base {
user: {
id: this.id,
},
guild: this,
guild: this.guild,
});
}