Fix default presence for Users

This commit is contained in:
Amish Shah 2018-08-11 11:48:18 +01:00
parent 8ac664801c
commit e2ceea65ba
No known key found for this signature in database
GPG key ID: 904349C1207D7967

View file

@ -108,7 +108,7 @@ class User extends Base {
for (const guild of this.client.guilds.values()) {
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 } });
}
/**