summary refs log tree commit diff
path: root/src/models/Message.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-28 22:07:08 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-28 22:07:08 +0200
commit7f848b2c24126c3838bbf0031ee12f0da5826ef8 (patch)
tree7fff044d4e10fae8f9e0900cea3bfddcdcd2c1fb /src/models/Message.ts
parent1.3.8 (diff)
downloadserver-7f848b2c24126c3838bbf0031ee12f0da5826ef8.tar.xz
:bug: fix Message embed type
Diffstat (limited to 'src/models/Message.ts')
-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