mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user