diff options
| author | Adelyn Breelove <[email protected]> | 2018-12-20 16:03:27 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2018-12-20 16:03:27 -0700 |
| commit | 9e3c97eb4f5d8a808844cb2e448371ce1cc150e1 (patch) | |
| tree | 2337d229ea595c25dbff88e1b100b91690b21ad4 /lib/models/channel.ml | |
| parent | Fix member abstraction and helper methods (diff) | |
| download | disml-9e3c97eb4f5d8a808844cb2e448371ce1cc150e1.tar.xz disml-9e3c97eb4f5d8a808844cb2e448371ce1cc150e1.zip | |
Working with Discord's channel bullshit
Diffstat (limited to 'lib/models/channel.ml')
| -rw-r--r-- | lib/models/channel.ml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/models/channel.ml b/lib/models/channel.ml index 328cc94..d52be05 100644 --- a/lib/models/channel.ml +++ b/lib/models/channel.ml @@ -1,3 +1,12 @@ +let id (ch:Channel_t.t) = match ch with +| `Group g -> g.id +| `Private p -> p.id +| `GuildText t -> t.id +| `GuildVoice v -> v.id +| `Category c -> c.id + module Make(Http : S.Http) = struct + (* open Channel_t *) + type t = Channel_t.t end
\ No newline at end of file |