Make presences track users and guilds, emit them in presenceUpdate

This commit is contained in:
Amish Shah
2018-08-10 16:46:14 +01:00
parent fe8ece0192
commit 08eff66939
7 changed files with 32 additions and 13 deletions

View File

@@ -226,7 +226,7 @@ class Guild extends Base {
if (data.presences) {
for (const presence of data.presences) {
this.presences.add(presence);
this.presences.add(Object.assign(presence, { guild: this }));
}
}