aboutsummaryrefslogtreecommitdiff
path: root/lib/models/channel/channel_t.mli
diff options
context:
space:
mode:
authorAdelyn Breelove <[email protected]>2019-02-19 08:44:59 -0700
committerAdelyn Breelove <[email protected]>2019-02-19 08:44:59 -0700
commit5d3f7eb6b08400547b7f0ee2b075d6b133bc90eb (patch)
treedad047c149379ff99b5d563abbfff0739b8f40cf /lib/models/channel/channel_t.mli
parentUpdate License (diff)
downloaddisml-5d3f7eb6b08400547b7f0ee2b075d6b133bc90eb.tar.xz
disml-5d3f7eb6b08400547b7f0ee2b075d6b133bc90eb.zip
Change channel.t to use more flexible variant
Diffstat (limited to 'lib/models/channel/channel_t.mli')
-rw-r--r--lib/models/channel/channel_t.mli14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/models/channel/channel_t.mli b/lib/models/channel/channel_t.mli
index 313939f..4193c47 100644
--- a/lib/models/channel/channel_t.mli
+++ b/lib/models/channel/channel_t.mli
@@ -52,13 +52,13 @@ type category = {
} [@@deriving sexp, yojson { exn = true }]
(** Wrapper variant for all channel types. *)
-type t =
-| Group of group
-| Private of dm
-| GuildText of guild_text
-| GuildVoice of guild_voice
-| Category of category
-[@@deriving sexp, yojson { exn = true }]
+type t = [
+| `Group of group
+| `Private of dm
+| `GuildText of guild_text
+| `GuildVoice of guild_voice
+| `Category of category
+] [@@deriving sexp, yojson { exn = true }]
(** Intermediate used internally. *)
type channel_wrapper = {