diff options
| author | Adelyn Breelove <[email protected]> | 2018-12-19 13:44:04 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2018-12-19 13:44:04 -0700 |
| commit | 1a73007b3aaa17940173eaff1eb4f6703fd9ec0c (patch) | |
| tree | f8563e2a2ab407c616fd40333d42cdd741e93344 /lib/guild.atd | |
| parent | Some refactoring of http code (diff) | |
| download | disml-1a73007b3aaa17940173eaff1eb4f6703fd9ec0c.tar.xz disml-1a73007b3aaa17940173eaff1eb4f6703fd9ec0c.zip | |
Re-arrange autogen serialization files and incorporate into dune file
Diffstat (limited to 'lib/guild.atd')
| -rw-r--r-- | lib/guild.atd | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/guild.atd b/lib/guild.atd new file mode 100644 index 0000000..aec3f86 --- /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="t"> = abstract +type role <ocaml from="Role" t="role"> = abstract +type channel <ocaml from="Channel" t="t"> = 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 option; + ?unavailable: bool option; + ?member_count: int option; + ~members: member list; + ~channels: channel list; +}
\ No newline at end of file |