fix default presence

This commit is contained in:
Amish Shah 2018-08-11 00:26:24 +01:00 committed by GitHub
parent 34ed3c6014
commit f5ea673ebd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,7 +115,7 @@ class GuildMember extends Base {
* @readonly
*/
get presence() {
return this.guild.presences.get(this.id) || new Presence(this.client);
return this.guild.presences.get(this.id) || new Presence(this.client, { user: { id: this.id } });
}
/**