Add RichEmbed to typings (#1009)

This commit is contained in:
Zack Campbell
2016-12-22 13:50:28 -06:00
committed by Schuyler Cebulskie
parent fa7d63a10a
commit 4580f62a1f

24
typings/index.d.ts vendored
View File

@@ -479,6 +479,30 @@ declare module "discord.js" {
name: string;
url: string;
}
export class RichEmbed {
title?: string;
description?: string;
url?: string;
timestamp?: Date;
color?: number | string;
fields?: { name: string; value: string; inline?: boolean; }[];
author?: { name: string; url?: string; icon_url?: string; };
thumbnail?: { url: string; height?: number; width?: number; };
image?: { url: string; proxy_url?: string; height?: number; width?: number; };
video?: { url: string; height: number; width: number; };
footer?: { text?: string; icon_url?: string; };
addField(name: string, value: StringResolvable, inline?: boolean): this;
setAuthor(name: string, icon?: string, url?: string): this;
setColor(color: string | number | number[]): this;
setDescription(description: string): this;
setFooter(text: string, icon: string): this;
setImage(url: string): this;
setThumbnail(url: string): this;
setTimestamp(timestamp?: Date): this;
setTitle(title: string): this;
setURL(url: string): this;
}
export class MessageAttachment {
client: Client;
filename: string;