aboutsummaryrefslogtreecommitdiff
path: root/lib/embed.atd
diff options
context:
space:
mode:
authorAdelyn Breedlove <[email protected]>2018-12-21 16:22:49 +0000
committerAdelyn Breedlove <[email protected]>2018-12-21 16:22:49 +0000
commitc23f6b323a7231cd2caee6520dc709799508c87e (patch)
tree4c238d53d2cbd9362f04044351582dd5f5e56d79 /lib/embed.atd
parentMerge branch 'dev' into 'master' (diff)
parentUpdate README (diff)
downloaddisml-c23f6b323a7231cd2caee6520dc709799508c87e.tar.xz
disml-c23f6b323a7231cd2caee6520dc709799508c87e.zip
Merge branch 'dev' into 'master'
Merge work from dev See merge request Mishio595/disml!11
Diffstat (limited to 'lib/embed.atd')
-rw-r--r--lib/embed.atd44
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/embed.atd b/lib/embed.atd
new file mode 100644
index 0000000..0d3aed4
--- /dev/null
+++ b/lib/embed.atd
@@ -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