diff options
| author | Mishio595 <[email protected]> | 2018-11-25 16:02:37 -0700 |
|---|---|---|
| committer | Mishio595 <[email protected]> | 2018-11-25 16:02:37 -0700 |
| commit | 011e3224c0292dfcb0024daf474d4ef1e00b82f0 (patch) | |
| tree | a04caad1d49ee4092cfb3bb3506ad5dba85120a4 /lib/models/embed.ml | |
| parent | Major structural changes (diff) | |
| download | disml-011e3224c0292dfcb0024daf474d4ef1e00b82f0.tar.xz disml-011e3224c0292dfcb0024daf474d4ef1e00b82f0.zip | |
A lot is going on...
Diffstat (limited to 'lib/models/embed.ml')
| -rw-r--r-- | lib/models/embed.ml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/models/embed.ml b/lib/models/embed.ml new file mode 100644 index 0000000..6ba1115 --- /dev/null +++ b/lib/models/embed.ml @@ -0,0 +1,44 @@ +type footer = { + text: string; + icon_url: string option; + proxy_icon_url: string option; +} + +type image = { + url: string option; + proxy_url: string option; + height: int option; + width: int option; +} + +type video = { + url: string option; + height: int option; + width: int option; +} + +type provider = { + name: string option; + url: string option; +} + +type field = { + name: string; + value: string; + inline: bool option; +} + +type t = { + title: string option; + kind: string option; + description: string option; + url: string option; + timestamp: string option; + colour: int option; + footer: footer option; + image: image option; + thumbnail: image option; + video: video option; + provider: provider option; + fields: (field list) option; +}
\ No newline at end of file |