summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/models/Message.ts13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/models/Message.ts b/src/models/Message.ts

index 48bc4f41..e39c2416 100644 --- a/src/models/Message.ts +++ b/src/models/Message.ts
@@ -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