diff options
| author | Adelyn Breelove <[email protected]> | 2019-01-21 13:50:14 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2019-01-21 13:50:14 -0700 |
| commit | 3dfa0c4d0247bfddae476372414808cd219004f8 (patch) | |
| tree | 2b0b4b8f7846918c55b6b698454c9d63251dbd1a /lib | |
| parent | Fix sharding logic (diff) | |
| download | disml-3dfa0c4d0247bfddae476372414808cd219004f8.tar.xz disml-3dfa0c4d0247bfddae476372414808cd219004f8.zip | |
Add status change command example
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/client.ml | 3 | ||||
| -rw-r--r-- | lib/client.mli | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/client.ml b/lib/client.ml index 3b0024d..72be653 100644 --- a/lib/client.ml +++ b/lib/client.ml @@ -4,14 +4,13 @@ include Dispatch type t = { sharder: Sharder.t; - token: string; } let start ?count token = Client_options.token := token; Sharder.start ?count () >>| fun sharder -> - { sharder; token; } + { sharder; } let set_status ~status client = Sharder.set_status ~status client.sharder diff --git a/lib/client.mli b/lib/client.mli index 333715f..3e79a39 100644 --- a/lib/client.mli +++ b/lib/client.mli @@ -6,7 +6,6 @@ include module type of Dispatch (** Type of the Client, it isn't recommended to access the fields directly. *) type t = { sharder: Sharder.t; - token: string; } (** Start the Client. This begins shard connections to Discord and event handlers should be registered prior to calling this. |