fix(GuildMember): mark joined as nullable and fix fetching for these cases

This commit is contained in:
Lewdcario
2018-06-05 19:50:36 -05:00
parent 46af6e3396
commit 13bfceb83c
2 changed files with 7 additions and 7 deletions

View File

@@ -178,7 +178,7 @@ class GuildMemberStore extends DataStore {
_fetchSingle({ user, cache }) {
const existing = this.get(user);
if (existing) return Promise.resolve(existing);
if (existing && existing.joinedTimestamp) return Promise.resolve(existing);
return this.client.api.guilds(this.guild.id).members(user).get()
.then(data => this.add(data, cache));
}