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

index 2dd54f0c..f9bfcc67 100644 --- a/api/src/schema/Message.ts +++ b/api/src/schema/Message.ts
@@ -1,6 +1,12 @@ -import { Embed, EmbedImage } from "@fosscord/util"; +import { Embed } from "@fosscord/util"; import { Length } from "../util/instanceOf"; +export const EmbedImage = { + $url: String, + $width: Number, + $height: Number +}; + export const MessageCreateSchema = { $content: new Length(String, 0, 2000), $nonce: String,