feat: ✨ Update User Profile
This commit is contained in:
parent
a7a9add421
commit
26f48c90e4
@ -294,6 +294,18 @@ class User extends Base {
|
|||||||
this.application = new ClientApplication(this.client, data.application, this);
|
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]));
|
this.mutualGuilds = new Collection(data.mutual_guilds.map(obj => [obj.id, obj]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@ -1637,6 +1637,7 @@ export class GuildMember extends PartialTextBasedChannel(Base) {
|
|||||||
public readonly voice: VoiceState;
|
public readonly voice: VoiceState;
|
||||||
public themeColors?: [number, number];
|
public themeColors?: [number, number];
|
||||||
public readonly hexThemeColor: [string, string] | null;
|
public readonly hexThemeColor: [string, string] | null;
|
||||||
|
public badges: { id: string; description: string; icon: string; link?: string }[] | null;
|
||||||
public avatarURL(options?: ImageURLOptions): string | null;
|
public avatarURL(options?: ImageURLOptions): string | null;
|
||||||
public ban(options?: BanOptions): Promise<GuildMember>;
|
public ban(options?: BanOptions): Promise<GuildMember>;
|
||||||
public disableCommunicationUntil(timeout: DateResolvable | null, reason?: string): Promise<GuildMember>;
|
public disableCommunicationUntil(timeout: DateResolvable | null, reason?: string): Promise<GuildMember>;
|
||||||
|
Loading…
Reference in New Issue
Block a user