Fix default presence for Users

This commit is contained in:
Amish Shah
2018-08-11 11:48:18 +01:00
parent 8ac664801c
commit e2ceea65ba

View File

@@ -108,7 +108,7 @@ class User extends Base {
for (const guild of this.client.guilds.values()) { for (const guild of this.client.guilds.values()) {
if (guild.presences.has(this.id)) return guild.presences.get(this.id); if (guild.presences.has(this.id)) return guild.presences.get(this.id);
} }
return new Presence(this.client); return new Presence(this.client, { user: { id: this.id } });
} }
/** /**