diff options
| author | Adelyn Breedlove <[email protected]> | 2019-01-27 14:09:33 -0700 |
|---|---|---|
| committer | Adelyn Breedlove <[email protected]> | 2019-01-27 14:09:33 -0700 |
| commit | fbd3597c7ab798cf10a447eb2b477dd4e3ed6d33 (patch) | |
| tree | 16d1ef889e9c6f1090dd911e6fb31392625066c2 /lib/models/guild/role_t.ml | |
| parent | hopeful reconnection fix (diff) | |
| download | disml-fbd3597c7ab798cf10a447eb2b477dd4e3ed6d33.tar.xz disml-fbd3597c7ab798cf10a447eb2b477dd4e3ed6d33.zip | |
Switch to ID abstractions internally
Diffstat (limited to 'lib/models/guild/role_t.ml')
| -rw-r--r-- | lib/models/guild/role_t.ml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/models/guild/role_t.ml b/lib/models/guild/role_t.ml index 9ae53a1..f012a15 100644 --- a/lib/models/guild/role_t.ml +++ b/lib/models/guild/role_t.ml @@ -1,7 +1,7 @@ open Core type role = { - id: Snowflake.t; + id: Role_id.t; name: string; colour: int [@key "color"]; hoist: bool; @@ -12,7 +12,7 @@ type role = { } [@@deriving sexp, yojson { strict = false}] type t = { - id: Snowflake.t; + id: Role_id.t; name: string; colour: int [@key "color"]; hoist: bool; @@ -20,8 +20,8 @@ type t = { permissions: int; managed: bool; mentionable: bool; - guild_id: Snowflake.t; + guild_id: Guild_id_t.t; } [@@deriving sexp, yojson { strict = false}] 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 + {id;name;colour;hoist;position;permissions;managed;mentionable;guild_id = `Guild_id guild_id}
\ No newline at end of file |