mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat: user avatar decorations (#9710)
* feat: user avatar decorations * lint * Update typings/index.d.ts Co-authored-by: David Malchin <malchin459@gmail.com> --------- Co-authored-by: David Malchin <malchin459@gmail.com>
This commit is contained in:
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -2698,6 +2698,7 @@ export class User extends PartialTextBasedChannel(Base) {
|
||||
|
||||
public accentColor: number | null | undefined;
|
||||
public avatar: string | null;
|
||||
public avatarDecoration: string | null;
|
||||
public banner: string | null | undefined;
|
||||
public bot: boolean;
|
||||
public readonly createdAt: Date;
|
||||
@@ -2715,6 +2716,7 @@ export class User extends PartialTextBasedChannel(Base) {
|
||||
public readonly tag: string;
|
||||
public username: string;
|
||||
public avatarURL(options?: ImageURLOptions): string | null;
|
||||
public avatarDecorationURL(options?: StaticImageURLOptions): string | null;
|
||||
public bannerURL(options?: ImageURLOptions): string | null;
|
||||
public createDM(force?: boolean): Promise<DMChannel>;
|
||||
public deleteDM(): Promise<DMChannel>;
|
||||
@@ -3095,6 +3097,7 @@ export const Constants: {
|
||||
size: AllowedImageSize,
|
||||
dynamic: boolean,
|
||||
): string;
|
||||
AvatarDecoration(userId: Snowflake, hash: string, format: AllowedImageFormat, size: AllowedImageSize): string;
|
||||
Banner(id: Snowflake, hash: string, format: DynamicImageFormat, size: AllowedImageSize, dynamic: boolean): string;
|
||||
DefaultAvatar(index: number): string;
|
||||
DiscoverySplash(guildId: Snowflake, hash: string, format: AllowedImageFormat, size: AllowedImageSize): string;
|
||||
|
||||
Reference in New Issue
Block a user