diff options
| author | Adelyn Breedlove <[email protected]> | 2019-01-28 10:31:51 -0700 |
|---|---|---|
| committer | Adelyn Breedlove <[email protected]> | 2019-01-28 10:31:51 -0700 |
| commit | 8662e92987c437f59d09896a247ec2b5d82c4528 (patch) | |
| tree | f004cc14598351d4ad6b19d8e993d2f629c5e738 /lib/client.ml | |
| parent | Add more docs (diff) | |
| download | disml-8662e92987c437f59d09896a247ec2b5d82c4528.tar.xz disml-8662e92987c437f59d09896a247ec2b5d82c4528.zip | |
Publish docs updates
Diffstat (limited to 'lib/client.ml')
| -rw-r--r-- | lib/client.ml | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/client.ml b/lib/client.ml index 72be653..9fac420 100644 --- a/lib/client.ml +++ b/lib/client.ml @@ -1,22 +1,22 @@ -open Async -include Client_options -include Dispatch - -type t = { - sharder: Sharder.t; -} - -let start ?count token = - Client_options.token := token; - Sharder.start ?count () - >>| fun sharder -> - { sharder; } - -let set_status ~status client = - Sharder.set_status ~status client.sharder - -let set_status_with ~f client = - Sharder.set_status_with ~f client.sharder - -let request_guild_members ~guild ?query ?limit client = +open Async
+include Client_options
+include Dispatch
+
+type t = {
+ sharder: Sharder.t;
+}
+
+let start ?count token =
+ Client_options.token := token;
+ Sharder.start ?count ()
+ >>| fun sharder ->
+ { sharder; }
+
+let set_status ~status client =
+ Sharder.set_status ~status client.sharder
+
+let set_status_with ~f client =
+ Sharder.set_status_with ~f client.sharder
+
+let request_guild_members ~guild ?query ?limit client =
Sharder.request_guild_members ~guild ?query ?limit client.sharder
\ No newline at end of file |