Update index.d.ts

This commit is contained in:
John Marlo 2022-04-01 17:05:35 +08:00 committed by GitHub
parent 91a717b635
commit dd372a2dd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
typings/index.d.ts vendored
View File

@ -1761,7 +1761,7 @@ export class MessageEmbed {
}
export class WebEmbed {
public constructor(data?: MessageEmbed | MessageEmbedOptions | APIEmbed);
public constructor(data?: WebEmbed | WebEmbedOptions);
public author: MessageEmbedAuthor | null;
public color: number | null;
public description: string | null;
@ -5172,6 +5172,23 @@ export interface MessageEmbedImage {
width?: number;
}
export interface WebEmbedOptions {
shorten?: boolean;
hidden?: boolean;
title?: string;
description?: string;
url?: string;
timestamp?: Date | number;
color?: ColorResolvable;
fields?: EmbedFieldData[];
author?: Partial<MessageEmbedAuthor> & { icon_url?: string; proxy_icon_url?: string };
thumbnail?: Partial<MessageEmbedThumbnail> & { proxy_url?: string };
image?: Partial<MessageEmbedImage> & { proxy_url?: string };
video?: Partial<MessageEmbedVideo> & { proxy_url?: string };
footer?: Partial<MessageEmbedFooter> & { icon_url?: string; proxy_icon_url?: string };
}
export interface MessageEmbedOptions {
title?: string;
description?: string;