diff options
| author | Adelyn Breelove <[email protected]> | 2019-01-10 13:12:49 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2019-01-10 13:12:49 -0700 |
| commit | b9ee77f8153090e9d47e73ab195540d10720c7b6 (patch) | |
| tree | d36bdb7ce17e03ee1bdb60d6b638f8ac6e022711 /lib/models/role_t.ml | |
| parent | Why are events so confusing (diff) | |
| download | disml-b9ee77f8153090e9d47e73ab195540d10720c7b6.tar.xz disml-b9ee77f8153090e9d47e73ab195540d10720c7b6.zip | |
AAAAAAAAAAAAAAAAAAAAAAAA
Diffstat (limited to 'lib/models/role_t.ml')
| -rw-r--r-- | lib/models/role_t.ml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/models/role_t.ml b/lib/models/role_t.ml new file mode 100644 index 0000000..88b2a4e --- /dev/null +++ b/lib/models/role_t.ml @@ -0,0 +1,30 @@ +type role = { + id: Snowflake.t; + name: string; + colour: int [@key "color"]; + hoist: bool; + position: int; + permissions: int; + managed: bool; + mentionable: bool; +} [@@deriving yojson] + +type role_update = { + role: role; + guild_id: Snowflake.t; +} [@@deriving yojson] + +type t = { + id: Snowflake.t; + name: string; + colour: int [@key "color"]; + hoist: bool; + position: int; + permissions: int; + managed: bool; + mentionable: bool; + guild_id: Snowflake.t; +} [@@deriving yojson] + +let wrap ~guild_id ({id;name;colour;hoist;position;permissions;managed;mentionable}:role) = + {id;name;colour;hoist;position;permissions;managed;mentionable;guild_id}
\ No newline at end of file |