🐛 fix Message embed type

This commit is contained in:
Flam3rboy 2021-05-28 22:07:08 +02:00
parent 5c46ac04d0
commit 7f848b2c24

View File

@ -131,7 +131,7 @@ export interface Attachment {
export interface Embed {
title?: string; //title of embed
type?: string; // type of embed (always "rich" for webhook embeds)
type?: EmbedType; // type of embed (always "rich" for webhook embeds)
description?: string; // description of embed
url?: string; // url of embed
timestamp?: Date; // timestamp of embed content
@ -161,6 +161,15 @@ export interface Embed {
}[];
}
export enum EmbedType {
rich = "rich",
image = "image",
video = "video",
gifv = "gifv",
article = "article",
link = "link",
}
export interface EmbedImage {
url?: string;
proxy_url?: string;
@ -217,7 +226,7 @@ const Reaction = {
export const Embed = {
title: String, //title of embed
type: String, // type of embed (always "rich" for webhook embeds)
type: { type: String }, // type of embed (always "rich" for webhook embeds)
description: String, // description of embed
url: String, // url of embed
timestamp: Date, // timestamp of embed content