fix(Presence): account for multiple activities everywhere (#3703)

* fix(Presence): account for multiple activities everywhere

* refactor(Presence): make initialization of 'activities' more readable
This commit is contained in:
SpaceEEC
2020-01-19 13:05:45 +01:00
committed by GitHub
parent cbb8db3058
commit f501d06c0d
3 changed files with 19 additions and 12 deletions

View File

@@ -68,7 +68,7 @@ class ClientPresence extends Presence {
};
if ((status || afk || since) && !activity) {
packet.game = this.activity;
packet.game = this.activities[0] || null;
}
if (packet.game) {