aboutsummaryrefslogtreecommitdiff
path: root/lib/guild.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/guild.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/guild.atd')
-rw-r--r--lib/guild.atd36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/guild.atd b/lib/guild.atd
new file mode 100644
index 0000000..c290b5f
--- /dev/null
+++ b/lib/guild.atd
@@ -0,0 +1,36 @@
+type snowflake <ocaml from="Snowflake" t="t"> = abstract
+type user <ocaml from="User" t="t"> = abstract
+type member <ocaml from="Member" t="member"> = abstract
+type role <ocaml from="Role" t="role"> = abstract
+type channel <ocaml from="Channel" t="channel_wrapper"> = abstract
+type emoji <ocaml from="Emoji" t="t"> = abstract
+
+
+type t = {
+ id: snowflake;
+ name: string;
+ ?icon: string option;
+ ?splash: string option;
+ owner_id: snowflake;
+ region: string;
+ ?afk_channel_id: snowflake option;
+ afk_timeout: int;
+ ?embed_enabled: bool option;
+ ?embed_channel_id: snowflake option;
+ verification_level: int;
+ default_message_notifications: int;
+ explicit_content_filter: int;
+ roles: role list;
+ emojis: emoji list;
+ features: string list;
+ mfa_level: int;
+ ?application_id: snowflake option;
+ ?widget_enabled: bool option;
+ ?widget_channel: channel option;
+ ?system_channel: channel option;
+ ~large: bool;
+ ~unavailable: bool;
+ ?member_count: int option;
+ ~members: member list;
+ ~channels: channel list;
+} \ No newline at end of file