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/role.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/role.atd')
| -rw-r--r-- | lib/role.atd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/role.atd b/lib/role.atd new file mode 100644 index 0000000..5b4431e --- /dev/null +++ b/lib/role.atd @@ -0,0 +1,22 @@ +type snowflake <ocaml from="Snowflake" t="t"> = abstract + +type role = { + id: snowflake; + name: string; + colour <json name="color">: int; + hoist: bool; + position: int; + permissions: int; + managed: bool; + mentionable: bool; +} + +type role_update = { + role: role; + id <json name="guild_id">: snowflake; +} + +type t = { + inherit role; + guild_id: snowflake; + }
\ No newline at end of file |