feat: Update User Profile

This commit is contained in:
Elysia
2023-04-22 13:09:46 +07:00
parent a7a9add421
commit 26f48c90e4
2 changed files with 13 additions and 0 deletions

View File

@@ -294,6 +294,18 @@ class User extends Base {
this.application = new ClientApplication(this.client, data.application, this);
}
if ('badges' in data) {
/**
* User badges (Boost, Slash, AutoMod, etc.)
* @type {?Array<{ id: string, description: string, icon: string, link?: string }>}
*/
this.badges = data.badges;
}
if ('guild_badges' in data) {
// Unknown
}
this.mutualGuilds = new Collection(data.mutual_guilds.map(obj => [obj.id, obj]));
}