diff options
| author | Adelyn Breedlove <[email protected]> | 2019-02-20 10:16:52 -0700 |
|---|---|---|
| committer | Adelyn Breedlove <[email protected]> | 2019-02-20 10:16:52 -0700 |
| commit | 4295208b94245ee513eaabd06381b7f700376115 (patch) | |
| tree | e1abac09378d4b55a29df37f51fa93182a60023f /lib/models/permissions.mli | |
| parent | Add permissions to role models (diff) | |
| download | disml-4295208b94245ee513eaabd06381b7f700376115.tar.xz disml-4295208b94245ee513eaabd06381b7f700376115.zip | |
Fix permissions and add more conversions
Diffstat (limited to 'lib/models/permissions.mli')
| -rw-r--r-- | lib/models/permissions.mli | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/models/permissions.mli b/lib/models/permissions.mli index 74ed563..6e4d30a 100644 --- a/lib/models/permissions.mli +++ b/lib/models/permissions.mli @@ -28,7 +28,14 @@ type elt = | MANAGE_ROLES | MANAGE_WEBHOOKS | MANAGE_EMOJIS +[@@deriving sexp] include BitMaskSet.S with type elt := elt with type storage = int - with type t = private int
\ No newline at end of file + with type t = private int + +val sexp_of_t : t -> Sexplib.Sexp.t +val t_of_sexp : Sexplib.Sexp.t -> t +val of_yojson_exn : Yojson.Safe.t -> t +val of_yojson : Yojson.Safe.t -> (t, string) result +val to_yojson : t -> Yojson.Safe.t
\ No newline at end of file |