fix(SendSlash): BotId !== applicationId

example: dyno
This commit is contained in:
March 7th
2022-08-29 22:14:51 +07:00
parent 966542d6c3
commit 1ff63e24b7
2 changed files with 10 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ class User extends Base {
* @readonly
*/
this.application = null;
this._partial = true;
this._patch(data);
}
@@ -207,6 +208,8 @@ class User extends Base {
_ProfilePatch(data) {
if (!data) return;
this._partial = false;
if (data.connected_accounts.length > 0) {
this.connectedAccounts = data.connected_accounts;
}
@@ -240,6 +243,10 @@ class User extends Base {
member._ProfilePatch(data.guild_member_profile);
}
if ('application' in data) {
this.application = new ClientApplication(this.client, data.application, this);
}
this.mutualGuilds = new Collection(data.mutual_guilds.map(obj => [obj.id, obj]));
}