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-30 01:45:22 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-30 01:45:22 +0200
commit16099a7b245bf89b1c793d068fa94a1b252a91f8 (patch)
tree4f7f69faeaf42510bc2f38d16e2daaaf8430e24f /src/models/Message.ts
parent1.3.10 (diff)
downloadserver-16099a7b245bf89b1c793d068fa94a1b252a91f8.tar.xz
fix message model
Diffstat (limited to 'src/models/Message.ts')
-rw-r--r--src/models/Message.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/models/Message.ts b/src/models/Message.ts

index e39c2416..c8ea8395 100644 --- a/src/models/Message.ts +++ b/src/models/Message.ts
@@ -125,8 +125,9 @@ export interface Attachment { size: number; // size of file in bytes url: string; // source url of file proxy_url: string; // a proxied url of file - height: number; // height of file (if image) - width: number; // width of file (if image) + height?: number; // height of file (if image) + width?: number; // width of file (if image) + content_type?: string; } export interface Embed { @@ -205,6 +206,7 @@ export const Attachment = { proxy_url: String, // a proxied url of file height: Number, // height of file (if image) width: Number, // width of file (if image) + content_type: String, }; export const EmbedImage = {