diff options
| author | Matias Goldfeld <[email protected]> | 2021-01-29 13:40:29 -0500 |
|---|---|---|
| committer | Matias Goldfeld <[email protected]> | 2021-01-29 13:40:29 -0500 |
| commit | 7ad203a0249bd9db50dfb1df4adb9b7483406e30 (patch) | |
| tree | 52696cb3e1c16a84513fb90fe50c3738ce4539cb /lib/models/guild/role_t.mli | |
| parent | Started conversion to ppx_yojson_conv (diff) | |
| download | disml-7ad203a0249bd9db50dfb1df4adb9b7483406e30.tar.xz disml-7ad203a0249bd9db50dfb1df4adb9b7483406e30.zip | |
Revert "Started conversion to ppx_yojson_conv"
This reverts commit c937240fdd2036edd493debb76117165e4084e8b.
Diffstat (limited to 'lib/models/guild/role_t.mli')
| -rw-r--r-- | lib/models/guild/role_t.mli | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/guild/role_t.mli b/lib/models/guild/role_t.mli index 630ba53..98c1559 100644 --- a/lib/models/guild/role_t.mli +++ b/lib/models/guild/role_t.mli @@ -8,7 +8,7 @@ type role = { permissions: Permissions.t;
managed: bool;
mentionable: bool;
-} [@@deriving sexp, yojson]
+} [@@deriving sexp, yojson { exn = true }]
(** A role object. *)
type t = {
@@ -21,7 +21,7 @@ type t = { managed: bool; (** Whether the guild is managed by an integration. *)
mentionable: bool; (** Whether the role can be mentioned. *)
guild_id: Guild_id_t.t; (** The guild ID this role belongs to. *)
-} [@@deriving sexp, yojson]
+} [@@deriving sexp, yojson { exn = true }]
(** Convenience method to produce {!t} from {!role} and a snowflake. *)
val wrap : guild_id:Snowflake.t -> role -> t
\ No newline at end of file |