mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 05:23:31 +01:00
feat(User): add avatarDecorationData (#9888)
* feat(User): add `avatarDecorationData` * fix: remove options * fix(User): check avatar decoration in equals() methods * docs: Add full reference --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
7
packages/discord.js/typings/index.d.ts
vendored
7
packages/discord.js/typings/index.d.ts
vendored
@@ -3311,6 +3311,11 @@ export class Typing extends Base {
|
||||
};
|
||||
}
|
||||
|
||||
export interface AvatarDecorationData {
|
||||
asset: string;
|
||||
skuId: Snowflake;
|
||||
}
|
||||
|
||||
// tslint:disable-next-line no-empty-interface
|
||||
export interface User extends PartialTextBasedChannelFields<false> {}
|
||||
export class User extends Base {
|
||||
@@ -3319,7 +3324,9 @@ export class User extends Base {
|
||||
|
||||
public accentColor: number | null | undefined;
|
||||
public avatar: string | null;
|
||||
/** @deprecated Use {@link User.avatarDecorationData} instead */
|
||||
public avatarDecoration: string | null;
|
||||
public avatarDecorationData: AvatarDecorationData | null;
|
||||
public banner: string | null | undefined;
|
||||
public bot: boolean;
|
||||
public get createdAt(): Date;
|
||||
|
||||
Reference in New Issue
Block a user