diff options
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 |