mirror of
https://github.com/danbulant/discord.js
synced 2026-06-05 07:42:09 +00:00
Fix default presence for Users
This commit is contained in:
parent
8ac664801c
commit
e2ceea65ba
1 changed files with 1 additions and 1 deletions
|
|
@ -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 } });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue