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 = {
|