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 | |
| parent | Add more docs (diff) | |
| download | disml-8662e92987c437f59d09896a247ec2b5d82c4528.tar.xz disml-8662e92987c437f59d09896a247ec2b5d82c4528.zip | |
Publish docs updates
307 files changed, 3807 insertions, 3491 deletions
@@ -1,93 +1,93 @@ -open Async -open Core -open Disml -open Models - -let client = Ivar.create () - -let check_command (Event.MessageCreate.{message}) = - let cmd, rest = match String.split ~on:' ' message.content with - | hd::tl -> hd, tl - | [] -> "", [] - in match cmd with - | "!ping" -> - Message.reply message "Pong!" >>= begin fun message -> - let message = match message with Ok m -> m | Error e -> Error.raise e in - let diff = Time.diff (Time.now ()) (Time.of_string message.timestamp) in - Message.set_content message (Printf.sprintf "Pong! `%d ms`" (Time.Span.to_ms diff |> Float.abs |> Float.to_int)) - end >>> ignore - | "!spam" -> - let count = Option.((List.hd rest >>| Int.of_string) |> value ~default:0) in - List.range 0 count - |> List.iter ~f:(fun i -> Message.reply message (string_of_int i) >>> ignore) - | "!list" -> - let count = Option.((List.hd rest >>| Int.of_string) |> value ~default:0) in - let list = List.range 0 count - |> List.sexp_of_t Int.sexp_of_t - |> Sexp.to_string_hum in - Message.reply message list >>> begin function - | Ok msg -> print_endline msg.content - | Error err -> print_endline (Error.to_string_hum err) - end - | "!fold" -> - let count = Option.((List.hd rest >>| Int.of_string) |> value ~default:0) in - let list = List.range 0 count - |> List.fold ~init:0 ~f:(+) - |> Int.to_string in - Message.reply message list >>> ignore - | "!embed" -> - let image_url = "https://cdn.discordapp.com/avatars/345316276098433025/17ccdc992814cc6e21a9e7d743a30e37.png" in - let embed = Embed.(default - |> title "Foo" - |> description "Bar" - |> url "https://gitlab.com/Mishio595/disml" - |> timestamp Time.(now () |> to_string_iso8601_basic ~zone:Time.Zone.utc) - |> colour 0xff - |> footer (fun f -> footer_text "boop" f) - |> image image_url - |> thumbnail image_url - |> author (fun a -> a - |> author_name "Adelyn" - |> author_icon image_url - |> author_url "https://gitlab.com/Mishio595/disml") - |> field ("field 3", "test", true) - |> field ("field 2", "test", true) - |> field ("field 1", "test", true) - ) in - Message.reply_with ~embed message >>> ignore - | "!status" -> - let status = List.fold ~init:"" ~f:(fun a v -> a ^ " " ^ v) rest in - Ivar.read client >>> fun client -> - Client.set_status ~status:(`String status) client - >>> fun _ -> - Message.reply message "Updated status" >>> ignore - | "!test" -> - let ch = `Channel_id 377716501446393856 in - Channel_id.say "Testing..." ch >>> ignore - | "!echo" -> - let `Message_id id = message.id in - let id = Option.((List.hd rest >>| Int.of_string) |> value ~default:id) in - Channel_id.get_message ~id message.channel_id >>> begin function - | Ok msg -> Message.reply message (Printf.sprintf "```lisp\n%s```" (Message.sexp_of_t msg |> Sexp.to_string_hum)) >>> ignore - | _ -> () - end - | _ -> () - -let setup_logger () = - Logs.set_reporter (Logs_fmt.reporter ()); - Logs.set_level ~all:true (Some Logs.Debug) - -let main () = - setup_logger (); - Client.message_create := check_command; - Client.ready := (fun _ -> Logs.info (fun m -> m "Logged in")); - let token = match Sys.getenv "DISCORD_TOKEN" with - | Some t -> t - | None -> failwith "No token in env" - in - Client.start token - >>> fun c -> - Ivar.fill client c - -let _ = - Scheduler.go_main ~main () +open Async
+open Core
+open Disml
+open Models
+
+let client = Ivar.create ()
+
+let check_command (Event.MessageCreate.{message}) =
+ let cmd, rest = match String.split ~on:' ' message.content with
+ | hd::tl -> hd, tl
+ | [] -> "", []
+ in match cmd with
+ | "!ping" ->
+ Message.reply message "Pong!" >>= begin fun message ->
+ let message = match message with Ok m -> m | Error e -> Error.raise e in
+ let diff = Time.diff (Time.now ()) (Time.of_string message.timestamp) in
+ Message.set_content message (Printf.sprintf "Pong! `%d ms`" (Time.Span.to_ms diff |> Float.abs |> Float.to_int))
+ end >>> ignore
+ | "!spam" ->
+ let count = Option.((List.hd rest >>| Int.of_string) |> value ~default:0) in
+ List.range 0 count
+ |> List.iter ~f:(fun i -> Message.reply message (string_of_int i) >>> ignore)
+ | "!list" ->
+ let count = Option.((List.hd rest >>| Int.of_string) |> value ~default:0) in
+ let list = List.range 0 count
+ |> List.sexp_of_t Int.sexp_of_t
+ |> Sexp.to_string_hum in
+ Message.reply message list >>> begin function
+ | Ok msg -> print_endline msg.content
+ | Error err -> print_endline (Error.to_string_hum err)
+ end
+ | "!fold" ->
+ let count = Option.((List.hd rest >>| Int.of_string) |> value ~default:0) in
+ let list = List.range 0 count
+ |> List.fold ~init:0 ~f:(+)
+ |> Int.to_string in
+ Message.reply message list >>> ignore
+ | "!embed" ->
+ let image_url = "https://cdn.discordapp.com/avatars/345316276098433025/17ccdc992814cc6e21a9e7d743a30e37.png" in
+ let embed = Embed.(default
+ |> title "Foo"
+ |> description "Bar"
+ |> url "https://gitlab.com/Mishio595/disml"
+ |> timestamp Time.(now () |> to_string_iso8601_basic ~zone:Time.Zone.utc)
+ |> colour 0xff
+ |> footer (fun f -> footer_text "boop" f)
+ |> image image_url
+ |> thumbnail image_url
+ |> author (fun a -> a
+ |> author_name "Adelyn"
+ |> author_icon image_url
+ |> author_url "https://gitlab.com/Mishio595/disml")
+ |> field ("field 3", "test", true)
+ |> field ("field 2", "test", true)
+ |> field ("field 1", "test", true)
+ ) in
+ Message.reply_with ~embed message >>> ignore
+ | "!status" ->
+ let status = List.fold ~init:"" ~f:(fun a v -> a ^ " " ^ v) rest in
+ Ivar.read client >>> fun client ->
+ Client.set_status ~status:(`String status) client
+ >>> fun _ ->
+ Message.reply message "Updated status" >>> ignore
+ | "!test" ->
+ let ch = `Channel_id 377716501446393856 in
+ Channel_id.say "Testing..." ch >>> ignore
+ | "!echo" ->
+ let `Message_id id = message.id in
+ let id = Option.((List.hd rest >>| Int.of_string) |> value ~default:id) in
+ Channel_id.get_message ~id message.channel_id >>> begin function
+ | Ok msg -> Message.reply message (Printf.sprintf "```lisp\n%s```" (Message.sexp_of_t msg |> Sexp.to_string_hum)) >>> ignore
+ | _ -> ()
+ end
+ | _ -> ()
+
+let setup_logger () =
+ Logs.set_reporter (Logs_fmt.reporter ());
+ Logs.set_level ~all:true (Some Logs.Debug)
+
+let main () =
+ setup_logger ();
+ Client.message_create := check_command;
+ Client.ready := (fun _ -> Logs.info (fun m -> m "Logged in"));
+ let token = match Sys.getenv "DISCORD_TOKEN" with
+ | Some t -> t
+ | None -> failwith "No token in env"
+ in
+ Client.start token
+ >>> fun c ->
+ Ivar.fill client c
+
+let _ =
+ Scheduler.go_main ~main ()
diff --git a/disml.install b/disml.install index 0ab6369..7d67e58 100644 --- a/disml.install +++ b/disml.install @@ -1,171 +1,171 @@ -lib: [ - "_build/install/default/lib/disml/META" {"META"} - "_build/install/default/lib/disml/activity.ml" {"activity.ml"} - "_build/install/default/lib/disml/attachment.ml" {"attachment.ml"} - "_build/install/default/lib/disml/ban.ml" {"ban.ml"} - "_build/install/default/lib/disml/ban.mli" {"ban.mli"} - "_build/install/default/lib/disml/ban_t.ml" {"ban_t.ml"} - "_build/install/default/lib/disml/channel.ml" {"channel.ml"} - "_build/install/default/lib/disml/channel.mli" {"channel.mli"} - "_build/install/default/lib/disml/channel_t.ml" {"channel_t.ml"} - "_build/install/default/lib/disml/client.ml" {"client.ml"} - "_build/install/default/lib/disml/client_options.ml" {"client_options.ml"} - "_build/install/default/lib/disml/client_options.mli" {"client_options.mli"} - "_build/install/default/lib/disml/disml.a" {"disml.a"} - "_build/install/default/lib/disml/disml.cma" {"disml.cma"} - "_build/install/default/lib/disml/disml.cmi" {"disml.cmi"} - "_build/install/default/lib/disml/disml.cmt" {"disml.cmt"} - "_build/install/default/lib/disml/disml.cmx" {"disml.cmx"} - "_build/install/default/lib/disml/disml.cmxa" {"disml.cmxa"} - "_build/install/default/lib/disml/disml.cmxs" {"disml.cmxs"} - "_build/install/default/lib/disml/disml.dune" {"disml.dune"} - "_build/install/default/lib/disml/disml.ml" {"disml.ml"} - "_build/install/default/lib/disml/disml__Activity.cmi" {"disml__Activity.cmi"} - "_build/install/default/lib/disml/disml__Activity.cmt" {"disml__Activity.cmt"} - "_build/install/default/lib/disml/disml__Activity.cmx" {"disml__Activity.cmx"} - "_build/install/default/lib/disml/disml__Attachment.cmi" {"disml__Attachment.cmi"} - "_build/install/default/lib/disml/disml__Attachment.cmt" {"disml__Attachment.cmt"} - "_build/install/default/lib/disml/disml__Attachment.cmx" {"disml__Attachment.cmx"} - "_build/install/default/lib/disml/disml__Ban.cmi" {"disml__Ban.cmi"} - "_build/install/default/lib/disml/disml__Ban.cmt" {"disml__Ban.cmt"} - "_build/install/default/lib/disml/disml__Ban.cmti" {"disml__Ban.cmti"} - "_build/install/default/lib/disml/disml__Ban.cmx" {"disml__Ban.cmx"} - "_build/install/default/lib/disml/disml__Ban_t.cmi" {"disml__Ban_t.cmi"} - "_build/install/default/lib/disml/disml__Ban_t.cmt" {"disml__Ban_t.cmt"} - "_build/install/default/lib/disml/disml__Ban_t.cmx" {"disml__Ban_t.cmx"} - "_build/install/default/lib/disml/disml__Channel.cmi" {"disml__Channel.cmi"} - "_build/install/default/lib/disml/disml__Channel.cmt" {"disml__Channel.cmt"} - "_build/install/default/lib/disml/disml__Channel.cmti" {"disml__Channel.cmti"} - "_build/install/default/lib/disml/disml__Channel.cmx" {"disml__Channel.cmx"} - "_build/install/default/lib/disml/disml__Channel_t.cmi" {"disml__Channel_t.cmi"} - "_build/install/default/lib/disml/disml__Channel_t.cmt" {"disml__Channel_t.cmt"} - "_build/install/default/lib/disml/disml__Channel_t.cmx" {"disml__Channel_t.cmx"} - "_build/install/default/lib/disml/disml__Client.cmi" {"disml__Client.cmi"} - "_build/install/default/lib/disml/disml__Client.cmt" {"disml__Client.cmt"} - "_build/install/default/lib/disml/disml__Client.cmx" {"disml__Client.cmx"} - "_build/install/default/lib/disml/disml__Client_options.cmi" {"disml__Client_options.cmi"} - "_build/install/default/lib/disml/disml__Client_options.cmt" {"disml__Client_options.cmt"} - "_build/install/default/lib/disml/disml__Client_options.cmti" {"disml__Client_options.cmti"} - "_build/install/default/lib/disml/disml__Client_options.cmx" {"disml__Client_options.cmx"} - "_build/install/default/lib/disml/disml__Dispatch.cmi" {"disml__Dispatch.cmi"} - "_build/install/default/lib/disml/disml__Dispatch.cmt" {"disml__Dispatch.cmt"} - "_build/install/default/lib/disml/disml__Dispatch.cmti" {"disml__Dispatch.cmti"} - "_build/install/default/lib/disml/disml__Dispatch.cmx" {"disml__Dispatch.cmx"} - "_build/install/default/lib/disml/disml__Embed.cmi" {"disml__Embed.cmi"} - "_build/install/default/lib/disml/disml__Embed.cmt" {"disml__Embed.cmt"} - "_build/install/default/lib/disml/disml__Embed.cmx" {"disml__Embed.cmx"} - "_build/install/default/lib/disml/disml__Emoji.cmi" {"disml__Emoji.cmi"} - "_build/install/default/lib/disml/disml__Emoji.cmt" {"disml__Emoji.cmt"} - "_build/install/default/lib/disml/disml__Emoji.cmx" {"disml__Emoji.cmx"} - "_build/install/default/lib/disml/disml__Endpoints.cmi" {"disml__Endpoints.cmi"} - "_build/install/default/lib/disml/disml__Endpoints.cmt" {"disml__Endpoints.cmt"} - "_build/install/default/lib/disml/disml__Endpoints.cmti" {"disml__Endpoints.cmti"} - "_build/install/default/lib/disml/disml__Endpoints.cmx" {"disml__Endpoints.cmx"} - "_build/install/default/lib/disml/disml__Event.cmi" {"disml__Event.cmi"} - "_build/install/default/lib/disml/disml__Event.cmt" {"disml__Event.cmt"} - "_build/install/default/lib/disml/disml__Event.cmx" {"disml__Event.cmx"} - "_build/install/default/lib/disml/disml__Guild.cmi" {"disml__Guild.cmi"} - "_build/install/default/lib/disml/disml__Guild.cmt" {"disml__Guild.cmt"} - "_build/install/default/lib/disml/disml__Guild.cmti" {"disml__Guild.cmti"} - "_build/install/default/lib/disml/disml__Guild.cmx" {"disml__Guild.cmx"} - "_build/install/default/lib/disml/disml__Guild_t.cmi" {"disml__Guild_t.cmi"} - "_build/install/default/lib/disml/disml__Guild_t.cmt" {"disml__Guild_t.cmt"} - "_build/install/default/lib/disml/disml__Guild_t.cmx" {"disml__Guild_t.cmx"} - "_build/install/default/lib/disml/disml__Http.cmi" {"disml__Http.cmi"} - "_build/install/default/lib/disml/disml__Http.cmt" {"disml__Http.cmt"} - "_build/install/default/lib/disml/disml__Http.cmti" {"disml__Http.cmti"} - "_build/install/default/lib/disml/disml__Http.cmx" {"disml__Http.cmx"} - "_build/install/default/lib/disml/disml__Member.cmi" {"disml__Member.cmi"} - "_build/install/default/lib/disml/disml__Member.cmt" {"disml__Member.cmt"} - "_build/install/default/lib/disml/disml__Member.cmti" {"disml__Member.cmti"} - "_build/install/default/lib/disml/disml__Member.cmx" {"disml__Member.cmx"} - "_build/install/default/lib/disml/disml__Member_t.cmi" {"disml__Member_t.cmi"} - "_build/install/default/lib/disml/disml__Member_t.cmt" {"disml__Member_t.cmt"} - "_build/install/default/lib/disml/disml__Member_t.cmx" {"disml__Member_t.cmx"} - "_build/install/default/lib/disml/disml__Message.cmi" {"disml__Message.cmi"} - "_build/install/default/lib/disml/disml__Message.cmt" {"disml__Message.cmt"} - "_build/install/default/lib/disml/disml__Message.cmti" {"disml__Message.cmti"} - "_build/install/default/lib/disml/disml__Message.cmx" {"disml__Message.cmx"} - "_build/install/default/lib/disml/disml__Message_t.cmi" {"disml__Message_t.cmi"} - "_build/install/default/lib/disml/disml__Message_t.cmt" {"disml__Message_t.cmt"} - "_build/install/default/lib/disml/disml__Message_t.cmx" {"disml__Message_t.cmx"} - "_build/install/default/lib/disml/disml__Opcode.cmi" {"disml__Opcode.cmi"} - "_build/install/default/lib/disml/disml__Opcode.cmt" {"disml__Opcode.cmt"} - "_build/install/default/lib/disml/disml__Opcode.cmti" {"disml__Opcode.cmti"} - "_build/install/default/lib/disml/disml__Opcode.cmx" {"disml__Opcode.cmx"} - "_build/install/default/lib/disml/disml__Presence.cmi" {"disml__Presence.cmi"} - "_build/install/default/lib/disml/disml__Presence.cmt" {"disml__Presence.cmt"} - "_build/install/default/lib/disml/disml__Presence.cmx" {"disml__Presence.cmx"} - "_build/install/default/lib/disml/disml__Reaction.cmi" {"disml__Reaction.cmi"} - "_build/install/default/lib/disml/disml__Reaction.cmt" {"disml__Reaction.cmt"} - "_build/install/default/lib/disml/disml__Reaction.cmti" {"disml__Reaction.cmti"} - "_build/install/default/lib/disml/disml__Reaction.cmx" {"disml__Reaction.cmx"} - "_build/install/default/lib/disml/disml__Reaction_t.cmi" {"disml__Reaction_t.cmi"} - "_build/install/default/lib/disml/disml__Reaction_t.cmt" {"disml__Reaction_t.cmt"} - "_build/install/default/lib/disml/disml__Reaction_t.cmx" {"disml__Reaction_t.cmx"} - "_build/install/default/lib/disml/disml__Rl.cmi" {"disml__Rl.cmi"} - "_build/install/default/lib/disml/disml__Rl.cmt" {"disml__Rl.cmt"} - "_build/install/default/lib/disml/disml__Rl.cmti" {"disml__Rl.cmti"} - "_build/install/default/lib/disml/disml__Rl.cmx" {"disml__Rl.cmx"} - "_build/install/default/lib/disml/disml__Role.cmi" {"disml__Role.cmi"} - "_build/install/default/lib/disml/disml__Role.cmt" {"disml__Role.cmt"} - "_build/install/default/lib/disml/disml__Role.cmti" {"disml__Role.cmti"} - "_build/install/default/lib/disml/disml__Role.cmx" {"disml__Role.cmx"} - "_build/install/default/lib/disml/disml__Role_t.cmi" {"disml__Role_t.cmi"} - "_build/install/default/lib/disml/disml__Role_t.cmt" {"disml__Role_t.cmt"} - "_build/install/default/lib/disml/disml__Role_t.cmx" {"disml__Role_t.cmx"} - "_build/install/default/lib/disml/disml__Sharder.cmi" {"disml__Sharder.cmi"} - "_build/install/default/lib/disml/disml__Sharder.cmt" {"disml__Sharder.cmt"} - "_build/install/default/lib/disml/disml__Sharder.cmti" {"disml__Sharder.cmti"} - "_build/install/default/lib/disml/disml__Sharder.cmx" {"disml__Sharder.cmx"} - "_build/install/default/lib/disml/disml__Snowflake.cmi" {"disml__Snowflake.cmi"} - "_build/install/default/lib/disml/disml__Snowflake.cmt" {"disml__Snowflake.cmt"} - "_build/install/default/lib/disml/disml__Snowflake.cmx" {"disml__Snowflake.cmx"} - "_build/install/default/lib/disml/disml__User.cmi" {"disml__User.cmi"} - "_build/install/default/lib/disml/disml__User.cmt" {"disml__User.cmt"} - "_build/install/default/lib/disml/disml__User.cmti" {"disml__User.cmti"} - "_build/install/default/lib/disml/disml__User.cmx" {"disml__User.cmx"} - "_build/install/default/lib/disml/disml__User_t.cmi" {"disml__User_t.cmi"} - "_build/install/default/lib/disml/disml__User_t.cmt" {"disml__User_t.cmt"} - "_build/install/default/lib/disml/disml__User_t.cmx" {"disml__User_t.cmx"} - "_build/install/default/lib/disml/dispatch.ml" {"dispatch.ml"} - "_build/install/default/lib/disml/dispatch.mli" {"dispatch.mli"} - "_build/install/default/lib/disml/embed.ml" {"embed.ml"} - "_build/install/default/lib/disml/emoji.ml" {"emoji.ml"} - "_build/install/default/lib/disml/endpoints.ml" {"endpoints.ml"} - "_build/install/default/lib/disml/endpoints.mli" {"endpoints.mli"} - "_build/install/default/lib/disml/event.ml" {"event.ml"} - "_build/install/default/lib/disml/guild.ml" {"guild.ml"} - "_build/install/default/lib/disml/guild.mli" {"guild.mli"} - "_build/install/default/lib/disml/guild_t.ml" {"guild_t.ml"} - "_build/install/default/lib/disml/http.ml" {"http.ml"} - "_build/install/default/lib/disml/http.mli" {"http.mli"} - "_build/install/default/lib/disml/member.ml" {"member.ml"} - "_build/install/default/lib/disml/member.mli" {"member.mli"} - "_build/install/default/lib/disml/member_t.ml" {"member_t.ml"} - "_build/install/default/lib/disml/message.ml" {"message.ml"} - "_build/install/default/lib/disml/message.mli" {"message.mli"} - "_build/install/default/lib/disml/message_t.ml" {"message_t.ml"} - "_build/install/default/lib/disml/opam" {"opam"} - "_build/install/default/lib/disml/opcode.ml" {"opcode.ml"} - "_build/install/default/lib/disml/opcode.mli" {"opcode.mli"} - "_build/install/default/lib/disml/presence.ml" {"presence.ml"} - "_build/install/default/lib/disml/reaction.ml" {"reaction.ml"} - "_build/install/default/lib/disml/reaction.mli" {"reaction.mli"} - "_build/install/default/lib/disml/reaction_t.ml" {"reaction_t.ml"} - "_build/install/default/lib/disml/rl.ml" {"rl.ml"} - "_build/install/default/lib/disml/rl.mli" {"rl.mli"} - "_build/install/default/lib/disml/role.ml" {"role.ml"} - "_build/install/default/lib/disml/role.mli" {"role.mli"} - "_build/install/default/lib/disml/role_t.ml" {"role_t.ml"} - "_build/install/default/lib/disml/sharder.ml" {"sharder.ml"} - "_build/install/default/lib/disml/sharder.mli" {"sharder.mli"} - "_build/install/default/lib/disml/snowflake.ml" {"snowflake.ml"} - "_build/install/default/lib/disml/user.ml" {"user.ml"} - "_build/install/default/lib/disml/user.mli" {"user.mli"} - "_build/install/default/lib/disml/user_t.ml" {"user_t.ml"} -] -doc: [ - "_build/install/default/doc/disml/LICENSE" - "_build/install/default/doc/disml/README.md" -] +lib: [
+ "_build/install/default/lib/disml/META" {"META"}
+ "_build/install/default/lib/disml/activity.ml" {"activity.ml"}
+ "_build/install/default/lib/disml/attachment.ml" {"attachment.ml"}
+ "_build/install/default/lib/disml/ban.ml" {"ban.ml"}
+ "_build/install/default/lib/disml/ban.mli" {"ban.mli"}
+ "_build/install/default/lib/disml/ban_t.ml" {"ban_t.ml"}
+ "_build/install/default/lib/disml/channel.ml" {"channel.ml"}
+ "_build/install/default/lib/disml/channel.mli" {"channel.mli"}
+ "_build/install/default/lib/disml/channel_t.ml" {"channel_t.ml"}
+ "_build/install/default/lib/disml/client.ml" {"client.ml"}
+ "_build/install/default/lib/disml/client_options.ml" {"client_options.ml"}
+ "_build/install/default/lib/disml/client_options.mli" {"client_options.mli"}
+ "_build/install/default/lib/disml/disml.a" {"disml.a"}
+ "_build/install/default/lib/disml/disml.cma" {"disml.cma"}
+ "_build/install/default/lib/disml/disml.cmi" {"disml.cmi"}
+ "_build/install/default/lib/disml/disml.cmt" {"disml.cmt"}
+ "_build/install/default/lib/disml/disml.cmx" {"disml.cmx"}
+ "_build/install/default/lib/disml/disml.cmxa" {"disml.cmxa"}
+ "_build/install/default/lib/disml/disml.cmxs" {"disml.cmxs"}
+ "_build/install/default/lib/disml/disml.dune" {"disml.dune"}
+ "_build/install/default/lib/disml/disml.ml" {"disml.ml"}
+ "_build/install/default/lib/disml/disml__Activity.cmi" {"disml__Activity.cmi"}
+ "_build/install/default/lib/disml/disml__Activity.cmt" {"disml__Activity.cmt"}
+ "_build/install/default/lib/disml/disml__Activity.cmx" {"disml__Activity.cmx"}
+ "_build/install/default/lib/disml/disml__Attachment.cmi" {"disml__Attachment.cmi"}
+ "_build/install/default/lib/disml/disml__Attachment.cmt" {"disml__Attachment.cmt"}
+ "_build/install/default/lib/disml/disml__Attachment.cmx" {"disml__Attachment.cmx"}
+ "_build/install/default/lib/disml/disml__Ban.cmi" {"disml__Ban.cmi"}
+ "_build/install/default/lib/disml/disml__Ban.cmt" {"disml__Ban.cmt"}
+ "_build/install/default/lib/disml/disml__Ban.cmti" {"disml__Ban.cmti"}
+ "_build/install/default/lib/disml/disml__Ban.cmx" {"disml__Ban.cmx"}
+ "_build/install/default/lib/disml/disml__Ban_t.cmi" {"disml__Ban_t.cmi"}
+ "_build/install/default/lib/disml/disml__Ban_t.cmt" {"disml__Ban_t.cmt"}
+ "_build/install/default/lib/disml/disml__Ban_t.cmx" {"disml__Ban_t.cmx"}
+ "_build/install/default/lib/disml/disml__Channel.cmi" {"disml__Channel.cmi"}
+ "_build/install/default/lib/disml/disml__Channel.cmt" {"disml__Channel.cmt"}
+ "_build/install/default/lib/disml/disml__Channel.cmti" {"disml__Channel.cmti"}
+ "_build/install/default/lib/disml/disml__Channel.cmx" {"disml__Channel.cmx"}
+ "_build/install/default/lib/disml/disml__Channel_t.cmi" {"disml__Channel_t.cmi"}
+ "_build/install/default/lib/disml/disml__Channel_t.cmt" {"disml__Channel_t.cmt"}
+ "_build/install/default/lib/disml/disml__Channel_t.cmx" {"disml__Channel_t.cmx"}
+ "_build/install/default/lib/disml/disml__Client.cmi" {"disml__Client.cmi"}
+ "_build/install/default/lib/disml/disml__Client.cmt" {"disml__Client.cmt"}
+ "_build/install/default/lib/disml/disml__Client.cmx" {"disml__Client.cmx"}
+ "_build/install/default/lib/disml/disml__Client_options.cmi" {"disml__Client_options.cmi"}
+ "_build/install/default/lib/disml/disml__Client_options.cmt" {"disml__Client_options.cmt"}
+ "_build/install/default/lib/disml/disml__Client_options.cmti" {"disml__Client_options.cmti"}
+ "_build/install/default/lib/disml/disml__Client_options.cmx" {"disml__Client_options.cmx"}
+ "_build/install/default/lib/disml/disml__Dispatch.cmi" {"disml__Dispatch.cmi"}
+ "_build/install/default/lib/disml/disml__Dispatch.cmt" {"disml__Dispatch.cmt"}
+ "_build/install/default/lib/disml/disml__Dispatch.cmti" {"disml__Dispatch.cmti"}
+ "_build/install/default/lib/disml/disml__Dispatch.cmx" {"disml__Dispatch.cmx"}
+ "_build/install/default/lib/disml/disml__Embed.cmi" {"disml__Embed.cmi"}
+ "_build/install/default/lib/disml/disml__Embed.cmt" {"disml__Embed.cmt"}
+ "_build/install/default/lib/disml/disml__Embed.cmx" {"disml__Embed.cmx"}
+ "_build/install/default/lib/disml/disml__Emoji.cmi" {"disml__Emoji.cmi"}
+ "_build/install/default/lib/disml/disml__Emoji.cmt" {"disml__Emoji.cmt"}
+ "_build/install/default/lib/disml/disml__Emoji.cmx" {"disml__Emoji.cmx"}
+ "_build/install/default/lib/disml/disml__Endpoints.cmi" {"disml__Endpoints.cmi"}
+ "_build/install/default/lib/disml/disml__Endpoints.cmt" {"disml__Endpoints.cmt"}
+ "_build/install/default/lib/disml/disml__Endpoints.cmti" {"disml__Endpoints.cmti"}
+ "_build/install/default/lib/disml/disml__Endpoints.cmx" {"disml__Endpoints.cmx"}
+ "_build/install/default/lib/disml/disml__Event.cmi" {"disml__Event.cmi"}
+ "_build/install/default/lib/disml/disml__Event.cmt" {"disml__Event.cmt"}
+ "_build/install/default/lib/disml/disml__Event.cmx" {"disml__Event.cmx"}
+ "_build/install/default/lib/disml/disml__Guild.cmi" {"disml__Guild.cmi"}
+ "_build/install/default/lib/disml/disml__Guild.cmt" {"disml__Guild.cmt"}
+ "_build/install/default/lib/disml/disml__Guild.cmti" {"disml__Guild.cmti"}
+ "_build/install/default/lib/disml/disml__Guild.cmx" {"disml__Guild.cmx"}
+ "_build/install/default/lib/disml/disml__Guild_t.cmi" {"disml__Guild_t.cmi"}
+ "_build/install/default/lib/disml/disml__Guild_t.cmt" {"disml__Guild_t.cmt"}
+ "_build/install/default/lib/disml/disml__Guild_t.cmx" {"disml__Guild_t.cmx"}
+ "_build/install/default/lib/disml/disml__Http.cmi" {"disml__Http.cmi"}
+ "_build/install/default/lib/disml/disml__Http.cmt" {"disml__Http.cmt"}
+ "_build/install/default/lib/disml/disml__Http.cmti" {"disml__Http.cmti"}
+ "_build/install/default/lib/disml/disml__Http.cmx" {"disml__Http.cmx"}
+ "_build/install/default/lib/disml/disml__Member.cmi" {"disml__Member.cmi"}
+ "_build/install/default/lib/disml/disml__Member.cmt" {"disml__Member.cmt"}
+ "_build/install/default/lib/disml/disml__Member.cmti" {"disml__Member.cmti"}
+ "_build/install/default/lib/disml/disml__Member.cmx" {"disml__Member.cmx"}
+ "_build/install/default/lib/disml/disml__Member_t.cmi" {"disml__Member_t.cmi"}
+ "_build/install/default/lib/disml/disml__Member_t.cmt" {"disml__Member_t.cmt"}
+ "_build/install/default/lib/disml/disml__Member_t.cmx" {"disml__Member_t.cmx"}
+ "_build/install/default/lib/disml/disml__Message.cmi" {"disml__Message.cmi"}
+ "_build/install/default/lib/disml/disml__Message.cmt" {"disml__Message.cmt"}
+ "_build/install/default/lib/disml/disml__Message.cmti" {"disml__Message.cmti"}
+ "_build/install/default/lib/disml/disml__Message.cmx" {"disml__Message.cmx"}
+ "_build/install/default/lib/disml/disml__Message_t.cmi" {"disml__Message_t.cmi"}
+ "_build/install/default/lib/disml/disml__Message_t.cmt" {"disml__Message_t.cmt"}
+ "_build/install/default/lib/disml/disml__Message_t.cmx" {"disml__Message_t.cmx"}
+ "_build/install/default/lib/disml/disml__Opcode.cmi" {"disml__Opcode.cmi"}
+ "_build/install/default/lib/disml/disml__Opcode.cmt" {"disml__Opcode.cmt"}
+ "_build/install/default/lib/disml/disml__Opcode.cmti" {"disml__Opcode.cmti"}
+ "_build/install/default/lib/disml/disml__Opcode.cmx" {"disml__Opcode.cmx"}
+ "_build/install/default/lib/disml/disml__Presence.cmi" {"disml__Presence.cmi"}
+ "_build/install/default/lib/disml/disml__Presence.cmt" {"disml__Presence.cmt"}
+ "_build/install/default/lib/disml/disml__Presence.cmx" {"disml__Presence.cmx"}
+ "_build/install/default/lib/disml/disml__Reaction.cmi" {"disml__Reaction.cmi"}
+ "_build/install/default/lib/disml/disml__Reaction.cmt" {"disml__Reaction.cmt"}
+ "_build/install/default/lib/disml/disml__Reaction.cmti" {"disml__Reaction.cmti"}
+ "_build/install/default/lib/disml/disml__Reaction.cmx" {"disml__Reaction.cmx"}
+ "_build/install/default/lib/disml/disml__Reaction_t.cmi" {"disml__Reaction_t.cmi"}
+ "_build/install/default/lib/disml/disml__Reaction_t.cmt" {"disml__Reaction_t.cmt"}
+ "_build/install/default/lib/disml/disml__Reaction_t.cmx" {"disml__Reaction_t.cmx"}
+ "_build/install/default/lib/disml/disml__Rl.cmi" {"disml__Rl.cmi"}
+ "_build/install/default/lib/disml/disml__Rl.cmt" {"disml__Rl.cmt"}
+ "_build/install/default/lib/disml/disml__Rl.cmti" {"disml__Rl.cmti"}
+ "_build/install/default/lib/disml/disml__Rl.cmx" {"disml__Rl.cmx"}
+ "_build/install/default/lib/disml/disml__Role.cmi" {"disml__Role.cmi"}
+ "_build/install/default/lib/disml/disml__Role.cmt" {"disml__Role.cmt"}
+ "_build/install/default/lib/disml/disml__Role.cmti" {"disml__Role.cmti"}
+ "_build/install/default/lib/disml/disml__Role.cmx" {"disml__Role.cmx"}
+ "_build/install/default/lib/disml/disml__Role_t.cmi" {"disml__Role_t.cmi"}
+ "_build/install/default/lib/disml/disml__Role_t.cmt" {"disml__Role_t.cmt"}
+ "_build/install/default/lib/disml/disml__Role_t.cmx" {"disml__Role_t.cmx"}
+ "_build/install/default/lib/disml/disml__Sharder.cmi" {"disml__Sharder.cmi"}
+ "_build/install/default/lib/disml/disml__Sharder.cmt" {"disml__Sharder.cmt"}
+ "_build/install/default/lib/disml/disml__Sharder.cmti" {"disml__Sharder.cmti"}
+ "_build/install/default/lib/disml/disml__Sharder.cmx" {"disml__Sharder.cmx"}
+ "_build/install/default/lib/disml/disml__Snowflake.cmi" {"disml__Snowflake.cmi"}
+ "_build/install/default/lib/disml/disml__Snowflake.cmt" {"disml__Snowflake.cmt"}
+ "_build/install/default/lib/disml/disml__Snowflake.cmx" {"disml__Snowflake.cmx"}
+ "_build/install/default/lib/disml/disml__User.cmi" {"disml__User.cmi"}
+ "_build/install/default/lib/disml/disml__User.cmt" {"disml__User.cmt"}
+ "_build/install/default/lib/disml/disml__User.cmti" {"disml__User.cmti"}
+ "_build/install/default/lib/disml/disml__User.cmx" {"disml__User.cmx"}
+ "_build/install/default/lib/disml/disml__User_t.cmi" {"disml__User_t.cmi"}
+ "_build/install/default/lib/disml/disml__User_t.cmt" {"disml__User_t.cmt"}
+ "_build/install/default/lib/disml/disml__User_t.cmx" {"disml__User_t.cmx"}
+ "_build/install/default/lib/disml/dispatch.ml" {"dispatch.ml"}
+ "_build/install/default/lib/disml/dispatch.mli" {"dispatch.mli"}
+ "_build/install/default/lib/disml/embed.ml" {"embed.ml"}
+ "_build/install/default/lib/disml/emoji.ml" {"emoji.ml"}
+ "_build/install/default/lib/disml/endpoints.ml" {"endpoints.ml"}
+ "_build/install/default/lib/disml/endpoints.mli" {"endpoints.mli"}
+ "_build/install/default/lib/disml/event.ml" {"event.ml"}
+ "_build/install/default/lib/disml/guild.ml" {"guild.ml"}
+ "_build/install/default/lib/disml/guild.mli" {"guild.mli"}
+ "_build/install/default/lib/disml/guild_t.ml" {"guild_t.ml"}
+ "_build/install/default/lib/disml/http.ml" {"http.ml"}
+ "_build/install/default/lib/disml/http.mli" {"http.mli"}
+ "_build/install/default/lib/disml/member.ml" {"member.ml"}
+ "_build/install/default/lib/disml/member.mli" {"member.mli"}
+ "_build/install/default/lib/disml/member_t.ml" {"member_t.ml"}
+ "_build/install/default/lib/disml/message.ml" {"message.ml"}
+ "_build/install/default/lib/disml/message.mli" {"message.mli"}
+ "_build/install/default/lib/disml/message_t.ml" {"message_t.ml"}
+ "_build/install/default/lib/disml/opam" {"opam"}
+ "_build/install/default/lib/disml/opcode.ml" {"opcode.ml"}
+ "_build/install/default/lib/disml/opcode.mli" {"opcode.mli"}
+ "_build/install/default/lib/disml/presence.ml" {"presence.ml"}
+ "_build/install/default/lib/disml/reaction.ml" {"reaction.ml"}
+ "_build/install/default/lib/disml/reaction.mli" {"reaction.mli"}
+ "_build/install/default/lib/disml/reaction_t.ml" {"reaction_t.ml"}
+ "_build/install/default/lib/disml/rl.ml" {"rl.ml"}
+ "_build/install/default/lib/disml/rl.mli" {"rl.mli"}
+ "_build/install/default/lib/disml/role.ml" {"role.ml"}
+ "_build/install/default/lib/disml/role.mli" {"role.mli"}
+ "_build/install/default/lib/disml/role_t.ml" {"role_t.ml"}
+ "_build/install/default/lib/disml/sharder.ml" {"sharder.ml"}
+ "_build/install/default/lib/disml/sharder.mli" {"sharder.mli"}
+ "_build/install/default/lib/disml/snowflake.ml" {"snowflake.ml"}
+ "_build/install/default/lib/disml/user.ml" {"user.ml"}
+ "_build/install/default/lib/disml/user.mli" {"user.mli"}
+ "_build/install/default/lib/disml/user_t.ml" {"user_t.ml"}
+]
+doc: [
+ "_build/install/default/doc/disml/LICENSE"
+ "_build/install/default/doc/disml/README.md"
+]
@@ -1,37 +1,37 @@ -opam-version: "2.0" -name: "disml" -version: "0.2.1" -maintainer: "Adelyn Breedlove <[email protected]>" -authors: "Adelyn Breedlove <[email protected]>" -license: "MIT" -homepage: "https://gitlab.com/Mishio595/disml" -doc: "https://mishio595.github.io/disml/index.html" -dev-repo: "git+https://gitlab.com/Mishio595/disml" -bug-reports: "https://gitlab.com/Mishio595/disml/issues" -tags: ["discord"] -synopsis: "An OCaml library for interfacing with the Discord API" -description: """ -Dis.ml is a library that provides a high-level interface to the Discord API. -Key features include: -* Automatic sharding -* Deserialization of Discord objects to record types with related helper methods -* Automatic rate-limiting - -For examples, see `/bin` in the git repo. -""" -depends: [ - "ocaml" {>= "4.07.0"} - "dune" {build & >= "1.3.0"} - "async_ssl" {>= "v0.11.0"} - "core" {>= "v0.11.3"} - "cohttp-async" {>= "1.2.0"} - "ppx_jane" {>= "v0.11.0"} - "ppx_deriving_yojson" {>= "3.1"} - "websocket-async" {>= "2.12"} - "zlib" {>= "0.5"} -] -build: [ - ["dune" "subst"] {pinned} - ["dune" "build" "-p" name "-j" jobs] - ["dune" "build" "-p" "@doc" "-j" jobs] {with-doc} +opam-version: "2.0"
+name: "disml"
+version: "0.2.1"
+maintainer: "Adelyn Breedlove <[email protected]>"
+authors: "Adelyn Breedlove <[email protected]>"
+license: "MIT"
+homepage: "https://gitlab.com/Mishio595/disml"
+doc: "https://mishio595.github.io/disml/index.html"
+dev-repo: "git+https://gitlab.com/Mishio595/disml"
+bug-reports: "https://gitlab.com/Mishio595/disml/issues"
+tags: ["discord"]
+synopsis: "An OCaml library for interfacing with the Discord API"
+description: """
+Dis.ml is a library that provides a high-level interface to the Discord API.
+Key features include:
+* Automatic sharding
+* Deserialization of Discord objects to record types with related helper methods
+* Automatic rate-limiting
+
+For examples, see `/bin` in the git repo.
+"""
+depends: [
+ "ocaml" {>= "4.07.0"}
+ "dune" {build & >= "1.3.0"}
+ "async_ssl" {>= "v0.11.0"}
+ "core" {>= "v0.11.3"}
+ "cohttp-async" {>= "1.2.0"}
+ "ppx_jane" {>= "v0.11.0"}
+ "ppx_deriving_yojson" {>= "3.1"}
+ "websocket-async" {>= "2.12"}
+ "zlib" {>= "0.5"}
+]
+build: [
+ ["dune" "subst"] {pinned}
+ ["dune" "build" "-p" name "-j" jobs]
+ ["dune" "build" "-p" "@doc" "-j" jobs] {with-doc}
]
\ No newline at end of file diff --git a/docs/disml/Disml/Activity/index.html b/docs/disml/Disml/Activity/index.html deleted file mode 100644 index 565f0d7..0000000 --- a/docs/disml/Disml/Activity/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Activity (disml.Disml.Activity)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Activity</nav><h1>Module <code>Disml.Activity</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Attachment/index.html b/docs/disml/Disml/Attachment/index.html deleted file mode 100644 index 9c34c9f..0000000 --- a/docs/disml/Disml/Attachment/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Attachment (disml.Disml.Attachment)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Attachment</nav><h1>Module <code>Disml.Attachment</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.filename" class="anchored"><td class="def field"><a href="#type-t.filename" class="anchor"></a><code>filename : string;</code></td></tr><tr id="type-t.size" class="anchored"><td class="def field"><a href="#type-t.size" class="anchor"></a><code>size : int;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string;</code></td></tr><tr id="type-t.proxy_url" class="anchored"><td class="def field"><a href="#type-t.proxy_url" class="anchor"></a><code>proxy_url : string;</code></td></tr><tr id="type-t.height" class="anchored"><td class="def field"><a href="#type-t.height" class="anchor"></a><code>height : int;</code></td></tr><tr id="type-t.width" class="anchored"><td class="def field"><a href="#type-t.width" class="anchor"></a><code>width : int;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Ban/index.html b/docs/disml/Disml/Ban/index.html deleted file mode 100644 index 4894f28..0000000 --- a/docs/disml/Disml/Ban/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Ban (disml.Disml.Ban)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Ban</nav><h1>Module <code>Disml.Ban</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Ban_t">Ban_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.reason" class="anchored"><td class="def field"><a href="#type-t.reason" class="anchor"></a><code>reason : string;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Ban_t/index.html b/docs/disml/Disml/Ban_t/index.html deleted file mode 100644 index b6b6c30..0000000 --- a/docs/disml/Disml/Ban_t/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Ban_t (disml.Disml.Ban_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Ban_t</nav><h1>Module <code>Disml.Ban_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.reason" class="anchored"><td class="def field"><a href="#type-t.reason" class="anchor"></a><code>reason : string;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Channel/index.html b/docs/disml/Disml/Channel/index.html deleted file mode 100644 index 8cc6188..0000000 --- a/docs/disml/Disml/Channel/index.html +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Channel (disml.Disml.Channel)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Channel</nav><h1>Module <code>Disml.Channel</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Channel_t">Channel_t</a></code></span></summary><aside></aside><dl><dt class="spec exception" id="exception-Invalid_channel"><a href="#exception-Invalid_channel" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_channel</span><span class="keyword"> of </span>Yojson.Safe.json</code></dt></dl><dl><dt class="spec type" id="type-group"><a href="#type-group" class="anchor"></a><code><span class="keyword">type </span>group</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-group.id" class="anchored"><td class="def field"><a href="#type-group.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-group.last_message_id" class="anchored"><td class="def field"><a href="#type-group.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-group.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-group.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-group.icon" class="anchored"><td class="def field"><a href="#type-group.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-group.name" class="anchored"><td class="def field"><a href="#type-group.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-group.owner_id" class="anchored"><td class="def field"><a href="#type-group.owner_id" class="anchor"></a><code>owner_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-group.recipients" class="anchored"><td class="def field"><a href="#type-group.recipients" class="anchor"></a><code>recipients : <a href="../User_t/index.html#type-t">User_t.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-group_of_sexp"><a href="#val-group_of_sexp" class="anchor"></a><code><span class="keyword">val </span>group_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-sexp_of_group"><a href="#val-sexp_of_group" class="anchor"></a><code><span class="keyword">val </span>sexp_of_group : <a href="index.html#type-group">group</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-group_to_yojson"><a href="#val-group_to_yojson" class="anchor"></a><code><span class="keyword">val </span>group_to_yojson : <a href="index.html#type-group">group</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-group_of_yojson"><a href="#val-group_of_yojson" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-group_of_yojson_exn"><a href="#val-group_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a></code></dt></dl><dl><dt class="spec type" id="type-dm"><a href="#type-dm" class="anchor"></a><code><span class="keyword">type </span>dm</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-dm.id" class="anchored"><td class="def field"><a href="#type-dm.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-dm.last_message_id" class="anchored"><td class="def field"><a href="#type-dm.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-dm.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-dm.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-dm_of_sexp"><a href="#val-dm_of_sexp" class="anchor"></a><code><span class="keyword">val </span>dm_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-sexp_of_dm"><a href="#val-sexp_of_dm" class="anchor"></a><code><span class="keyword">val </span>sexp_of_dm : <a href="index.html#type-dm">dm</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-dm_to_yojson"><a href="#val-dm_to_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_to_yojson : <a href="index.html#type-dm">dm</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-dm_of_yojson"><a href="#val-dm_of_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-dm_of_yojson_exn"><a href="#val-dm_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a></code></dt></dl><dl><dt class="spec type" id="type-guild_text"><a href="#type-guild_text" class="anchor"></a><code><span class="keyword">type </span>guild_text</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_text.id" class="anchored"><td class="def field"><a href="#type-guild_text.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-guild_text.last_message_id" class="anchored"><td class="def field"><a href="#type-guild_text.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-guild_text.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-guild_text.category_id" class="anchored"><td class="def field"><a href="#type-guild_text.category_id" class="anchor"></a><code>category_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.guild_id" class="anchored"><td class="def field"><a href="#type-guild_text.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.name" class="anchored"><td class="def field"><a href="#type-guild_text.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_text.position" class="anchored"><td class="def field"><a href="#type-guild_text.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_text.topic" class="anchored"><td class="def field"><a href="#type-guild_text.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-guild_text.nsfw" class="anchored"><td class="def field"><a href="#type-guild_text.nsfw" class="anchor"></a><code>nsfw : bool;</code></td></tr><tr id="type-guild_text.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-guild_text.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_text_of_sexp"><a href="#val-guild_text_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-sexp_of_guild_text"><a href="#val-sexp_of_guild_text" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_text : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_text_to_yojson"><a href="#val-guild_text_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_to_yojson : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_text_of_yojson"><a href="#val-guild_text_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_text_of_yojson_exn"><a href="#val-guild_text_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt></dl><dl><dt class="spec type" id="type-guild_voice"><a href="#type-guild_voice" class="anchor"></a><code><span class="keyword">type </span>guild_voice</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_voice.id" class="anchored"><td class="def field"><a href="#type-guild_voice.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-guild_voice.category_id" class="anchored"><td class="def field"><a href="#type-guild_voice.category_id" class="anchor"></a><code>category_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_voice.guild_id" class="anchored"><td class="def field"><a href="#type-guild_voice.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_voice.name" class="anchored"><td class="def field"><a href="#type-guild_voice.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_voice.position" class="anchored"><td class="def field"><a href="#type-guild_voice.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_voice.user_limit" class="anchored"><td class="def field"><a href="#type-guild_voice.user_limit" class="anchor"></a><code>user_limit : int;</code></td></tr><tr id="type-guild_voice.bitrate" class="anchored"><td class="def field"><a href="#type-guild_voice.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_voice_of_sexp"><a href="#val-guild_voice_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-sexp_of_guild_voice"><a href="#val-sexp_of_guild_voice" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_voice : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_voice_to_yojson"><a href="#val-guild_voice_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_to_yojson : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_voice_of_yojson"><a href="#val-guild_voice_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_voice_of_yojson_exn"><a href="#val-guild_voice_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt></dl><dl><dt class="spec type" id="type-category"><a href="#type-category" class="anchor"></a><code><span class="keyword">type </span>category</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-category.id" class="anchored"><td class="def field"><a href="#type-category.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-category.guild_id" class="anchored"><td class="def field"><a href="#type-category.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-category.position" class="anchored"><td class="def field"><a href="#type-category.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-category.name" class="anchored"><td class="def field"><a href="#type-category.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-category_of_sexp"><a href="#val-category_of_sexp" class="anchor"></a><code><span class="keyword">val </span>category_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-sexp_of_category"><a href="#val-sexp_of_category" class="anchor"></a><code><span class="keyword">val </span>sexp_of_category : <a href="index.html#type-category">category</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-category_to_yojson"><a href="#val-category_to_yojson" class="anchor"></a><code><span class="keyword">val </span>category_to_yojson : <a href="index.html#type-category">category</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-category_of_yojson"><a href="#val-category_of_yojson" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-category_of_yojson_exn"><a href="#val-category_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.Group" class="anchored"><td class="def constructor"><a href="#type-t.Group" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Group</span><span class="keyword"> of </span><a href="index.html#type-group">group</a></code></td></tr><tr id="type-t.Private" class="anchored"><td class="def constructor"><a href="#type-t.Private" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Private</span><span class="keyword"> of </span><a href="index.html#type-dm">dm</a></code></td></tr><tr id="type-t.GuildText" class="anchored"><td class="def constructor"><a href="#type-t.GuildText" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildText</span><span class="keyword"> of </span><a href="index.html#type-guild_text">guild_text</a></code></td></tr><tr id="type-t.GuildVoice" class="anchored"><td class="def constructor"><a href="#type-t.GuildVoice" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildVoice</span><span class="keyword"> of </span><a href="index.html#type-guild_voice">guild_voice</a></code></td></tr><tr id="type-t.Category" class="anchored"><td class="def constructor"><a href="#type-t.Category" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Category</span><span class="keyword"> of </span><a href="index.html#type-category">category</a></code></td></tr></table></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl><dl><dt class="spec type" id="type-channel_wrapper"><a href="#type-channel_wrapper" class="anchor"></a><code><span class="keyword">type </span>channel_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-channel_wrapper.id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-channel_wrapper.kind" class="anchored"><td class="def field"><a href="#type-channel_wrapper.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-channel_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.position" class="anchored"><td class="def field"><a href="#type-channel_wrapper.position" class="anchor"></a><code>position : int option;</code></td></tr><tr id="type-channel_wrapper.name" class="anchored"><td class="def field"><a href="#type-channel_wrapper.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-channel_wrapper.topic" class="anchored"><td class="def field"><a href="#type-channel_wrapper.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-channel_wrapper.nsfw" class="anchored"><td class="def field"><a href="#type-channel_wrapper.nsfw" class="anchor"></a><code>nsfw : bool option;</code></td></tr><tr id="type-channel_wrapper.last_message_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.bitrate" class="anchored"><td class="def field"><a href="#type-channel_wrapper.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr><tr id="type-channel_wrapper.user_limit" class="anchored"><td class="def field"><a href="#type-channel_wrapper.user_limit" class="anchor"></a><code>user_limit : int option;</code></td></tr><tr id="type-channel_wrapper.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-channel_wrapper.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr><tr id="type-channel_wrapper.recipients" class="anchored"><td class="def field"><a href="#type-channel_wrapper.recipients" class="anchor"></a><code>recipients : <a href="../User_t/index.html#type-t">User_t.t</a> list option;</code></td></tr><tr id="type-channel_wrapper.icon" class="anchored"><td class="def field"><a href="#type-channel_wrapper.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-channel_wrapper.owner_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.owner_id" class="anchor"></a><code>owner_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.application_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.category_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.category_id" class="anchor"></a><code>category_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-channel_wrapper_of_sexp"><a href="#val-channel_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_channel_wrapper"><a href="#val-sexp_of_channel_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_channel_wrapper : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-channel_wrapper_to_yojson"><a href="#val-channel_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_to_yojson : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson"><a href="#val-channel_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson_exn"><a href="#val-channel_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_text"><a href="#val-unwrap_as_guild_text" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_text : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_voice"><a href="#val-unwrap_as_guild_voice" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_voice : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-unwrap_as_dm"><a href="#val-unwrap_as_dm" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_dm : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-unwrap_as_group"><a href="#val-unwrap_as_group" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_group : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-unwrap_as_category"><a href="#val-unwrap_as_category" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_category : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Snowflake.t</a></code></dt></dl></details></div></div></div><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : content:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Simple version of send_message that only takes <code>~content</code></p></dd></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../Embed/index.html#type-t">Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <a href="index.html#exception-Invalid_message"><code>Channel.Invalid_message</code></a> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml">open Core -open Disml - -let check_command (msg : Message.t) = - if String.is_prefix ~prefix:"!hello" msg.content then - let embed = { Embed.default with title = Some "Hello World!" } in - Channel.send_message ~embed msg.channel >>> ignore - -Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Channel_t/index.html b/docs/disml/Disml/Channel_t/index.html deleted file mode 100644 index edfdad8..0000000 --- a/docs/disml/Disml/Channel_t/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Channel_t (disml.Disml.Channel_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Channel_t</nav><h1>Module <code>Disml.Channel_t</code></h1></header><dl><dt class="spec exception" id="exception-Invalid_channel"><a href="#exception-Invalid_channel" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_channel</span><span class="keyword"> of </span>Yojson.Safe.json</code></dt></dl><dl><dt class="spec type" id="type-group"><a href="#type-group" class="anchor"></a><code><span class="keyword">type </span>group</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-group.id" class="anchored"><td class="def field"><a href="#type-group.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-group.last_message_id" class="anchored"><td class="def field"><a href="#type-group.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-group.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-group.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-group.icon" class="anchored"><td class="def field"><a href="#type-group.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-group.name" class="anchored"><td class="def field"><a href="#type-group.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-group.owner_id" class="anchored"><td class="def field"><a href="#type-group.owner_id" class="anchor"></a><code>owner_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-group.recipients" class="anchored"><td class="def field"><a href="#type-group.recipients" class="anchor"></a><code>recipients : <a href="../User_t/index.html#type-t">User_t.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-group_of_sexp"><a href="#val-group_of_sexp" class="anchor"></a><code><span class="keyword">val </span>group_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-sexp_of_group"><a href="#val-sexp_of_group" class="anchor"></a><code><span class="keyword">val </span>sexp_of_group : <a href="index.html#type-group">group</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-group_to_yojson"><a href="#val-group_to_yojson" class="anchor"></a><code><span class="keyword">val </span>group_to_yojson : <a href="index.html#type-group">group</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-group_of_yojson"><a href="#val-group_of_yojson" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-group_of_yojson_exn"><a href="#val-group_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a></code></dt></dl><dl><dt class="spec type" id="type-dm"><a href="#type-dm" class="anchor"></a><code><span class="keyword">type </span>dm</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-dm.id" class="anchored"><td class="def field"><a href="#type-dm.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-dm.last_message_id" class="anchored"><td class="def field"><a href="#type-dm.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-dm.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-dm.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-dm_of_sexp"><a href="#val-dm_of_sexp" class="anchor"></a><code><span class="keyword">val </span>dm_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-sexp_of_dm"><a href="#val-sexp_of_dm" class="anchor"></a><code><span class="keyword">val </span>sexp_of_dm : <a href="index.html#type-dm">dm</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-dm_to_yojson"><a href="#val-dm_to_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_to_yojson : <a href="index.html#type-dm">dm</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-dm_of_yojson"><a href="#val-dm_of_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-dm_of_yojson_exn"><a href="#val-dm_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a></code></dt></dl><dl><dt class="spec type" id="type-guild_text"><a href="#type-guild_text" class="anchor"></a><code><span class="keyword">type </span>guild_text</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_text.id" class="anchored"><td class="def field"><a href="#type-guild_text.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-guild_text.last_message_id" class="anchored"><td class="def field"><a href="#type-guild_text.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-guild_text.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-guild_text.category_id" class="anchored"><td class="def field"><a href="#type-guild_text.category_id" class="anchor"></a><code>category_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.guild_id" class="anchored"><td class="def field"><a href="#type-guild_text.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.name" class="anchored"><td class="def field"><a href="#type-guild_text.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_text.position" class="anchored"><td class="def field"><a href="#type-guild_text.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_text.topic" class="anchored"><td class="def field"><a href="#type-guild_text.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-guild_text.nsfw" class="anchored"><td class="def field"><a href="#type-guild_text.nsfw" class="anchor"></a><code>nsfw : bool;</code></td></tr><tr id="type-guild_text.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-guild_text.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_text_of_sexp"><a href="#val-guild_text_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-sexp_of_guild_text"><a href="#val-sexp_of_guild_text" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_text : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_text_to_yojson"><a href="#val-guild_text_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_to_yojson : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_text_of_yojson"><a href="#val-guild_text_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_text_of_yojson_exn"><a href="#val-guild_text_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt></dl><dl><dt class="spec type" id="type-guild_voice"><a href="#type-guild_voice" class="anchor"></a><code><span class="keyword">type </span>guild_voice</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_voice.id" class="anchored"><td class="def field"><a href="#type-guild_voice.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-guild_voice.category_id" class="anchored"><td class="def field"><a href="#type-guild_voice.category_id" class="anchor"></a><code>category_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_voice.guild_id" class="anchored"><td class="def field"><a href="#type-guild_voice.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-guild_voice.name" class="anchored"><td class="def field"><a href="#type-guild_voice.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_voice.position" class="anchored"><td class="def field"><a href="#type-guild_voice.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_voice.user_limit" class="anchored"><td class="def field"><a href="#type-guild_voice.user_limit" class="anchor"></a><code>user_limit : int;</code></td></tr><tr id="type-guild_voice.bitrate" class="anchored"><td class="def field"><a href="#type-guild_voice.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_voice_of_sexp"><a href="#val-guild_voice_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-sexp_of_guild_voice"><a href="#val-sexp_of_guild_voice" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_voice : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_voice_to_yojson"><a href="#val-guild_voice_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_to_yojson : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_voice_of_yojson"><a href="#val-guild_voice_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_voice_of_yojson_exn"><a href="#val-guild_voice_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt></dl><dl><dt class="spec type" id="type-category"><a href="#type-category" class="anchor"></a><code><span class="keyword">type </span>category</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-category.id" class="anchored"><td class="def field"><a href="#type-category.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-category.guild_id" class="anchored"><td class="def field"><a href="#type-category.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-category.position" class="anchored"><td class="def field"><a href="#type-category.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-category.name" class="anchored"><td class="def field"><a href="#type-category.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-category_of_sexp"><a href="#val-category_of_sexp" class="anchor"></a><code><span class="keyword">val </span>category_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-sexp_of_category"><a href="#val-sexp_of_category" class="anchor"></a><code><span class="keyword">val </span>sexp_of_category : <a href="index.html#type-category">category</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-category_to_yojson"><a href="#val-category_to_yojson" class="anchor"></a><code><span class="keyword">val </span>category_to_yojson : <a href="index.html#type-category">category</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-category_of_yojson"><a href="#val-category_of_yojson" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-category_of_yojson_exn"><a href="#val-category_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.Group" class="anchored"><td class="def constructor"><a href="#type-t.Group" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Group</span><span class="keyword"> of </span><a href="index.html#type-group">group</a></code></td></tr><tr id="type-t.Private" class="anchored"><td class="def constructor"><a href="#type-t.Private" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Private</span><span class="keyword"> of </span><a href="index.html#type-dm">dm</a></code></td></tr><tr id="type-t.GuildText" class="anchored"><td class="def constructor"><a href="#type-t.GuildText" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildText</span><span class="keyword"> of </span><a href="index.html#type-guild_text">guild_text</a></code></td></tr><tr id="type-t.GuildVoice" class="anchored"><td class="def constructor"><a href="#type-t.GuildVoice" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildVoice</span><span class="keyword"> of </span><a href="index.html#type-guild_voice">guild_voice</a></code></td></tr><tr id="type-t.Category" class="anchored"><td class="def constructor"><a href="#type-t.Category" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Category</span><span class="keyword"> of </span><a href="index.html#type-category">category</a></code></td></tr></table></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl><dl><dt class="spec type" id="type-channel_wrapper"><a href="#type-channel_wrapper" class="anchor"></a><code><span class="keyword">type </span>channel_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-channel_wrapper.id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-channel_wrapper.kind" class="anchored"><td class="def field"><a href="#type-channel_wrapper.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-channel_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.position" class="anchored"><td class="def field"><a href="#type-channel_wrapper.position" class="anchor"></a><code>position : int option;</code></td></tr><tr id="type-channel_wrapper.name" class="anchored"><td class="def field"><a href="#type-channel_wrapper.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-channel_wrapper.topic" class="anchored"><td class="def field"><a href="#type-channel_wrapper.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-channel_wrapper.nsfw" class="anchored"><td class="def field"><a href="#type-channel_wrapper.nsfw" class="anchor"></a><code>nsfw : bool option;</code></td></tr><tr id="type-channel_wrapper.last_message_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.bitrate" class="anchored"><td class="def field"><a href="#type-channel_wrapper.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr><tr id="type-channel_wrapper.user_limit" class="anchored"><td class="def field"><a href="#type-channel_wrapper.user_limit" class="anchor"></a><code>user_limit : int option;</code></td></tr><tr id="type-channel_wrapper.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-channel_wrapper.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr><tr id="type-channel_wrapper.recipients" class="anchored"><td class="def field"><a href="#type-channel_wrapper.recipients" class="anchor"></a><code>recipients : <a href="../User_t/index.html#type-t">User_t.t</a> list option;</code></td></tr><tr id="type-channel_wrapper.icon" class="anchored"><td class="def field"><a href="#type-channel_wrapper.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-channel_wrapper.owner_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.owner_id" class="anchor"></a><code>owner_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.application_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.category_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.category_id" class="anchor"></a><code>category_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-channel_wrapper_of_sexp"><a href="#val-channel_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_channel_wrapper"><a href="#val-sexp_of_channel_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_channel_wrapper : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-channel_wrapper_to_yojson"><a href="#val-channel_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_to_yojson : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson"><a href="#val-channel_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson_exn"><a href="#val-channel_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_text"><a href="#val-unwrap_as_guild_text" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_text : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_voice"><a href="#val-unwrap_as_guild_voice" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_voice : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-unwrap_as_dm"><a href="#val-unwrap_as_dm" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_dm : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-unwrap_as_group"><a href="#val-unwrap_as_group" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_group : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-unwrap_as_category"><a href="#val-unwrap_as_category" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_category : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Client/index.html b/docs/disml/Disml/Client/index.html index cc21a97..7a6bdf9 100644 --- a/docs/disml/Disml/Client/index.html +++ b/docs/disml/Disml/Client/index.html @@ -1,17 +1,17 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Client (disml.Disml.Client)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Client</nav><h1>Module <code>Disml.Client</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Client_options">Client_options</a></code></span></summary><aside></aside><dl><dt class="spec value" id="val-token"><a href="#val-token" class="anchor"></a><code><span class="keyword">val </span>token : string Stdlib.ref</code></dt><dd><p>Token that is set when using <a href="index.html#val-start"><code>Client.start</code></a></p></dd></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Dispatch">Dispatch</a></code></span></summary><aside></aside><aside><p>Used to store dispatch callbacks. Each event can only have one callback registered at a time. These should be accessed through their re-export in <a href="index.html"><code>Client</code></a>.</p></aside><section><header><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><p><code>Client.ready := (fun _ -> print_endline "Shard is Ready!")</code></p><p><code>Client.guild_create := (fun guild -> print_endline guild.name)</code></p><pre><code class="ml">open Core -open Disml - -let check_command (msg : Message.t) = - if String.is_prefix ~prefix:"!ping" msg.content then - Message.reply msg "Pong!" >>> ignore - -Client.message_create := check_command</code></pre></header><dl><dt class="spec value" id="val-hello"><a href="#val-hello" class="anchor"></a><code><span class="keyword">val </span>hello : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when connecting to the gateway, most users will have no use for this.</p></dd></dl><dl><dt class="spec value" id="val-ready"><a href="#val-ready" class="anchor"></a><code><span class="keyword">val </span>ready : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this.</p></dd></dl><dl><dt class="spec value" id="val-resumed"><a href="#val-resumed" class="anchor"></a><code><span class="keyword">val </span>resumed : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when successfully reconnecting to the gateway.</p></dd></dl><dl><dt class="spec value" id="val-invalid_session"><a href="#val-invalid_session" class="anchor"></a><code><span class="keyword">val </span>invalid_session : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when Discord decides a session is invalid, much like <a href="index.html#val-hello"><code>Client.hello</code></a> this is not very useful for most people.</p></dd></dl><dl><dt class="spec value" id="val-channel_create"><a href="#val-channel_create" class="anchor"></a><code><span class="keyword">val </span>channel_create : (<a href="../Channel_t/index.html#type-t">Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel is created which is visible to the bot.</p></dd></dl><dl><dt class="spec value" id="val-channel_update"><a href="#val-channel_update" class="anchor"></a><code><span class="keyword">val </span>channel_update : (<a href="../Channel_t/index.html#type-t">Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is changed.</p></dd></dl><dl><dt class="spec value" id="val-channel_delete"><a href="#val-channel_delete" class="anchor"></a><code><span class="keyword">val </span>channel_delete : (<a href="../Channel_t/index.html#type-t">Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is deleted.</p></dd></dl><dl><dt class="spec value" id="val-channel_pins_update"><a href="#val-channel_pins_update" class="anchor"></a><code><span class="keyword">val </span>channel_pins_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are pinned or unpinned from a a channel.</p></dd></dl><dl><dt class="spec value" id="val-guild_create"><a href="#val-guild_create" class="anchor"></a><code><span class="keyword">val </span>guild_create : (<a href="../Guild_t/index.html#type-t">Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot joins a guild, and during startup.</p></dd></dl><dl><dt class="spec value" id="val-guild_update"><a href="#val-guild_update" class="anchor"></a><code><span class="keyword">val </span>guild_update : (<a href="../Guild_t/index.html#type-t">Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild the bot is in is edited.</p></dd></dl><dl><dt class="spec value" id="val-guild_delete"><a href="#val-guild_delete" class="anchor"></a><code><span class="keyword">val </span>guild_delete : (<a href="../Guild_t/index.html#type-t">Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot is removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_ban"><a href="#val-member_ban" class="anchor"></a><code><span class="keyword">val </span>member_ban : (<a href="../Ban_t/index.html#type-t">Ban_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_unban"><a href="#val-member_unban" class="anchor"></a><code><span class="keyword">val </span>member_unban : (<a href="../Ban_t/index.html#type-t">Ban_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is unbanned.</p></dd></dl><dl><dt class="spec value" id="val-guild_emojis_update"><a href="#val-guild_emojis_update" class="anchor"></a><code><span class="keyword">val </span>guild_emojis_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when emojis are added or removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-integrations_update"><a href="#val-integrations_update" class="anchor"></a><code><span class="keyword">val </span>integrations_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild's integrations are updated.</p></dd></dl><dl><dt class="spec value" id="val-member_join"><a href="#val-member_join" class="anchor"></a><code><span class="keyword">val </span>member_join : (<a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member joins a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_leave"><a href="#val-member_leave" class="anchor"></a><code><span class="keyword">val </span>member_leave : (<a href="../Member_t/index.html#type-member_wrapper">Member_t.member_wrapper</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member leaves a guild. Is Dispatched alongside <a href="index.html#val-member_ban"><code>Client.member_ban</code></a> when a user is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_update"><a href="#val-member_update" class="anchor"></a><code><span class="keyword">val </span>member_update : (<a href="../Member_t/index.html#type-member_update">Member_t.member_update</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member object is updated.</p></dd></dl><dl><dt class="spec value" id="val-members_chunk"><a href="#val-members_chunk" class="anchor"></a><code><span class="keyword">val </span>members_chunk : (<a href="../Member_t/index.html#type-t">Member_t.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when requesting guild members through <a href="index.html#val-request_guild_members"><code>Client.request_guild_members</code></a></p></dd></dl><dl><dt class="spec value" id="val-role_create"><a href="#val-role_create" class="anchor"></a><code><span class="keyword">val </span>role_create : (<a href="../Role_t/index.html#type-t">Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is created.</p></dd></dl><dl><dt class="spec value" id="val-role_update"><a href="#val-role_update" class="anchor"></a><code><span class="keyword">val </span>role_update : (<a href="../Role_t/index.html#type-t">Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is edited.</p></dd></dl><dl><dt class="spec value" id="val-role_delete"><a href="#val-role_delete" class="anchor"></a><code><span class="keyword">val </span>role_delete : (<a href="../Role_t/index.html#type-t">Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_create"><a href="#val-message_create" class="anchor"></a><code><span class="keyword">val </span>message_create : (<a href="../Message_t/index.html#type-t">Message_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is sent.</p></dd></dl><dl><dt class="spec value" id="val-message_update"><a href="#val-message_update" class="anchor"></a><code><span class="keyword">val </span>message_update : (<a href="../Message_t/index.html#type-message_update">Message_t.message_update</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is edited. This does not necessarily mean the content changed.</p></dd></dl><dl><dt class="spec value" id="val-message_delete"><a href="#val-message_delete" class="anchor"></a><code><span class="keyword">val </span>message_delete : (<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_bulk_delete"><a href="#val-message_bulk_delete" class="anchor"></a><code><span class="keyword">val </span>message_bulk_delete : (<a href="../Snowflake/index.html#type-t">Snowflake.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are bulk deleted.</p></dd></dl><dl><dt class="spec value" id="val-reaction_add"><a href="#val-reaction_add" class="anchor"></a><code><span class="keyword">val </span>reaction_add : (<a href="../Reaction_t/index.html#type-reaction_event">Reaction_t.reaction_event</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a rection is added to a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove"><a href="#val-reaction_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_remove : (<a href="../Reaction_t/index.html#type-reaction_event">Reaction_t.reaction_event</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a reaction is removed from a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_bulk_remove"><a href="#val-reaction_bulk_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_bulk_remove : (<a href="../Reaction_t/index.html#type-t">Reaction_t.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when all reactions are cleared from a message.</p></dd></dl><dl><dt class="spec value" id="val-presence_update"><a href="#val-presence_update" class="anchor"></a><code><span class="keyword">val </span>presence_update : (<a href="../Presence/index.html#type-t">Presence.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a user updates their presence.</p></dd></dl><dl><dt class="spec value" id="val-typing_start"><a href="#val-typing_start" class="anchor"></a><code><span class="keyword">val </span>typing_start : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a typing indicator is displayed.</p></dd></dl><dl><dt class="spec value" id="val-user_update"><a href="#val-user_update" class="anchor"></a><code><span class="keyword">val </span>user_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the current user is updated. You most likely want <a href="index.html#val-member_update"><code>Client.member_update</code></a> or <a href="index.html#val-presence_update"><code>Client.presence_update</code></a> instead.</p></dd></dl></section></details></div></div></div><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.sharder" class="anchored"><td class="def field"><a href="#type-t.sharder" class="anchor"></a><code>sharder : <a href="../Sharder/index.html#type-t">Sharder.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>Type of the Client, it isn't recommended to access the fields directly.</p></dd></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Client. This begins shard connections to Discord and event handlers should be registered prior to calling this.</p><h3 id="example"><a href="#example" class="anchor"></a>Example</h3><pre><code class="ml">open Async -open Disml - -let main () = - let token = "a valid bot token" in - Client.start ~count:5 token >>> print_endline "Client launched" - -let _ = - Scheduler.go_main ~main ()</code></pre><dl><dt>parameter ?count</dt><dd><p>Optional amount of shards to launch. Defaults to autosharding</p></dd></dl><dl><dt>parameter string</dt><dd><p>The token used for authentication</p></dd></dl><dl><dt>returns</dt><dd><p>A deferred client object</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Sharder/Shard/index.html#type-shard">Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <a href="../Sharder/index.html#val-set_status"><code>Sharder.set_status</code></a> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="../Sharder/Shard/index.html#type-shard">Sharder.Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Sharder/Shard/index.html#type-shard">Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <a href="../Sharder/index.html#val-set_status_with"><code>Sharder.set_status_with</code></a> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : guild:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Sharder/Shard/index.html#type-shard">Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <a href="../Sharder/index.html#val-request_guild_members"><code>Sharder.request_guild_members</code></a> where <code>client.sharder</code> is passed.</p></dd></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Client (disml.Disml.Client)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Client</nav><h1>Module <code>Disml.Client</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../../Disml__/index.html#module-Client_options">Disml__.Client_options</a></code></span></summary><aside></aside><dl><dt class="spec value" id="val-token"><a href="#val-token" class="anchor"></a><code><span class="keyword">val </span>token : string Stdlib.ref</code></dt><dd><p>Token that is set when using <a href="index.html#val-start"><code>Client.start</code></a></p></dd></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../../Disml__/index.html#module-Dispatch">Disml__.Dispatch</a></code></span></summary><aside></aside><aside><p>Used to store dispatch callbacks. Each event can only have one callback registered at a time. These should be accessed through their re-export in <a href="index.html"><code>Client</code></a>.</p></aside><section><header><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><p><code>Client.ready := (fun _ -> print_endline "Shard is Ready!")</code></p><p><code>Client.guild_create := (fun guild -> print_endline guild.name)</code></p><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!ping" msg.content then
+ Message.reply msg "Pong!" >>> ignore
+
+ Client.message_create := check_command</code></pre></header><dl><dt class="spec value" id="val-ready"><a href="#val-ready" class="anchor"></a><code><span class="keyword">val </span>ready : (<a href="../../Disml__Event_models/Ready/index.html#type-t">Disml__.Event_models.Ready.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this.</p></dd></dl><dl><dt class="spec value" id="val-resumed"><a href="#val-resumed" class="anchor"></a><code><span class="keyword">val </span>resumed : (<a href="../../Disml__Event_models/Resumed/index.html#type-t">Disml__.Event_models.Resumed.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when successfully reconnecting to the gateway.</p></dd></dl><dl><dt class="spec value" id="val-channel_create"><a href="#val-channel_create" class="anchor"></a><code><span class="keyword">val </span>channel_create : (<a href="../../Disml__Event_models/ChannelCreate/index.html#type-t">Disml__.Event_models.ChannelCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel is created which is visible to the bot.</p></dd></dl><dl><dt class="spec value" id="val-channel_update"><a href="#val-channel_update" class="anchor"></a><code><span class="keyword">val </span>channel_update : (<a href="../../Disml__Event_models/ChannelUpdate/index.html#type-t">Disml__.Event_models.ChannelUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is changed.</p></dd></dl><dl><dt class="spec value" id="val-channel_delete"><a href="#val-channel_delete" class="anchor"></a><code><span class="keyword">val </span>channel_delete : (<a href="../../Disml__Event_models/ChannelDelete/index.html#type-t">Disml__.Event_models.ChannelDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is deleted.</p></dd></dl><dl><dt class="spec value" id="val-channel_pins_update"><a href="#val-channel_pins_update" class="anchor"></a><code><span class="keyword">val </span>channel_pins_update : (<a href="../../Disml__Event_models/ChannelPinsUpdate/index.html#type-t">Disml__.Event_models.ChannelPinsUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are pinned or unpinned from a a channel.</p></dd></dl><dl><dt class="spec value" id="val-guild_create"><a href="#val-guild_create" class="anchor"></a><code><span class="keyword">val </span>guild_create : (<a href="../../Disml__Event_models/GuildCreate/index.html#type-t">Disml__.Event_models.GuildCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot joins a guild, and during startup.</p></dd></dl><dl><dt class="spec value" id="val-guild_update"><a href="#val-guild_update" class="anchor"></a><code><span class="keyword">val </span>guild_update : (<a href="../../Disml__Event_models/GuildUpdate/index.html#type-t">Disml__.Event_models.GuildUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild the bot is in is edited.</p></dd></dl><dl><dt class="spec value" id="val-guild_delete"><a href="#val-guild_delete" class="anchor"></a><code><span class="keyword">val </span>guild_delete : (<a href="../../Disml__Event_models/GuildDelete/index.html#type-t">Disml__.Event_models.GuildDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot is removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_ban"><a href="#val-member_ban" class="anchor"></a><code><span class="keyword">val </span>member_ban : (<a href="../../Disml__Event_models/GuildBanAdd/index.html#type-t">Disml__.Event_models.GuildBanAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_unban"><a href="#val-member_unban" class="anchor"></a><code><span class="keyword">val </span>member_unban : (<a href="../../Disml__Event_models/GuildBanRemove/index.html#type-t">Disml__.Event_models.GuildBanRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is unbanned.</p></dd></dl><dl><dt class="spec value" id="val-guild_emojis_update"><a href="#val-guild_emojis_update" class="anchor"></a><code><span class="keyword">val </span>guild_emojis_update : (<a href="../../Disml__Event_models/GuildEmojisUpdate/index.html#type-t">Disml__.Event_models.GuildEmojisUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when emojis are added or removed from a guild.</p></dd></dl><aside><p>Dispatched when a guild's integrations are updated.</p></aside><dl><dt class="spec value" id="val-member_join"><a href="#val-member_join" class="anchor"></a><code><span class="keyword">val </span>member_join : (<a href="../../Disml__Event_models/GuildMemberAdd/index.html#type-t">Disml__.Event_models.GuildMemberAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member joins a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_leave"><a href="#val-member_leave" class="anchor"></a><code><span class="keyword">val </span>member_leave : (<a href="../../Disml__Event_models/GuildMemberRemove/index.html#type-t">Disml__.Event_models.GuildMemberRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member leaves a guild. Is Dispatched alongside <a href="index.html#val-member_ban"><code>Client.member_ban</code></a> when a user is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_update"><a href="#val-member_update" class="anchor"></a><code><span class="keyword">val </span>member_update : (<a href="../../Disml__Event_models/GuildMemberUpdate/index.html#type-t">Disml__.Event_models.GuildMemberUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member object is updated.</p></dd></dl><dl><dt class="spec value" id="val-members_chunk"><a href="#val-members_chunk" class="anchor"></a><code><span class="keyword">val </span>members_chunk : (<a href="../../Disml__Event_models/GuildMembersChunk/index.html#type-t">Disml__.Event_models.GuildMembersChunk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when requesting guild members through <a href="index.html#val-request_guild_members"><code>Client.request_guild_members</code></a></p></dd></dl><dl><dt class="spec value" id="val-role_create"><a href="#val-role_create" class="anchor"></a><code><span class="keyword">val </span>role_create : (<a href="../../Disml__Event_models/GuildRoleCreate/index.html#type-t">Disml__.Event_models.GuildRoleCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is created.</p></dd></dl><dl><dt class="spec value" id="val-role_update"><a href="#val-role_update" class="anchor"></a><code><span class="keyword">val </span>role_update : (<a href="../../Disml__Event_models/GuildRoleUpdate/index.html#type-t">Disml__.Event_models.GuildRoleUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is edited.</p></dd></dl><dl><dt class="spec value" id="val-role_delete"><a href="#val-role_delete" class="anchor"></a><code><span class="keyword">val </span>role_delete : (<a href="../../Disml__Event_models/GuildRoleDelete/index.html#type-t">Disml__.Event_models.GuildRoleDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_create"><a href="#val-message_create" class="anchor"></a><code><span class="keyword">val </span>message_create : (<a href="../../Disml__Event_models/MessageCreate/index.html#type-t">Disml__.Event_models.MessageCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is sent.</p></dd></dl><dl><dt class="spec value" id="val-message_update"><a href="#val-message_update" class="anchor"></a><code><span class="keyword">val </span>message_update : (<a href="../../Disml__Event_models/MessageUpdate/index.html#type-t">Disml__.Event_models.MessageUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is edited. This does not necessarily mean the content changed.</p></dd></dl><dl><dt class="spec value" id="val-message_delete"><a href="#val-message_delete" class="anchor"></a><code><span class="keyword">val </span>message_delete : (<a href="../../Disml__Event_models/MessageDelete/index.html#type-t">Disml__.Event_models.MessageDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_delete_bulk"><a href="#val-message_delete_bulk" class="anchor"></a><code><span class="keyword">val </span>message_delete_bulk : (<a href="../../Disml__Event_models/MessageDeleteBulk/index.html#type-t">Disml__.Event_models.MessageDeleteBulk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are bulk deleted.</p></dd></dl><dl><dt class="spec value" id="val-reaction_add"><a href="#val-reaction_add" class="anchor"></a><code><span class="keyword">val </span>reaction_add : (<a href="../../Disml__Event_models/ReactionAdd/index.html#type-t">Disml__.Event_models.ReactionAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a rection is added to a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove"><a href="#val-reaction_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_remove : (<a href="../../Disml__Event_models/ReactionRemove/index.html#type-t">Disml__.Event_models.ReactionRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a reaction is removed from a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove_all"><a href="#val-reaction_remove_all" class="anchor"></a><code><span class="keyword">val </span>reaction_remove_all : (<a href="../../Disml__Event_models/ReactionRemoveAll/index.html#type-t">Disml__.Event_models.ReactionRemoveAll.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when all reactions are cleared from a message.</p></dd></dl><dl><dt class="spec value" id="val-presence_update"><a href="#val-presence_update" class="anchor"></a><code><span class="keyword">val </span>presence_update : (<a href="../../Disml__Event_models/PresenceUpdate/index.html#type-t">Disml__.Event_models.PresenceUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a user updates their presence.</p></dd></dl><dl><dt class="spec value" id="val-typing_start"><a href="#val-typing_start" class="anchor"></a><code><span class="keyword">val </span>typing_start : (<a href="../../Disml__Event_models/TypingStart/index.html#type-t">Disml__.Event_models.TypingStart.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a typing indicator is displayed.</p></dd></dl><dl><dt class="spec value" id="val-user_update"><a href="#val-user_update" class="anchor"></a><code><span class="keyword">val </span>user_update : (<a href="../../Disml__Event_models/UserUpdate/index.html#type-t">Disml__.Event_models.UserUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the current user is updated. You most likely want <a href="index.html#val-member_update"><code>Client.member_update</code></a> or <a href="index.html#val-presence_update"><code>Client.presence_update</code></a> instead.</p></dd></dl><dl><dt class="spec value" id="val-webhook_update"><a href="#val-webhook_update" class="anchor"></a><code><span class="keyword">val </span>webhook_update : (<a href="../../Disml__Event_models/WebhookUpdate/index.html#type-t">Disml__.Event_models.WebhookUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a webhook is updated.</p></dd></dl><dl><dt class="spec value" id="val-unknown"><a href="#val-unknown" class="anchor"></a><code><span class="keyword">val </span>unknown : (<a href="../../Disml__Event_models/Unknown/index.html#type-t">Disml__.Event_models.Unknown.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched as a fallback for unknown events.</p></dd></dl></section></details></div></div></div><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.sharder" class="anchored"><td class="def field"><a href="#type-t.sharder" class="anchor"></a><code>sharder : <a href="../Sharder/index.html#type-t">Sharder.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>Type of the Client, it isn't recommended to access the fields directly.</p></dd></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Client. This begins shard connections to Discord and event handlers should be registered prior to calling this.</p><h3 id="example"><a href="#example" class="anchor"></a>Example</h3><pre><code class="ml"> open Async
+ open Disml
+
+ let main () =
+ let token = "a valid bot token" in
+ Client.start ~count:5 token >>> print_endline "Client launched"
+
+ let _ =
+ Scheduler.go_main ~main ()</code></pre><dl><dt>parameter ?count</dt><dd><p>Optional amount of shards to launch. Defaults to autosharding</p></dd></dl><dl><dt>parameter string</dt><dd><p>The token used for authentication</p></dd></dl><dl><dt>returns</dt><dd><p>A deferred client object</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Sharder/Shard/index.html#type-shard">Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <a href="../Sharder/index.html#val-set_status"><code>Sharder.set_status</code></a> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="../Sharder/Shard/index.html#type-shard">Sharder.Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Sharder/Shard/index.html#type-shard">Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <a href="../Sharder/index.html#val-set_status_with"><code>Sharder.set_status_with</code></a> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : guild:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Sharder/Shard/index.html#type-shard">Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <a href="../Sharder/index.html#val-request_guild_members"><code>Sharder.request_guild_members</code></a> where <code>client.sharder</code> is passed.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Client_options/index.html b/docs/disml/Disml/Client_options/index.html deleted file mode 100644 index 6361946..0000000 --- a/docs/disml/Disml/Client_options/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Client_options (disml.Disml.Client_options)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Client_options</nav><h1>Module <code>Disml.Client_options</code></h1></header><dl><dt class="spec value" id="val-token"><a href="#val-token" class="anchor"></a><code><span class="keyword">val </span>token : string Stdlib.ref</code></dt><dd><p>Token that is set when using <a href="../Client/index.html#val-start"><code>Client.start</code></a></p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Dispatch/index.html b/docs/disml/Disml/Dispatch/index.html deleted file mode 100644 index 43da27d..0000000 --- a/docs/disml/Disml/Dispatch/index.html +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dispatch (disml.Disml.Dispatch)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Dispatch</nav><h1>Module <code>Disml.Dispatch</code></h1></header><aside><p>Used to store dispatch callbacks. Each event can only have one callback registered at a time. These should be accessed through their re-export in <a href="../Client/index.html"><code>Client</code></a>.</p></aside><section><header><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><p><code>Client.ready := (fun _ -> print_endline "Shard is Ready!")</code></p><p><code>Client.guild_create := (fun guild -> print_endline guild.name)</code></p><pre><code class="ml">open Core -open Disml - -let check_command (msg : Message.t) = - if String.is_prefix ~prefix:"!ping" msg.content then - Message.reply msg "Pong!" >>> ignore - -Client.message_create := check_command</code></pre></header><dl><dt class="spec value" id="val-hello"><a href="#val-hello" class="anchor"></a><code><span class="keyword">val </span>hello : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when connecting to the gateway, most users will have no use for this.</p></dd></dl><dl><dt class="spec value" id="val-ready"><a href="#val-ready" class="anchor"></a><code><span class="keyword">val </span>ready : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this.</p></dd></dl><dl><dt class="spec value" id="val-resumed"><a href="#val-resumed" class="anchor"></a><code><span class="keyword">val </span>resumed : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when successfully reconnecting to the gateway.</p></dd></dl><dl><dt class="spec value" id="val-invalid_session"><a href="#val-invalid_session" class="anchor"></a><code><span class="keyword">val </span>invalid_session : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when Discord decides a session is invalid, much like <a href="../Client/index.html#val-hello"><code>Client.hello</code></a> this is not very useful for most people.</p></dd></dl><dl><dt class="spec value" id="val-channel_create"><a href="#val-channel_create" class="anchor"></a><code><span class="keyword">val </span>channel_create : (<a href="../Channel_t/index.html#type-t">Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel is created which is visible to the bot.</p></dd></dl><dl><dt class="spec value" id="val-channel_update"><a href="#val-channel_update" class="anchor"></a><code><span class="keyword">val </span>channel_update : (<a href="../Channel_t/index.html#type-t">Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is changed.</p></dd></dl><dl><dt class="spec value" id="val-channel_delete"><a href="#val-channel_delete" class="anchor"></a><code><span class="keyword">val </span>channel_delete : (<a href="../Channel_t/index.html#type-t">Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is deleted.</p></dd></dl><dl><dt class="spec value" id="val-channel_pins_update"><a href="#val-channel_pins_update" class="anchor"></a><code><span class="keyword">val </span>channel_pins_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are pinned or unpinned from a a channel.</p></dd></dl><dl><dt class="spec value" id="val-guild_create"><a href="#val-guild_create" class="anchor"></a><code><span class="keyword">val </span>guild_create : (<a href="../Guild_t/index.html#type-t">Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot joins a guild, and during startup.</p></dd></dl><dl><dt class="spec value" id="val-guild_update"><a href="#val-guild_update" class="anchor"></a><code><span class="keyword">val </span>guild_update : (<a href="../Guild_t/index.html#type-t">Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild the bot is in is edited.</p></dd></dl><dl><dt class="spec value" id="val-guild_delete"><a href="#val-guild_delete" class="anchor"></a><code><span class="keyword">val </span>guild_delete : (<a href="../Guild_t/index.html#type-t">Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot is removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_ban"><a href="#val-member_ban" class="anchor"></a><code><span class="keyword">val </span>member_ban : (<a href="../Ban_t/index.html#type-t">Ban_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_unban"><a href="#val-member_unban" class="anchor"></a><code><span class="keyword">val </span>member_unban : (<a href="../Ban_t/index.html#type-t">Ban_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is unbanned.</p></dd></dl><dl><dt class="spec value" id="val-guild_emojis_update"><a href="#val-guild_emojis_update" class="anchor"></a><code><span class="keyword">val </span>guild_emojis_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when emojis are added or removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-integrations_update"><a href="#val-integrations_update" class="anchor"></a><code><span class="keyword">val </span>integrations_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild's integrations are updated.</p></dd></dl><dl><dt class="spec value" id="val-member_join"><a href="#val-member_join" class="anchor"></a><code><span class="keyword">val </span>member_join : (<a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member joins a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_leave"><a href="#val-member_leave" class="anchor"></a><code><span class="keyword">val </span>member_leave : (<a href="../Member_t/index.html#type-member_wrapper">Member_t.member_wrapper</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member leaves a guild. Is Dispatched alongside <a href="../Client/index.html#val-member_ban"><code>Client.member_ban</code></a> when a user is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_update"><a href="#val-member_update" class="anchor"></a><code><span class="keyword">val </span>member_update : (<a href="../Member_t/index.html#type-member_update">Member_t.member_update</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member object is updated.</p></dd></dl><dl><dt class="spec value" id="val-members_chunk"><a href="#val-members_chunk" class="anchor"></a><code><span class="keyword">val </span>members_chunk : (<a href="../Member_t/index.html#type-t">Member_t.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when requesting guild members through <a href="../Client/index.html#val-request_guild_members"><code>Client.request_guild_members</code></a></p></dd></dl><dl><dt class="spec value" id="val-role_create"><a href="#val-role_create" class="anchor"></a><code><span class="keyword">val </span>role_create : (<a href="../Role_t/index.html#type-t">Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is created.</p></dd></dl><dl><dt class="spec value" id="val-role_update"><a href="#val-role_update" class="anchor"></a><code><span class="keyword">val </span>role_update : (<a href="../Role_t/index.html#type-t">Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is edited.</p></dd></dl><dl><dt class="spec value" id="val-role_delete"><a href="#val-role_delete" class="anchor"></a><code><span class="keyword">val </span>role_delete : (<a href="../Role_t/index.html#type-t">Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_create"><a href="#val-message_create" class="anchor"></a><code><span class="keyword">val </span>message_create : (<a href="../Message_t/index.html#type-t">Message_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is sent.</p></dd></dl><dl><dt class="spec value" id="val-message_update"><a href="#val-message_update" class="anchor"></a><code><span class="keyword">val </span>message_update : (<a href="../Message_t/index.html#type-message_update">Message_t.message_update</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is edited. This does not necessarily mean the content changed.</p></dd></dl><dl><dt class="spec value" id="val-message_delete"><a href="#val-message_delete" class="anchor"></a><code><span class="keyword">val </span>message_delete : (<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_bulk_delete"><a href="#val-message_bulk_delete" class="anchor"></a><code><span class="keyword">val </span>message_bulk_delete : (<a href="../Snowflake/index.html#type-t">Snowflake.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are bulk deleted.</p></dd></dl><dl><dt class="spec value" id="val-reaction_add"><a href="#val-reaction_add" class="anchor"></a><code><span class="keyword">val </span>reaction_add : (<a href="../Reaction_t/index.html#type-reaction_event">Reaction_t.reaction_event</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a rection is added to a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove"><a href="#val-reaction_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_remove : (<a href="../Reaction_t/index.html#type-reaction_event">Reaction_t.reaction_event</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a reaction is removed from a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_bulk_remove"><a href="#val-reaction_bulk_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_bulk_remove : (<a href="../Reaction_t/index.html#type-t">Reaction_t.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when all reactions are cleared from a message.</p></dd></dl><dl><dt class="spec value" id="val-presence_update"><a href="#val-presence_update" class="anchor"></a><code><span class="keyword">val </span>presence_update : (<a href="../Presence/index.html#type-t">Presence.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a user updates their presence.</p></dd></dl><dl><dt class="spec value" id="val-typing_start"><a href="#val-typing_start" class="anchor"></a><code><span class="keyword">val </span>typing_start : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a typing indicator is displayed.</p></dd></dl><dl><dt class="spec value" id="val-user_update"><a href="#val-user_update" class="anchor"></a><code><span class="keyword">val </span>user_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the current user is updated. You most likely want <a href="../Client/index.html#val-member_update"><code>Client.member_update</code></a> or <a href="../Client/index.html#val-presence_update"><code>Client.presence_update</code></a> instead.</p></dd></dl></section></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Embed/index.html b/docs/disml/Disml/Embed/index.html deleted file mode 100644 index a9e20a6..0000000 --- a/docs/disml/Disml/Embed/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Embed (disml.Disml.Embed)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Embed</nav><h1>Module <code>Disml.Embed</code></h1></header><dl><dt class="spec type" id="type-footer"><a href="#type-footer" class="anchor"></a><code><span class="keyword">type </span>footer</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-footer.text" class="anchored"><td class="def field"><a href="#type-footer.text" class="anchor"></a><code>text : string;</code></td></tr><tr id="type-footer.icon_url" class="anchored"><td class="def field"><a href="#type-footer.icon_url" class="anchor"></a><code>icon_url : string option;</code></td></tr><tr id="type-footer.proxy_icon_url" class="anchored"><td class="def field"><a href="#type-footer.proxy_icon_url" class="anchor"></a><code>proxy_icon_url : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-footer_of_sexp"><a href="#val-footer_of_sexp" class="anchor"></a><code><span class="keyword">val </span>footer_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-sexp_of_footer"><a href="#val-sexp_of_footer" class="anchor"></a><code><span class="keyword">val </span>sexp_of_footer : <a href="index.html#type-footer">footer</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-footer_to_yojson"><a href="#val-footer_to_yojson" class="anchor"></a><code><span class="keyword">val </span>footer_to_yojson : <a href="index.html#type-footer">footer</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-footer_of_yojson"><a href="#val-footer_of_yojson" class="anchor"></a><code><span class="keyword">val </span>footer_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-footer">footer</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-footer_of_yojson_exn"><a href="#val-footer_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>footer_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-footer">footer</a></code></dt></dl><dl><dt class="spec type" id="type-image"><a href="#type-image" class="anchor"></a><code><span class="keyword">type </span>image</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-image.url" class="anchored"><td class="def field"><a href="#type-image.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-image.proxy_url" class="anchored"><td class="def field"><a href="#type-image.proxy_url" class="anchor"></a><code>proxy_url : string option;</code></td></tr><tr id="type-image.height" class="anchored"><td class="def field"><a href="#type-image.height" class="anchor"></a><code>height : int option;</code></td></tr><tr id="type-image.width" class="anchored"><td class="def field"><a href="#type-image.width" class="anchor"></a><code>width : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-image_of_sexp"><a href="#val-image_of_sexp" class="anchor"></a><code><span class="keyword">val </span>image_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-image">image</a></code></dt><dt class="spec value" id="val-sexp_of_image"><a href="#val-sexp_of_image" class="anchor"></a><code><span class="keyword">val </span>sexp_of_image : <a href="index.html#type-image">image</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-image_to_yojson"><a href="#val-image_to_yojson" class="anchor"></a><code><span class="keyword">val </span>image_to_yojson : <a href="index.html#type-image">image</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-image_of_yojson"><a href="#val-image_of_yojson" class="anchor"></a><code><span class="keyword">val </span>image_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-image">image</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-image_of_yojson_exn"><a href="#val-image_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>image_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-image">image</a></code></dt></dl><dl><dt class="spec type" id="type-video"><a href="#type-video" class="anchor"></a><code><span class="keyword">type </span>video</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-video.url" class="anchored"><td class="def field"><a href="#type-video.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-video.height" class="anchored"><td class="def field"><a href="#type-video.height" class="anchor"></a><code>height : int option;</code></td></tr><tr id="type-video.width" class="anchored"><td class="def field"><a href="#type-video.width" class="anchor"></a><code>width : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-video_of_sexp"><a href="#val-video_of_sexp" class="anchor"></a><code><span class="keyword">val </span>video_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-video">video</a></code></dt><dt class="spec value" id="val-sexp_of_video"><a href="#val-sexp_of_video" class="anchor"></a><code><span class="keyword">val </span>sexp_of_video : <a href="index.html#type-video">video</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-video_to_yojson"><a href="#val-video_to_yojson" class="anchor"></a><code><span class="keyword">val </span>video_to_yojson : <a href="index.html#type-video">video</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-video_of_yojson"><a href="#val-video_of_yojson" class="anchor"></a><code><span class="keyword">val </span>video_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-video">video</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-video_of_yojson_exn"><a href="#val-video_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>video_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-video">video</a></code></dt></dl><dl><dt class="spec type" id="type-provider"><a href="#type-provider" class="anchor"></a><code><span class="keyword">type </span>provider</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-provider.name" class="anchored"><td class="def field"><a href="#type-provider.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-provider.url" class="anchored"><td class="def field"><a href="#type-provider.url" class="anchor"></a><code>url : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-provider_of_sexp"><a href="#val-provider_of_sexp" class="anchor"></a><code><span class="keyword">val </span>provider_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-provider">provider</a></code></dt><dt class="spec value" id="val-sexp_of_provider"><a href="#val-sexp_of_provider" class="anchor"></a><code><span class="keyword">val </span>sexp_of_provider : <a href="index.html#type-provider">provider</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-provider_to_yojson"><a href="#val-provider_to_yojson" class="anchor"></a><code><span class="keyword">val </span>provider_to_yojson : <a href="index.html#type-provider">provider</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-provider_of_yojson"><a href="#val-provider_of_yojson" class="anchor"></a><code><span class="keyword">val </span>provider_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-provider">provider</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-provider_of_yojson_exn"><a href="#val-provider_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>provider_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-provider">provider</a></code></dt></dl><dl><dt class="spec type" id="type-author"><a href="#type-author" class="anchor"></a><code><span class="keyword">type </span>author</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-author.name" class="anchored"><td class="def field"><a href="#type-author.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-author.url" class="anchored"><td class="def field"><a href="#type-author.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-author.icon_url" class="anchored"><td class="def field"><a href="#type-author.icon_url" class="anchor"></a><code>icon_url : string option;</code></td></tr><tr id="type-author.proxy_icon_url" class="anchored"><td class="def field"><a href="#type-author.proxy_icon_url" class="anchor"></a><code>proxy_icon_url : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-author_of_sexp"><a href="#val-author_of_sexp" class="anchor"></a><code><span class="keyword">val </span>author_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-sexp_of_author"><a href="#val-sexp_of_author" class="anchor"></a><code><span class="keyword">val </span>sexp_of_author : <a href="index.html#type-author">author</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-author_to_yojson"><a href="#val-author_to_yojson" class="anchor"></a><code><span class="keyword">val </span>author_to_yojson : <a href="index.html#type-author">author</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-author_of_yojson"><a href="#val-author_of_yojson" class="anchor"></a><code><span class="keyword">val </span>author_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-author">author</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-author_of_yojson_exn"><a href="#val-author_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>author_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-author">author</a></code></dt></dl><dl><dt class="spec type" id="type-field"><a href="#type-field" class="anchor"></a><code><span class="keyword">type </span>field</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-field.name" class="anchored"><td class="def field"><a href="#type-field.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-field.value" class="anchored"><td class="def field"><a href="#type-field.value" class="anchor"></a><code>value : string;</code></td></tr><tr id="type-field.inline" class="anchored"><td class="def field"><a href="#type-field.inline" class="anchor"></a><code>inline : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-field_of_sexp"><a href="#val-field_of_sexp" class="anchor"></a><code><span class="keyword">val </span>field_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-field">field</a></code></dt><dt class="spec value" id="val-sexp_of_field"><a href="#val-sexp_of_field" class="anchor"></a><code><span class="keyword">val </span>sexp_of_field : <a href="index.html#type-field">field</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-field_to_yojson"><a href="#val-field_to_yojson" class="anchor"></a><code><span class="keyword">val </span>field_to_yojson : <a href="index.html#type-field">field</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-field_of_yojson"><a href="#val-field_of_yojson" class="anchor"></a><code><span class="keyword">val </span>field_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-field">field</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-field_of_yojson_exn"><a href="#val-field_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>field_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-field">field</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.title" class="anchored"><td class="def field"><a href="#type-t.title" class="anchor"></a><code>title : string option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : string option;</code></td></tr><tr id="type-t.description" class="anchored"><td class="def field"><a href="#type-t.description" class="anchor"></a><code>description : string option;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int option;</code></td></tr><tr id="type-t.footer" class="anchored"><td class="def field"><a href="#type-t.footer" class="anchor"></a><code>footer : <a href="index.html#type-footer">footer</a> option;</code></td></tr><tr id="type-t.image" class="anchored"><td class="def field"><a href="#type-t.image" class="anchor"></a><code>image : <a href="index.html#type-image">image</a> option;</code></td></tr><tr id="type-t.thumbnail" class="anchored"><td class="def field"><a href="#type-t.thumbnail" class="anchor"></a><code>thumbnail : <a href="index.html#type-image">image</a> option;</code></td></tr><tr id="type-t.video" class="anchored"><td class="def field"><a href="#type-t.video" class="anchor"></a><code>video : <a href="index.html#type-video">video</a> option;</code></td></tr><tr id="type-t.provider" class="anchored"><td class="def field"><a href="#type-t.provider" class="anchor"></a><code>provider : <a href="index.html#type-provider">provider</a> option;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="index.html#type-author">author</a> option;</code></td></tr><tr id="type-t.fields" class="anchored"><td class="def field"><a href="#type-t.fields" class="anchor"></a><code>fields : <a href="index.html#type-field">field</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-default"><a href="#val-default" class="anchor"></a><code><span class="keyword">val </span>default : <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-default_footer"><a href="#val-default_footer" class="anchor"></a><code><span class="keyword">val </span>default_footer : <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-default_image"><a href="#val-default_image" class="anchor"></a><code><span class="keyword">val </span>default_image : <a href="index.html#type-image">image</a></code></dt><dt class="spec value" id="val-default_video"><a href="#val-default_video" class="anchor"></a><code><span class="keyword">val </span>default_video : <a href="index.html#type-video">video</a></code></dt><dt class="spec value" id="val-default_provider"><a href="#val-default_provider" class="anchor"></a><code><span class="keyword">val </span>default_provider : <a href="index.html#type-provider">provider</a></code></dt><dt class="spec value" id="val-default_author"><a href="#val-default_author" class="anchor"></a><code><span class="keyword">val </span>default_author : <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-title"><a href="#val-title" class="anchor"></a><code><span class="keyword">val </span>title : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-description"><a href="#val-description" class="anchor"></a><code><span class="keyword">val </span>description : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-url"><a href="#val-url" class="anchor"></a><code><span class="keyword">val </span>url : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-timestamp"><a href="#val-timestamp" class="anchor"></a><code><span class="keyword">val </span>timestamp : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-colour"><a href="#val-colour" class="anchor"></a><code><span class="keyword">val </span>colour : int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-color"><a href="#val-color" class="anchor"></a><code><span class="keyword">val </span>color : int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-footer"><a href="#val-footer" class="anchor"></a><code><span class="keyword">val </span>footer : (<a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a>) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-image"><a href="#val-image" class="anchor"></a><code><span class="keyword">val </span>image : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-thumbnail"><a href="#val-thumbnail" class="anchor"></a><code><span class="keyword">val </span>thumbnail : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-author"><a href="#val-author" class="anchor"></a><code><span class="keyword">val </span>author : (<a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a>) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-field"><a href="#val-field" class="anchor"></a><code><span class="keyword">val </span>field : (string<span class="keyword"> * </span>string<span class="keyword"> * </span>bool) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fields"><a href="#val-fields" class="anchor"></a><code><span class="keyword">val </span>fields : (string<span class="keyword"> * </span>string<span class="keyword"> * </span>bool) list <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-footer_text"><a href="#val-footer_text" class="anchor"></a><code><span class="keyword">val </span>footer_text : string <span>-></span> <a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-footer_icon"><a href="#val-footer_icon" class="anchor"></a><code><span class="keyword">val </span>footer_icon : string <span>-></span> <a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-author_name"><a href="#val-author_name" class="anchor"></a><code><span class="keyword">val </span>author_name : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-author_url"><a href="#val-author_url" class="anchor"></a><code><span class="keyword">val </span>author_url : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-author_icon"><a href="#val-author_icon" class="anchor"></a><code><span class="keyword">val </span>author_icon : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Emoji/index.html b/docs/disml/Disml/Emoji/index.html deleted file mode 100644 index 69a0b10..0000000 --- a/docs/disml/Disml/Emoji/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Emoji (disml.Disml.Emoji)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Emoji</nav><h1>Module <code>Disml.Emoji</code></h1></header><dl><dt class="spec type" id="type-partial_emoji"><a href="#type-partial_emoji" class="anchor"></a><code><span class="keyword">type </span>partial_emoji</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_emoji.id" class="anchored"><td class="def field"><a href="#type-partial_emoji.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-partial_emoji.name" class="anchored"><td class="def field"><a href="#type-partial_emoji.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_emoji_of_sexp"><a href="#val-partial_emoji_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a></code></dt><dt class="spec value" id="val-sexp_of_partial_emoji"><a href="#val-sexp_of_partial_emoji" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_emoji : <a href="index.html#type-partial_emoji">partial_emoji</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_emoji_to_yojson"><a href="#val-partial_emoji_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_to_yojson : <a href="index.html#type-partial_emoji">partial_emoji</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_emoji_of_yojson"><a href="#val-partial_emoji_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_emoji_of_yojson_exn"><a href="#val-partial_emoji_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a> option;</code></td></tr><tr id="type-t.require_colons" class="anchored"><td class="def field"><a href="#type-t.require_colons" class="anchor"></a><code>require_colons : bool option;</code></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool option;</code></td></tr><tr id="type-t.animated" class="anchored"><td class="def field"><a href="#type-t.animated" class="anchor"></a><code>animated : bool option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Endpoints/index.html b/docs/disml/Disml/Endpoints/index.html deleted file mode 100644 index 180a95e..0000000 --- a/docs/disml/Disml/Endpoints/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Endpoints (disml.Disml.Endpoints)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Endpoints</nav><h1>Module <code>Disml.Endpoints</code></h1></header><aside><p>Endpoint formatters used internally.</p></aside><dl><dt class="spec value" id="val-gateway"><a href="#val-gateway" class="anchor"></a><code><span class="keyword">val </span>gateway : string</code></dt><dt class="spec value" id="val-gateway_bot"><a href="#val-gateway_bot" class="anchor"></a><code><span class="keyword">val </span>gateway_bot : string</code></dt><dt class="spec value" id="val-channel"><a href="#val-channel" class="anchor"></a><code><span class="keyword">val </span>channel : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_messages"><a href="#val-channel_messages" class="anchor"></a><code><span class="keyword">val </span>channel_messages : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_message"><a href="#val-channel_message" class="anchor"></a><code><span class="keyword">val </span>channel_message : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_reaction_me"><a href="#val-channel_reaction_me" class="anchor"></a><code><span class="keyword">val </span>channel_reaction_me : int <span>-></span> int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-channel_reaction"><a href="#val-channel_reaction" class="anchor"></a><code><span class="keyword">val </span>channel_reaction : int <span>-></span> int <span>-></span> string <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_reactions_get"><a href="#val-channel_reactions_get" class="anchor"></a><code><span class="keyword">val </span>channel_reactions_get : int <span>-></span> int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-channel_reactions_delete"><a href="#val-channel_reactions_delete" class="anchor"></a><code><span class="keyword">val </span>channel_reactions_delete : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_bulk_delete"><a href="#val-channel_bulk_delete" class="anchor"></a><code><span class="keyword">val </span>channel_bulk_delete : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_permission"><a href="#val-channel_permission" class="anchor"></a><code><span class="keyword">val </span>channel_permission : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_permissions"><a href="#val-channel_permissions" class="anchor"></a><code><span class="keyword">val </span>channel_permissions : int <span>-></span> string</code></dt><dt class="spec value" id="val-channels"><a href="#val-channels" class="anchor"></a><code><span class="keyword">val </span>channels : string</code></dt><dt class="spec value" id="val-channel_call_ring"><a href="#val-channel_call_ring" class="anchor"></a><code><span class="keyword">val </span>channel_call_ring : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_invites"><a href="#val-channel_invites" class="anchor"></a><code><span class="keyword">val </span>channel_invites : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_typing"><a href="#val-channel_typing" class="anchor"></a><code><span class="keyword">val </span>channel_typing : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_pins"><a href="#val-channel_pins" class="anchor"></a><code><span class="keyword">val </span>channel_pins : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_pin"><a href="#val-channel_pin" class="anchor"></a><code><span class="keyword">val </span>channel_pin : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guilds"><a href="#val-guilds" class="anchor"></a><code><span class="keyword">val </span>guilds : string</code></dt><dt class="spec value" id="val-guild"><a href="#val-guild" class="anchor"></a><code><span class="keyword">val </span>guild : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_channels"><a href="#val-guild_channels" class="anchor"></a><code><span class="keyword">val </span>guild_channels : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_members"><a href="#val-guild_members" class="anchor"></a><code><span class="keyword">val </span>guild_members : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_member"><a href="#val-guild_member" class="anchor"></a><code><span class="keyword">val </span>guild_member : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_member_role"><a href="#val-guild_member_role" class="anchor"></a><code><span class="keyword">val </span>guild_member_role : int <span>-></span> int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_bans"><a href="#val-guild_bans" class="anchor"></a><code><span class="keyword">val </span>guild_bans : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_ban"><a href="#val-guild_ban" class="anchor"></a><code><span class="keyword">val </span>guild_ban : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_roles"><a href="#val-guild_roles" class="anchor"></a><code><span class="keyword">val </span>guild_roles : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_role"><a href="#val-guild_role" class="anchor"></a><code><span class="keyword">val </span>guild_role : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_prune"><a href="#val-guild_prune" class="anchor"></a><code><span class="keyword">val </span>guild_prune : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_voice_regions"><a href="#val-guild_voice_regions" class="anchor"></a><code><span class="keyword">val </span>guild_voice_regions : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_invites"><a href="#val-guild_invites" class="anchor"></a><code><span class="keyword">val </span>guild_invites : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_integrations"><a href="#val-guild_integrations" class="anchor"></a><code><span class="keyword">val </span>guild_integrations : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_integration"><a href="#val-guild_integration" class="anchor"></a><code><span class="keyword">val </span>guild_integration : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_integration_sync"><a href="#val-guild_integration_sync" class="anchor"></a><code><span class="keyword">val </span>guild_integration_sync : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_embed"><a href="#val-guild_embed" class="anchor"></a><code><span class="keyword">val </span>guild_embed : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_emojis"><a href="#val-guild_emojis" class="anchor"></a><code><span class="keyword">val </span>guild_emojis : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_emoji"><a href="#val-guild_emoji" class="anchor"></a><code><span class="keyword">val </span>guild_emoji : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-webhooks_guild"><a href="#val-webhooks_guild" class="anchor"></a><code><span class="keyword">val </span>webhooks_guild : int <span>-></span> string</code></dt><dt class="spec value" id="val-webhooks_channel"><a href="#val-webhooks_channel" class="anchor"></a><code><span class="keyword">val </span>webhooks_channel : int <span>-></span> string</code></dt><dt class="spec value" id="val-webhook"><a href="#val-webhook" class="anchor"></a><code><span class="keyword">val </span>webhook : int <span>-></span> string</code></dt><dt class="spec value" id="val-webhook_token"><a href="#val-webhook_token" class="anchor"></a><code><span class="keyword">val </span>webhook_token : int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-webhook_git"><a href="#val-webhook_git" class="anchor"></a><code><span class="keyword">val </span>webhook_git : int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-webhook_slack"><a href="#val-webhook_slack" class="anchor"></a><code><span class="keyword">val </span>webhook_slack : int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-user"><a href="#val-user" class="anchor"></a><code><span class="keyword">val </span>user : int <span>-></span> string</code></dt><dt class="spec value" id="val-me"><a href="#val-me" class="anchor"></a><code><span class="keyword">val </span>me : string</code></dt><dt class="spec value" id="val-me_guilds"><a href="#val-me_guilds" class="anchor"></a><code><span class="keyword">val </span>me_guilds : string</code></dt><dt class="spec value" id="val-me_guild"><a href="#val-me_guild" class="anchor"></a><code><span class="keyword">val </span>me_guild : int <span>-></span> string</code></dt><dt class="spec value" id="val-me_channels"><a href="#val-me_channels" class="anchor"></a><code><span class="keyword">val </span>me_channels : string</code></dt><dt class="spec value" id="val-me_connections"><a href="#val-me_connections" class="anchor"></a><code><span class="keyword">val </span>me_connections : string</code></dt><dt class="spec value" id="val-invite"><a href="#val-invite" class="anchor"></a><code><span class="keyword">val </span>invite : string <span>-></span> string</code></dt><dt class="spec value" id="val-regions"><a href="#val-regions" class="anchor"></a><code><span class="keyword">val </span>regions : string</code></dt><dt class="spec value" id="val-application_information"><a href="#val-application_information" class="anchor"></a><code><span class="keyword">val </span>application_information : string</code></dt><dt class="spec value" id="val-group_recipient"><a href="#val-group_recipient" class="anchor"></a><code><span class="keyword">val </span>group_recipient : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_me_nick"><a href="#val-guild_me_nick" class="anchor"></a><code><span class="keyword">val </span>guild_me_nick : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_vanity_url"><a href="#val-guild_vanity_url" class="anchor"></a><code><span class="keyword">val </span>guild_vanity_url : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_audit_logs"><a href="#val-guild_audit_logs" class="anchor"></a><code><span class="keyword">val </span>guild_audit_logs : int <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_embed_avatar"><a href="#val-cdn_embed_avatar" class="anchor"></a><code><span class="keyword">val </span>cdn_embed_avatar : string <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_emoji"><a href="#val-cdn_emoji" class="anchor"></a><code><span class="keyword">val </span>cdn_emoji : string <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_icon"><a href="#val-cdn_icon" class="anchor"></a><code><span class="keyword">val </span>cdn_icon : int <span>-></span> string <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_avatar"><a href="#val-cdn_avatar" class="anchor"></a><code><span class="keyword">val </span>cdn_avatar : int <span>-></span> string <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_default_avatar"><a href="#val-cdn_default_avatar" class="anchor"></a><code><span class="keyword">val </span>cdn_default_avatar : int <span>-></span> string</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Event/index.html b/docs/disml/Disml/Event/index.html deleted file mode 100644 index 90a9b8f..0000000 --- a/docs/disml/Disml/Event/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Event (disml.Disml.Event)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Event</nav><h1>Module <code>Disml.Event</code></h1></header><aside><p>Barebones of event dispatching. Most users will have no reason to look here.</p></aside><dl><dt class="spec exception" id="exception-Invalid_event"><a href="#exception-Invalid_event" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_event</span><span class="keyword"> of </span>string</code></dt><dd><p>Used internally when received an unknown event. Is caught and logged.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.HELLO" class="anchored"><td class="def constructor"><a href="#type-t.HELLO" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">HELLO</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.READY" class="anchored"><td class="def constructor"><a href="#type-t.READY" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">READY</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.RESUMED" class="anchored"><td class="def constructor"><a href="#type-t.RESUMED" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">RESUMED</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.INVALID_SESSION" class="anchored"><td class="def constructor"><a href="#type-t.INVALID_SESSION" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">INVALID_SESSION</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.CHANNEL_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_CREATE</span><span class="keyword"> of </span><a href="../Channel_t/index.html#type-t">Channel_t.t</a></code></td></tr><tr id="type-t.CHANNEL_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_UPDATE</span><span class="keyword"> of </span><a href="../Channel_t/index.html#type-t">Channel_t.t</a></code></td></tr><tr id="type-t.CHANNEL_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_DELETE</span><span class="keyword"> of </span><a href="../Channel_t/index.html#type-t">Channel_t.t</a></code></td></tr><tr id="type-t.CHANNEL_PINS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_PINS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_PINS_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.GUILD_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_CREATE</span><span class="keyword"> of </span><a href="../Guild_t/index.html#type-t">Guild_t.t</a></code></td></tr><tr id="type-t.GUILD_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_UPDATE</span><span class="keyword"> of </span><a href="../Guild_t/index.html#type-t">Guild_t.t</a></code></td></tr><tr id="type-t.GUILD_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_DELETE</span><span class="keyword"> of </span><a href="../Guild_t/index.html#type-t">Guild_t.t</a></code></td></tr><tr id="type-t.GUILD_BAN_ADD" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_BAN_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_BAN_ADD</span><span class="keyword"> of </span><a href="../Ban_t/index.html#type-t">Ban_t.t</a></code></td></tr><tr id="type-t.GUILD_BAN_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_BAN_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_BAN_REMOVE</span><span class="keyword"> of </span><a href="../Ban_t/index.html#type-t">Ban_t.t</a></code></td></tr><tr id="type-t.GUILD_EMOJIS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_EMOJIS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_EMOJIS_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.GUILD_INTEGRATIONS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_INTEGRATIONS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_INTEGRATIONS_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.GUILD_MEMBER_ADD" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_ADD</span><span class="keyword"> of </span><a href="../Member_t/index.html#type-t">Member_t.t</a></code></td></tr><tr id="type-t.GUILD_MEMBER_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_REMOVE</span><span class="keyword"> of </span><a href="../Member_t/index.html#type-member_wrapper">Member_t.member_wrapper</a></code></td></tr><tr id="type-t.GUILD_MEMBER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_UPDATE</span><span class="keyword"> of </span><a href="../Member_t/index.html#type-member_update">Member_t.member_update</a></code></td></tr><tr id="type-t.GUILD_MEMBERS_CHUNK" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBERS_CHUNK" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBERS_CHUNK</span><span class="keyword"> of </span><a href="../Member_t/index.html#type-t">Member_t.t</a> list</code></td></tr><tr id="type-t.GUILD_ROLE_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_CREATE</span><span class="keyword"> of </span><a href="../Role_t/index.html#type-t">Role_t.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_UPDATE</span><span class="keyword"> of </span><a href="../Role_t/index.html#type-t">Role_t.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_DELETE</span><span class="keyword"> of </span><a href="../Role_t/index.html#type-t">Role_t.t</a></code></td></tr><tr id="type-t.MESSAGE_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_CREATE</span><span class="keyword"> of </span><a href="../Message_t/index.html#type-t">Message_t.t</a></code></td></tr><tr id="type-t.MESSAGE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_UPDATE</span><span class="keyword"> of </span><a href="../Message_t/index.html#type-message_update">Message_t.message_update</a></code></td></tr><tr id="type-t.MESSAGE_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_DELETE</span><span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Snowflake.t</a><span class="keyword"> * </span><a href="../Snowflake/index.html#type-t">Snowflake.t</a></code></td></tr><tr id="type-t.MESSAGE_BULK_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_BULK_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_BULK_DELETE</span><span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Snowflake.t</a> list</code></td></tr><tr id="type-t.MESSAGE_REACTION_ADD" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_REACTION_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_REACTION_ADD</span><span class="keyword"> of </span><a href="../Reaction_t/index.html#type-reaction_event">Reaction_t.reaction_event</a></code></td></tr><tr id="type-t.MESSAGE_REACTION_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_REACTION_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_REACTION_REMOVE</span><span class="keyword"> of </span><a href="../Reaction_t/index.html#type-reaction_event">Reaction_t.reaction_event</a></code></td></tr><tr id="type-t.MESSAGE_REACTION_REMOVE_ALL" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_REACTION_REMOVE_ALL" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_REACTION_REMOVE_ALL</span><span class="keyword"> of </span><a href="../Reaction_t/index.html#type-t">Reaction_t.t</a> list</code></td></tr><tr id="type-t.PRESENCE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.PRESENCE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">PRESENCE_UPDATE</span><span class="keyword"> of </span><a href="../Presence/index.html#type-t">Presence.t</a></code></td></tr><tr id="type-t.TYPING_START" class="anchored"><td class="def constructor"><a href="#type-t.TYPING_START" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">TYPING_START</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.USER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.USER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">USER_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.VOICE_STATE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.VOICE_STATE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">VOICE_STATE_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.VOICE_SERVER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.VOICE_SERVER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">VOICE_SERVER_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.WEBHOOKS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.WEBHOOKS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">WEBHOOKS_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr></table></dt><dd><p>Event dispatch type wrapper. Used internally.</p></dd></dl><dl><dt class="spec value" id="val-event_of_yojson"><a href="#val-event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>event_of_yojson : contents:Yojson.Safe.json <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Used to convert an event string and payload into a t wrapper type.</p></dd></dl><dl><dt class="spec value" id="val-dispatch"><a href="#val-dispatch" class="anchor"></a><code><span class="keyword">val </span>dispatch : <a href="index.html#type-t">t</a> <span>-></span> unit</code></dt><dd><p>Sends the event to the registered handler.</p></dd></dl><dl><dt class="spec value" id="val-handle_event"><a href="#val-handle_event" class="anchor"></a><code><span class="keyword">val </span>handle_event : ev:string <span>-></span> Yojson.Safe.json <span>-></span> unit</code></dt><dd><p>Wrapper to other functions. This is called from the shards.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Guild/index.html b/docs/disml/Disml/Guild/index.html deleted file mode 100644 index ac6bd6e..0000000 --- a/docs/disml/Disml/Guild/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Guild (disml.Disml.Guild)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Guild</nav><h1>Module <code>Disml.Guild</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Guild_t">Guild_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-pre"><a href="#type-pre" class="anchor"></a><code><span class="keyword">type </span>pre</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-pre.id" class="anchored"><td class="def field"><a href="#type-pre.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-pre.name" class="anchored"><td class="def field"><a href="#type-pre.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-pre.icon" class="anchored"><td class="def field"><a href="#type-pre.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-pre.splash" class="anchored"><td class="def field"><a href="#type-pre.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-pre.owner_id" class="anchored"><td class="def field"><a href="#type-pre.owner_id" class="anchor"></a><code>owner_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-pre.region" class="anchored"><td class="def field"><a href="#type-pre.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-pre.afk_channel_id" class="anchored"><td class="def field"><a href="#type-pre.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-pre.afk_timeout" class="anchored"><td class="def field"><a href="#type-pre.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-pre.embed_enabled" class="anchored"><td class="def field"><a href="#type-pre.embed_enabled" class="anchor"></a><code>embed_enabled : bool option;</code></td></tr><tr id="type-pre.embed_channel_id" class="anchored"><td class="def field"><a href="#type-pre.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-pre.verification_level" class="anchored"><td class="def field"><a href="#type-pre.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-pre.default_message_notifications" class="anchored"><td class="def field"><a href="#type-pre.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-pre.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-pre.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-pre.roles" class="anchored"><td class="def field"><a href="#type-pre.roles" class="anchor"></a><code>roles : <a href="../Role_t/index.html#type-role">Role_t.role</a> list;</code></td></tr><tr id="type-pre.emojis" class="anchored"><td class="def field"><a href="#type-pre.emojis" class="anchor"></a><code>emojis : <a href="../Emoji/index.html#type-t">Emoji.t</a> list;</code></td></tr><tr id="type-pre.features" class="anchored"><td class="def field"><a href="#type-pre.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-pre.mfa_level" class="anchored"><td class="def field"><a href="#type-pre.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-pre.application_id" class="anchored"><td class="def field"><a href="#type-pre.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-pre.widget_enabled" class="anchored"><td class="def field"><a href="#type-pre.widget_enabled" class="anchor"></a><code>widget_enabled : bool option;</code></td></tr><tr id="type-pre.widget_channel" class="anchored"><td class="def field"><a href="#type-pre.widget_channel" class="anchor"></a><code>widget_channel : <a href="../Channel_t/index.html#type-channel_wrapper">Channel_t.channel_wrapper</a> option;</code></td></tr><tr id="type-pre.system_channel" class="anchored"><td class="def field"><a href="#type-pre.system_channel" class="anchor"></a><code>system_channel : <a href="../Channel_t/index.html#type-channel_wrapper">Channel_t.channel_wrapper</a> option;</code></td></tr><tr id="type-pre.large" class="anchored"><td class="def field"><a href="#type-pre.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-pre.unavailable" class="anchored"><td class="def field"><a href="#type-pre.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-pre.member_count" class="anchored"><td class="def field"><a href="#type-pre.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-pre.members" class="anchored"><td class="def field"><a href="#type-pre.members" class="anchor"></a><code>members : <a href="../Member_t/index.html#type-member">Member_t.member</a> list;</code></td></tr><tr id="type-pre.channels" class="anchored"><td class="def field"><a href="#type-pre.channels" class="anchor"></a><code>channels : <a href="../Channel_t/index.html#type-channel_wrapper">Channel_t.channel_wrapper</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-pre_of_sexp"><a href="#val-pre_of_sexp" class="anchor"></a><code><span class="keyword">val </span>pre_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-pre">pre</a></code></dt><dt class="spec value" id="val-sexp_of_pre"><a href="#val-sexp_of_pre" class="anchor"></a><code><span class="keyword">val </span>sexp_of_pre : <a href="index.html#type-pre">pre</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-pre_to_yojson"><a href="#val-pre_to_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_to_yojson : <a href="index.html#type-pre">pre</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-pre_of_yojson"><a href="#val-pre_of_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-pre_of_yojson_exn"><a href="#val-pre_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.icon" class="anchored"><td class="def field"><a href="#type-t.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-t.splash" class="anchored"><td class="def field"><a href="#type-t.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-t.owner_id" class="anchored"><td class="def field"><a href="#type-t.owner_id" class="anchor"></a><code>owner_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.region" class="anchored"><td class="def field"><a href="#type-t.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-t.afk_channel_id" class="anchored"><td class="def field"><a href="#type-t.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.afk_timeout" class="anchored"><td class="def field"><a href="#type-t.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-t.embed_enabled" class="anchored"><td class="def field"><a href="#type-t.embed_enabled" class="anchor"></a><code>embed_enabled : bool option;</code></td></tr><tr id="type-t.embed_channel_id" class="anchored"><td class="def field"><a href="#type-t.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.verification_level" class="anchored"><td class="def field"><a href="#type-t.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-t.default_message_notifications" class="anchored"><td class="def field"><a href="#type-t.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-t.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-t.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Role_t/index.html#type-t">Role_t.t</a> list;</code></td></tr><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../Emoji/index.html#type-t">Emoji.t</a> list;</code></td></tr><tr id="type-t.features" class="anchored"><td class="def field"><a href="#type-t.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-t.mfa_level" class="anchored"><td class="def field"><a href="#type-t.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-t.application_id" class="anchored"><td class="def field"><a href="#type-t.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.widget_enabled" class="anchored"><td class="def field"><a href="#type-t.widget_enabled" class="anchor"></a><code>widget_enabled : bool option;</code></td></tr><tr id="type-t.widget_channel" class="anchored"><td class="def field"><a href="#type-t.widget_channel" class="anchor"></a><code>widget_channel : <a href="../Channel_t/index.html#type-t">Channel_t.t</a> option;</code></td></tr><tr id="type-t.system_channel" class="anchored"><td class="def field"><a href="#type-t.system_channel" class="anchor"></a><code>system_channel : <a href="../Channel_t/index.html#type-t">Channel_t.t</a> option;</code></td></tr><tr id="type-t.large" class="anchored"><td class="def field"><a href="#type-t.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-t.unavailable" class="anchored"><td class="def field"><a href="#type-t.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-t.member_count" class="anchored"><td class="def field"><a href="#type-t.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : <a href="../Member_t/index.html#type-t">Member_t.t</a> list;</code></td></tr><tr id="type-t.channels" class="anchored"><td class="def field"><a href="#type-t.channels" class="anchor"></a><code>channels : <a href="../Channel_t/index.html#type-t">Channel_t.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-pre">pre</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Role_t/index.html#type-t">Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Channel_t/index.html#type-t">Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Ban_t/index.html#type-t">Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Ban_t/index.html#type-t">Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel"><a href="#val-get_channel" class="anchor"></a><code><span class="keyword">val </span>get_channel : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Channel_t/index.html#type-t">Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_member"><a href="#val-get_member" class="anchor"></a><code><span class="keyword">val </span>get_member : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Member_t/index.html#type-t">Member_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_role"><a href="#val-get_role" class="anchor"></a><code><span class="keyword">val </span>get_role : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Role_t/index.html#type-t">Role_t.t</a> option</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Member_t/index.html#type-t">Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Guild_t/index.html b/docs/disml/Disml/Guild_t/index.html deleted file mode 100644 index 284f9fd..0000000 --- a/docs/disml/Disml/Guild_t/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Guild_t (disml.Disml.Guild_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Guild_t</nav><h1>Module <code>Disml.Guild_t</code></h1></header><dl><dt class="spec type" id="type-pre"><a href="#type-pre" class="anchor"></a><code><span class="keyword">type </span>pre</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-pre.id" class="anchored"><td class="def field"><a href="#type-pre.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-pre.name" class="anchored"><td class="def field"><a href="#type-pre.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-pre.icon" class="anchored"><td class="def field"><a href="#type-pre.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-pre.splash" class="anchored"><td class="def field"><a href="#type-pre.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-pre.owner_id" class="anchored"><td class="def field"><a href="#type-pre.owner_id" class="anchor"></a><code>owner_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-pre.region" class="anchored"><td class="def field"><a href="#type-pre.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-pre.afk_channel_id" class="anchored"><td class="def field"><a href="#type-pre.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-pre.afk_timeout" class="anchored"><td class="def field"><a href="#type-pre.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-pre.embed_enabled" class="anchored"><td class="def field"><a href="#type-pre.embed_enabled" class="anchor"></a><code>embed_enabled : bool option;</code></td></tr><tr id="type-pre.embed_channel_id" class="anchored"><td class="def field"><a href="#type-pre.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-pre.verification_level" class="anchored"><td class="def field"><a href="#type-pre.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-pre.default_message_notifications" class="anchored"><td class="def field"><a href="#type-pre.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-pre.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-pre.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-pre.roles" class="anchored"><td class="def field"><a href="#type-pre.roles" class="anchor"></a><code>roles : <a href="../Role_t/index.html#type-role">Role_t.role</a> list;</code></td></tr><tr id="type-pre.emojis" class="anchored"><td class="def field"><a href="#type-pre.emojis" class="anchor"></a><code>emojis : <a href="../Emoji/index.html#type-t">Emoji.t</a> list;</code></td></tr><tr id="type-pre.features" class="anchored"><td class="def field"><a href="#type-pre.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-pre.mfa_level" class="anchored"><td class="def field"><a href="#type-pre.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-pre.application_id" class="anchored"><td class="def field"><a href="#type-pre.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-pre.widget_enabled" class="anchored"><td class="def field"><a href="#type-pre.widget_enabled" class="anchor"></a><code>widget_enabled : bool option;</code></td></tr><tr id="type-pre.widget_channel" class="anchored"><td class="def field"><a href="#type-pre.widget_channel" class="anchor"></a><code>widget_channel : <a href="../Channel_t/index.html#type-channel_wrapper">Channel_t.channel_wrapper</a> option;</code></td></tr><tr id="type-pre.system_channel" class="anchored"><td class="def field"><a href="#type-pre.system_channel" class="anchor"></a><code>system_channel : <a href="../Channel_t/index.html#type-channel_wrapper">Channel_t.channel_wrapper</a> option;</code></td></tr><tr id="type-pre.large" class="anchored"><td class="def field"><a href="#type-pre.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-pre.unavailable" class="anchored"><td class="def field"><a href="#type-pre.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-pre.member_count" class="anchored"><td class="def field"><a href="#type-pre.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-pre.members" class="anchored"><td class="def field"><a href="#type-pre.members" class="anchor"></a><code>members : <a href="../Member_t/index.html#type-member">Member_t.member</a> list;</code></td></tr><tr id="type-pre.channels" class="anchored"><td class="def field"><a href="#type-pre.channels" class="anchor"></a><code>channels : <a href="../Channel_t/index.html#type-channel_wrapper">Channel_t.channel_wrapper</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-pre_of_sexp"><a href="#val-pre_of_sexp" class="anchor"></a><code><span class="keyword">val </span>pre_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-pre">pre</a></code></dt><dt class="spec value" id="val-sexp_of_pre"><a href="#val-sexp_of_pre" class="anchor"></a><code><span class="keyword">val </span>sexp_of_pre : <a href="index.html#type-pre">pre</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-pre_to_yojson"><a href="#val-pre_to_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_to_yojson : <a href="index.html#type-pre">pre</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-pre_of_yojson"><a href="#val-pre_of_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-pre_of_yojson_exn"><a href="#val-pre_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.icon" class="anchored"><td class="def field"><a href="#type-t.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-t.splash" class="anchored"><td class="def field"><a href="#type-t.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-t.owner_id" class="anchored"><td class="def field"><a href="#type-t.owner_id" class="anchor"></a><code>owner_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.region" class="anchored"><td class="def field"><a href="#type-t.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-t.afk_channel_id" class="anchored"><td class="def field"><a href="#type-t.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.afk_timeout" class="anchored"><td class="def field"><a href="#type-t.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-t.embed_enabled" class="anchored"><td class="def field"><a href="#type-t.embed_enabled" class="anchor"></a><code>embed_enabled : bool option;</code></td></tr><tr id="type-t.embed_channel_id" class="anchored"><td class="def field"><a href="#type-t.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.verification_level" class="anchored"><td class="def field"><a href="#type-t.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-t.default_message_notifications" class="anchored"><td class="def field"><a href="#type-t.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-t.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-t.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Role_t/index.html#type-t">Role_t.t</a> list;</code></td></tr><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../Emoji/index.html#type-t">Emoji.t</a> list;</code></td></tr><tr id="type-t.features" class="anchored"><td class="def field"><a href="#type-t.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-t.mfa_level" class="anchored"><td class="def field"><a href="#type-t.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-t.application_id" class="anchored"><td class="def field"><a href="#type-t.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.widget_enabled" class="anchored"><td class="def field"><a href="#type-t.widget_enabled" class="anchor"></a><code>widget_enabled : bool option;</code></td></tr><tr id="type-t.widget_channel" class="anchored"><td class="def field"><a href="#type-t.widget_channel" class="anchor"></a><code>widget_channel : <a href="../Channel_t/index.html#type-t">Channel_t.t</a> option;</code></td></tr><tr id="type-t.system_channel" class="anchored"><td class="def field"><a href="#type-t.system_channel" class="anchor"></a><code>system_channel : <a href="../Channel_t/index.html#type-t">Channel_t.t</a> option;</code></td></tr><tr id="type-t.large" class="anchored"><td class="def field"><a href="#type-t.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-t.unavailable" class="anchored"><td class="def field"><a href="#type-t.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-t.member_count" class="anchored"><td class="def field"><a href="#type-t.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : <a href="../Member_t/index.html#type-t">Member_t.t</a> list;</code></td></tr><tr id="type-t.channels" class="anchored"><td class="def field"><a href="#type-t.channels" class="anchor"></a><code>channels : <a href="../Channel_t/index.html#type-t">Channel_t.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-pre">pre</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Http/index.html b/docs/disml/Disml/Http/index.html index ea08b3d..1c84cbc 100644 --- a/docs/disml/Disml/Http/index.html +++ b/docs/disml/Disml/Http/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Http (disml.Disml.Http)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Http</nav><h1>Module <code>Disml.Http</code></h1></header><div class="spec module" id="module-Base"><a href="#module-Base" class="anchor"></a><code><span class="keyword">module </span><a href="Base/index.html">Base</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-get_gateway"><a href="#val-get_gateway" class="anchor"></a><code><span class="keyword">val </span>get_gateway : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_gateway_bot"><a href="#val-get_gateway_bot" class="anchor"></a><code><span class="keyword">val </span>get_gateway_bot : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel"><a href="#val-get_channel" class="anchor"></a><code><span class="keyword">val </span>get_channel : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_channel"><a href="#val-modify_channel" class="anchor"></a><code><span class="keyword">val </span>modify_channel : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel"><a href="#val-delete_channel" class="anchor"></a><code><span class="keyword">val </span>delete_channel : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : int <span>-></span> int <span>-></span> (string<span class="keyword"> * </span>int) <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_message"><a href="#val-create_message" class="anchor"></a><code><span class="keyword">val </span>create_message : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_reaction"><a href="#val-create_reaction" class="anchor"></a><code><span class="keyword">val </span>create_reaction : int <span>-></span> int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_own_reaction"><a href="#val-delete_own_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_own_reaction : int <span>-></span> int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reaction"><a href="#val-delete_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_reaction : int <span>-></span> int <span>-></span> string <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_reactions"><a href="#val-get_reactions" class="anchor"></a><code><span class="keyword">val </span>get_reactions : int <span>-></span> int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reactions"><a href="#val-delete_reactions" class="anchor"></a><code><span class="keyword">val </span>delete_reactions : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_message"><a href="#val-edit_message" class="anchor"></a><code><span class="keyword">val </span>edit_message : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_message"><a href="#val-delete_message" class="anchor"></a><code><span class="keyword">val </span>delete_message : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-bulk_delete"><a href="#val-bulk_delete" class="anchor"></a><code><span class="keyword">val </span>bulk_delete : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_channel_permissions"><a href="#val-edit_channel_permissions" class="anchor"></a><code><span class="keyword">val </span>edit_channel_permissions : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_invites"><a href="#val-get_channel_invites" class="anchor"></a><code><span class="keyword">val </span>get_channel_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel_invite"><a href="#val-create_channel_invite" class="anchor"></a><code><span class="keyword">val </span>create_channel_invite : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel_permission"><a href="#val-delete_channel_permission" class="anchor"></a><code><span class="keyword">val </span>delete_channel_permission : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pinned_messages"><a href="#val-get_pinned_messages" class="anchor"></a><code><span class="keyword">val </span>get_pinned_messages : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-pin_message"><a href="#val-pin_message" class="anchor"></a><code><span class="keyword">val </span>pin_message : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unpin_message"><a href="#val-unpin_message" class="anchor"></a><code><span class="keyword">val </span>unpin_message : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_add"><a href="#val-group_recipient_add" class="anchor"></a><code><span class="keyword">val </span>group_recipient_add : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_remove"><a href="#val-group_recipient_remove" class="anchor"></a><code><span class="keyword">val </span>group_recipient_remove : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emojis"><a href="#val-get_emojis" class="anchor"></a><code><span class="keyword">val </span>get_emojis : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_emoji"><a href="#val-edit_emoji" class="anchor"></a><code><span class="keyword">val </span>edit_emoji : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_emoji"><a href="#val-delete_emoji" class="anchor"></a><code><span class="keyword">val </span>delete_emoji : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild"><a href="#val-create_guild" class="anchor"></a><code><span class="keyword">val </span>create_guild : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild"><a href="#val-get_guild" class="anchor"></a><code><span class="keyword">val </span>get_guild : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild"><a href="#val-edit_guild" class="anchor"></a><code><span class="keyword">val </span>edit_guild : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_guild"><a href="#val-delete_guild" class="anchor"></a><code><span class="keyword">val </span>delete_guild : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_channels"><a href="#val-get_guild_channels" class="anchor"></a><code><span class="keyword">val </span>get_guild_channels : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild_channel"><a href="#val-create_guild_channel" class="anchor"></a><code><span class="keyword">val </span>create_guild_channel : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_guild_channel_positions"><a href="#val-modify_guild_channel_positions" class="anchor"></a><code><span class="keyword">val </span>modify_guild_channel_positions : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_member"><a href="#val-get_member" class="anchor"></a><code><span class="keyword">val </span>get_member : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_members"><a href="#val-get_members" class="anchor"></a><code><span class="keyword">val </span>get_members : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member"><a href="#val-add_member" class="anchor"></a><code><span class="keyword">val </span>add_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_member"><a href="#val-edit_member" class="anchor"></a><code><span class="keyword">val </span>edit_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member"><a href="#val-remove_member" class="anchor"></a><code><span class="keyword">val </span>remove_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-change_nickname"><a href="#val-change_nickname" class="anchor"></a><code><span class="keyword">val </span>change_nickname : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member_role"><a href="#val-add_member_role" class="anchor"></a><code><span class="keyword">val </span>add_member_role : int <span>-></span> int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member_role"><a href="#val-remove_member_role" class="anchor"></a><code><span class="keyword">val </span>remove_member_role : int <span>-></span> int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_add"><a href="#val-guild_ban_add" class="anchor"></a><code><span class="keyword">val </span>guild_ban_add : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_remove"><a href="#val-guild_ban_remove" class="anchor"></a><code><span class="keyword">val </span>guild_ban_remove : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_roles"><a href="#val-get_roles" class="anchor"></a><code><span class="keyword">val </span>get_roles : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_add"><a href="#val-guild_role_add" class="anchor"></a><code><span class="keyword">val </span>guild_role_add : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_roles_edit"><a href="#val-guild_roles_edit" class="anchor"></a><code><span class="keyword">val </span>guild_roles_edit : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_edit"><a href="#val-guild_role_edit" class="anchor"></a><code><span class="keyword">val </span>guild_role_edit : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_remove"><a href="#val-guild_role_remove" class="anchor"></a><code><span class="keyword">val </span>guild_role_remove : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_count"><a href="#val-guild_prune_count" class="anchor"></a><code><span class="keyword">val </span>guild_prune_count : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_start"><a href="#val-guild_prune_start" class="anchor"></a><code><span class="keyword">val </span>guild_prune_start : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_voice_regions"><a href="#val-get_guild_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_guild_voice_regions : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_invites"><a href="#val-get_guild_invites" class="anchor"></a><code><span class="keyword">val </span>get_guild_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_integrations"><a href="#val-get_integrations" class="anchor"></a><code><span class="keyword">val </span>get_integrations : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_integration"><a href="#val-add_integration" class="anchor"></a><code><span class="keyword">val </span>add_integration : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_integration"><a href="#val-edit_integration" class="anchor"></a><code><span class="keyword">val </span>edit_integration : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_integration"><a href="#val-delete_integration" class="anchor"></a><code><span class="keyword">val </span>delete_integration : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-sync_integration"><a href="#val-sync_integration" class="anchor"></a><code><span class="keyword">val </span>sync_integration : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_embed"><a href="#val-get_guild_embed" class="anchor"></a><code><span class="keyword">val </span>get_guild_embed : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild_embed"><a href="#val-edit_guild_embed" class="anchor"></a><code><span class="keyword">val </span>edit_guild_embed : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_vanity_url"><a href="#val-get_vanity_url" class="anchor"></a><code><span class="keyword">val </span>get_vanity_url : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invite"><a href="#val-get_invite" class="anchor"></a><code><span class="keyword">val </span>get_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_invite"><a href="#val-delete_invite" class="anchor"></a><code><span class="keyword">val </span>delete_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_current_user"><a href="#val-get_current_user" class="anchor"></a><code><span class="keyword">val </span>get_current_user : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_current_user"><a href="#val-edit_current_user" class="anchor"></a><code><span class="keyword">val </span>edit_current_user : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guilds"><a href="#val-get_guilds" class="anchor"></a><code><span class="keyword">val </span>get_guilds : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave_guild"><a href="#val-leave_guild" class="anchor"></a><code><span class="keyword">val </span>leave_guild : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_private_channels"><a href="#val-get_private_channels" class="anchor"></a><code><span class="keyword">val </span>get_private_channels : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_dm"><a href="#val-create_dm" class="anchor"></a><code><span class="keyword">val </span>create_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_group_dm"><a href="#val-create_group_dm" class="anchor"></a><code><span class="keyword">val </span>create_group_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_connections"><a href="#val-get_connections" class="anchor"></a><code><span class="keyword">val </span>get_connections : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_user"><a href="#val-get_user" class="anchor"></a><code><span class="keyword">val </span>get_user : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_voice_regions"><a href="#val-get_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_voice_regions : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_webhook"><a href="#val-create_webhook" class="anchor"></a><code><span class="keyword">val </span>create_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_webhooks"><a href="#val-get_channel_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_channel_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_webhooks"><a href="#val-get_guild_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_guild_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook"><a href="#val-get_webhook" class="anchor"></a><code><span class="keyword">val </span>get_webhook : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook_with_token"><a href="#val-get_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>get_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook"><a href="#val-edit_webhook" class="anchor"></a><code><span class="keyword">val </span>edit_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook_with_token"><a href="#val-edit_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>edit_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook"><a href="#val-delete_webhook" class="anchor"></a><code><span class="keyword">val </span>delete_webhook : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook_with_token"><a href="#val-delete_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>delete_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_webhook"><a href="#val-execute_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_slack_webhook"><a href="#val-execute_slack_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_slack_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_git_webhook"><a href="#val-execute_git_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_git_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_audit_logs"><a href="#val-get_audit_logs" class="anchor"></a><code><span class="keyword">val </span>get_audit_logs : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Http (disml.Disml.Http)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Http</nav><h1>Module <code>Disml.Http</code></h1></header><div class="spec module" id="module-Base"><a href="#module-Base" class="anchor"></a><code><span class="keyword">module </span><a href="Base/index.html">Base</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-get_gateway"><a href="#val-get_gateway" class="anchor"></a><code><span class="keyword">val </span>get_gateway : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_gateway_bot"><a href="#val-get_gateway_bot" class="anchor"></a><code><span class="keyword">val </span>get_gateway_bot : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel"><a href="#val-get_channel" class="anchor"></a><code><span class="keyword">val </span>get_channel : int <span>-></span> <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_channel"><a href="#val-modify_channel" class="anchor"></a><code><span class="keyword">val </span>modify_channel : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel"><a href="#val-delete_channel" class="anchor"></a><code><span class="keyword">val </span>delete_channel : int <span>-></span> <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : int <span>-></span> int <span>-></span> (string<span class="keyword"> * </span>int) <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : int <span>-></span> int <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_message"><a href="#val-create_message" class="anchor"></a><code><span class="keyword">val </span>create_message : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_reaction"><a href="#val-create_reaction" class="anchor"></a><code><span class="keyword">val </span>create_reaction : int <span>-></span> int <span>-></span> string <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_own_reaction"><a href="#val-delete_own_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_own_reaction : int <span>-></span> int <span>-></span> string <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reaction"><a href="#val-delete_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_reaction : int <span>-></span> int <span>-></span> string <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_reactions"><a href="#val-get_reactions" class="anchor"></a><code><span class="keyword">val </span>get_reactions : int <span>-></span> int <span>-></span> string <span>-></span> <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reactions"><a href="#val-delete_reactions" class="anchor"></a><code><span class="keyword">val </span>delete_reactions : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_message"><a href="#val-edit_message" class="anchor"></a><code><span class="keyword">val </span>edit_message : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_message"><a href="#val-delete_message" class="anchor"></a><code><span class="keyword">val </span>delete_message : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-bulk_delete"><a href="#val-bulk_delete" class="anchor"></a><code><span class="keyword">val </span>bulk_delete : int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_channel_permissions"><a href="#val-edit_channel_permissions" class="anchor"></a><code><span class="keyword">val </span>edit_channel_permissions : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_invites"><a href="#val-get_channel_invites" class="anchor"></a><code><span class="keyword">val </span>get_channel_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel_invite"><a href="#val-create_channel_invite" class="anchor"></a><code><span class="keyword">val </span>create_channel_invite : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel_permission"><a href="#val-delete_channel_permission" class="anchor"></a><code><span class="keyword">val </span>delete_channel_permission : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pinned_messages"><a href="#val-get_pinned_messages" class="anchor"></a><code><span class="keyword">val </span>get_pinned_messages : int <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-pin_message"><a href="#val-pin_message" class="anchor"></a><code><span class="keyword">val </span>pin_message : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unpin_message"><a href="#val-unpin_message" class="anchor"></a><code><span class="keyword">val </span>unpin_message : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_add"><a href="#val-group_recipient_add" class="anchor"></a><code><span class="keyword">val </span>group_recipient_add : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_remove"><a href="#val-group_recipient_remove" class="anchor"></a><code><span class="keyword">val </span>group_recipient_remove : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emojis"><a href="#val-get_emojis" class="anchor"></a><code><span class="keyword">val </span>get_emojis : int <span>-></span> <a href="../../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : int <span>-></span> int <span>-></span> <a href="../../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_emoji"><a href="#val-edit_emoji" class="anchor"></a><code><span class="keyword">val </span>edit_emoji : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_emoji"><a href="#val-delete_emoji" class="anchor"></a><code><span class="keyword">val </span>delete_emoji : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild"><a href="#val-create_guild" class="anchor"></a><code><span class="keyword">val </span>create_guild : Yojson.Safe.json <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild"><a href="#val-get_guild" class="anchor"></a><code><span class="keyword">val </span>get_guild : int <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild"><a href="#val-edit_guild" class="anchor"></a><code><span class="keyword">val </span>edit_guild : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_guild"><a href="#val-delete_guild" class="anchor"></a><code><span class="keyword">val </span>delete_guild : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_channels"><a href="#val-get_guild_channels" class="anchor"></a><code><span class="keyword">val </span>get_guild_channels : int <span>-></span> <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild_channel"><a href="#val-create_guild_channel" class="anchor"></a><code><span class="keyword">val </span>create_guild_channel : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_guild_channel_positions"><a href="#val-modify_guild_channel_positions" class="anchor"></a><code><span class="keyword">val </span>modify_guild_channel_positions : int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_member"><a href="#val-get_member" class="anchor"></a><code><span class="keyword">val </span>get_member : int <span>-></span> int <span>-></span> <a href="../../Disml__/Member/index.html#type-t">Disml__.Member.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_members"><a href="#val-get_members" class="anchor"></a><code><span class="keyword">val </span>get_members : int <span>-></span> <a href="../../Disml__/Member/index.html#type-t">Disml__.Member.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member"><a href="#val-add_member" class="anchor"></a><code><span class="keyword">val </span>add_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Member/index.html#type-t">Disml__.Member.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_member"><a href="#val-edit_member" class="anchor"></a><code><span class="keyword">val </span>edit_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member"><a href="#val-remove_member" class="anchor"></a><code><span class="keyword">val </span>remove_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-change_nickname"><a href="#val-change_nickname" class="anchor"></a><code><span class="keyword">val </span>change_nickname : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member_role"><a href="#val-add_member_role" class="anchor"></a><code><span class="keyword">val </span>add_member_role : int <span>-></span> int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member_role"><a href="#val-remove_member_role" class="anchor"></a><code><span class="keyword">val </span>remove_member_role : int <span>-></span> int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : int <span>-></span> <a href="../../Disml__/Ban/index.html#type-t">Disml__.Ban.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : int <span>-></span> int <span>-></span> <a href="../../Disml__/Ban/index.html#type-t">Disml__.Ban.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_add"><a href="#val-guild_ban_add" class="anchor"></a><code><span class="keyword">val </span>guild_ban_add : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_remove"><a href="#val-guild_ban_remove" class="anchor"></a><code><span class="keyword">val </span>guild_ban_remove : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_roles"><a href="#val-get_roles" class="anchor"></a><code><span class="keyword">val </span>get_roles : int <span>-></span> <a href="../../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_add"><a href="#val-guild_role_add" class="anchor"></a><code><span class="keyword">val </span>guild_role_add : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_roles_edit"><a href="#val-guild_roles_edit" class="anchor"></a><code><span class="keyword">val </span>guild_roles_edit : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_edit"><a href="#val-guild_role_edit" class="anchor"></a><code><span class="keyword">val </span>guild_role_edit : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_remove"><a href="#val-guild_role_remove" class="anchor"></a><code><span class="keyword">val </span>guild_role_remove : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_count"><a href="#val-guild_prune_count" class="anchor"></a><code><span class="keyword">val </span>guild_prune_count : int <span>-></span> int <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_start"><a href="#val-guild_prune_start" class="anchor"></a><code><span class="keyword">val </span>guild_prune_start : int <span>-></span> int <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_voice_regions"><a href="#val-get_guild_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_guild_voice_regions : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_invites"><a href="#val-get_guild_invites" class="anchor"></a><code><span class="keyword">val </span>get_guild_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_integrations"><a href="#val-get_integrations" class="anchor"></a><code><span class="keyword">val </span>get_integrations : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_integration"><a href="#val-add_integration" class="anchor"></a><code><span class="keyword">val </span>add_integration : int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_integration"><a href="#val-edit_integration" class="anchor"></a><code><span class="keyword">val </span>edit_integration : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_integration"><a href="#val-delete_integration" class="anchor"></a><code><span class="keyword">val </span>delete_integration : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-sync_integration"><a href="#val-sync_integration" class="anchor"></a><code><span class="keyword">val </span>sync_integration : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_embed"><a href="#val-get_guild_embed" class="anchor"></a><code><span class="keyword">val </span>get_guild_embed : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild_embed"><a href="#val-edit_guild_embed" class="anchor"></a><code><span class="keyword">val </span>edit_guild_embed : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_vanity_url"><a href="#val-get_vanity_url" class="anchor"></a><code><span class="keyword">val </span>get_vanity_url : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invite"><a href="#val-get_invite" class="anchor"></a><code><span class="keyword">val </span>get_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_invite"><a href="#val-delete_invite" class="anchor"></a><code><span class="keyword">val </span>delete_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_current_user"><a href="#val-get_current_user" class="anchor"></a><code><span class="keyword">val </span>get_current_user : unit <span>-></span> <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_current_user"><a href="#val-edit_current_user" class="anchor"></a><code><span class="keyword">val </span>edit_current_user : Yojson.Safe.json <span>-></span> <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guilds"><a href="#val-get_guilds" class="anchor"></a><code><span class="keyword">val </span>get_guilds : unit <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave_guild"><a href="#val-leave_guild" class="anchor"></a><code><span class="keyword">val </span>leave_guild : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_private_channels"><a href="#val-get_private_channels" class="anchor"></a><code><span class="keyword">val </span>get_private_channels : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_dm"><a href="#val-create_dm" class="anchor"></a><code><span class="keyword">val </span>create_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_group_dm"><a href="#val-create_group_dm" class="anchor"></a><code><span class="keyword">val </span>create_group_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_connections"><a href="#val-get_connections" class="anchor"></a><code><span class="keyword">val </span>get_connections : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_user"><a href="#val-get_user" class="anchor"></a><code><span class="keyword">val </span>get_user : int <span>-></span> <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_voice_regions"><a href="#val-get_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_voice_regions : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_webhook"><a href="#val-create_webhook" class="anchor"></a><code><span class="keyword">val </span>create_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_webhooks"><a href="#val-get_channel_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_channel_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_webhooks"><a href="#val-get_guild_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_guild_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook"><a href="#val-get_webhook" class="anchor"></a><code><span class="keyword">val </span>get_webhook : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook_with_token"><a href="#val-get_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>get_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook"><a href="#val-edit_webhook" class="anchor"></a><code><span class="keyword">val </span>edit_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook_with_token"><a href="#val-edit_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>edit_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook"><a href="#val-delete_webhook" class="anchor"></a><code><span class="keyword">val </span>delete_webhook : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook_with_token"><a href="#val-delete_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>delete_webhook_with_token : int <span>-></span> string <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_webhook"><a href="#val-execute_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_slack_webhook"><a href="#val-execute_slack_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_slack_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_git_webhook"><a href="#val-execute_git_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_git_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_audit_logs"><a href="#val-get_audit_logs" class="anchor"></a><code><span class="keyword">val </span>get_audit_logs : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_application_info"><a href="#val-get_application_info" class="anchor"></a><code><span class="keyword">val </span>get_application_info : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Member/index.html b/docs/disml/Disml/Member/index.html deleted file mode 100644 index e9a2971..0000000 --- a/docs/disml/Disml/Member/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Member (disml.Disml.Member)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Member</nav><h1>Module <code>Disml.Member</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Member_t">Member_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-add_role"><a href="#val-add_role" class="anchor"></a><code><span class="keyword">val </span>add_role : role:<a href="../Role_t/index.html#type-t">Role_t.t</a> <span>-></span> <a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_role"><a href="#val-remove_role" class="anchor"></a><code><span class="keyword">val </span>remove_role : role:<a href="../Role_t/index.html#type-t">Role_t.t</a> <span>-></span> <a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-ban"><a href="#val-ban" class="anchor"></a><code><span class="keyword">val </span>ban : ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick"><a href="#val-kick" class="anchor"></a><code><span class="keyword">val </span>kick : ?⁠reason:string <span>-></span> <a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-mute"><a href="#val-mute" class="anchor"></a><code><span class="keyword">val </span>mute : <a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-deafen"><a href="#val-deafen" class="anchor"></a><code><span class="keyword">val </span>deafen : <a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unmute"><a href="#val-unmute" class="anchor"></a><code><span class="keyword">val </span>unmute : <a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-undeafen"><a href="#val-undeafen" class="anchor"></a><code><span class="keyword">val </span>undeafen : <a href="../Member_t/index.html#type-t">Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Member_t/index.html b/docs/disml/Disml/Member_t/index.html deleted file mode 100644 index bf99c09..0000000 --- a/docs/disml/Disml/Member_t/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Member_t (disml.Disml.Member_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Member_t</nav><h1>Module <code>Disml.Member_t</code></h1></header><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Message/index.html b/docs/disml/Disml/Message/index.html deleted file mode 100644 index 48909a6..0000000 --- a/docs/disml/Disml/Message/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Message (disml.Disml.Message)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Message</nav><h1>Module <code>Disml.Message</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Message_t">Message_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-message_update"><a href="#type-message_update" class="anchor"></a><code><span class="keyword">type </span>message_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-message_update.id" class="anchored"><td class="def field"><a href="#type-message_update.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-message_update.author" class="anchored"><td class="def field"><a href="#type-message_update.author" class="anchor"></a><code>author : <a href="../User_t/index.html#type-t">User_t.t</a> option;</code></td></tr><tr id="type-message_update.channel_id" class="anchored"><td class="def field"><a href="#type-message_update.channel_id" class="anchor"></a><code>channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-message_update.member" class="anchored"><td class="def field"><a href="#type-message_update.member" class="anchor"></a><code>member : <a href="../Member_t/index.html#type-partial_member">Member_t.partial_member</a> option;</code></td></tr><tr id="type-message_update.guild_id" class="anchored"><td class="def field"><a href="#type-message_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.content" class="anchored"><td class="def field"><a href="#type-message_update.content" class="anchor"></a><code>content : string option;</code></td></tr><tr id="type-message_update.timestamp" class="anchored"><td class="def field"><a href="#type-message_update.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-message_update.editedimestamp" class="anchored"><td class="def field"><a href="#type-message_update.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-message_update.tts" class="anchored"><td class="def field"><a href="#type-message_update.tts" class="anchor"></a><code>tts : bool option;</code></td></tr><tr id="type-message_update.mention_everyone" class="anchored"><td class="def field"><a href="#type-message_update.mention_everyone" class="anchor"></a><code>mention_everyone : bool option;</code></td></tr><tr id="type-message_update.mentions" class="anchored"><td class="def field"><a href="#type-message_update.mentions" class="anchor"></a><code>mentions : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.role_mentions" class="anchored"><td class="def field"><a href="#type-message_update.role_mentions" class="anchor"></a><code>role_mentions : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.attachments" class="anchored"><td class="def field"><a href="#type-message_update.attachments" class="anchor"></a><code>attachments : <a href="../Attachment/index.html#type-t">Attachment.t</a> list;</code></td></tr><tr id="type-message_update.embeds" class="anchored"><td class="def field"><a href="#type-message_update.embeds" class="anchor"></a><code>embeds : <a href="../Embed/index.html#type-t">Embed.t</a> list;</code></td></tr><tr id="type-message_update.reactions" class="anchored"><td class="def field"><a href="#type-message_update.reactions" class="anchor"></a><code>reactions : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.nonce" class="anchored"><td class="def field"><a href="#type-message_update.nonce" class="anchor"></a><code>nonce : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.pinned" class="anchored"><td class="def field"><a href="#type-message_update.pinned" class="anchor"></a><code>pinned : bool option;</code></td></tr><tr id="type-message_update.webhook_id" class="anchored"><td class="def field"><a href="#type-message_update.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.kind" class="anchored"><td class="def field"><a href="#type-message_update.kind" class="anchor"></a><code>kind : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-message_update_of_sexp"><a href="#val-message_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>message_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-message_update">message_update</a></code></dt><dt class="spec value" id="val-sexp_of_message_update"><a href="#val-sexp_of_message_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_message_update : <a href="index.html#type-message_update">message_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-message_update_to_yojson"><a href="#val-message_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>message_update_to_yojson : <a href="index.html#type-message_update">message_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-message_update_of_yojson"><a href="#val-message_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>message_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-message_update">message_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-message_update_of_yojson_exn"><a href="#val-message_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>message_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-message_update">message_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../Member_t/index.html#type-partial_member">Member_t.partial_member</a> option;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string;</code></td></tr><tr id="type-t.editedimestamp" class="anchored"><td class="def field"><a href="#type-t.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool;</code></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool;</code></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../Attachment/index.html#type-t">Attachment.t</a> list;</code></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../Embed/index.html#type-t">Embed.t</a> list;</code></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool;</code></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-add_reaction"><a href="#val-add_reaction" class="anchor"></a><code><span class="keyword">val </span>add_reaction : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Emoji.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_reaction"><a href="#val-remove_reaction" class="anchor"></a><code><span class="keyword">val </span>remove_reaction : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Emoji.t</a> <span>-></span> <a href="../User_t/index.html#type-t">User_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-clear_reactions"><a href="#val-clear_reactions" class="anchor"></a><code><span class="keyword">val </span>clear_reactions : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-pin"><a href="#val-pin" class="anchor"></a><code><span class="keyword">val </span>pin : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unpin"><a href="#val-unpin" class="anchor"></a><code><span class="keyword">val </span>unpin : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-reply"><a href="#val-reply" class="anchor"></a><code><span class="keyword">val </span>reply : <a href="index.html#type-t">t</a> <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-reply_with"><a href="#val-reply_with" class="anchor"></a><code><span class="keyword">val </span>reply_with : ?⁠embed:<a href="../Embed/index.html#type-t">Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_content"><a href="#val-set_content" class="anchor"></a><code><span class="keyword">val </span>set_content : <a href="index.html#type-t">t</a> <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_embed"><a href="#val-set_embed" class="anchor"></a><code><span class="keyword">val </span>set_embed : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Embed/index.html#type-t">Embed.t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Message_t/index.html b/docs/disml/Disml/Message_t/index.html deleted file mode 100644 index 6481bb1..0000000 --- a/docs/disml/Disml/Message_t/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Message_t (disml.Disml.Message_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Message_t</nav><h1>Module <code>Disml.Message_t</code></h1></header><dl><dt class="spec type" id="type-message_update"><a href="#type-message_update" class="anchor"></a><code><span class="keyword">type </span>message_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-message_update.id" class="anchored"><td class="def field"><a href="#type-message_update.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-message_update.author" class="anchored"><td class="def field"><a href="#type-message_update.author" class="anchor"></a><code>author : <a href="../User_t/index.html#type-t">User_t.t</a> option;</code></td></tr><tr id="type-message_update.channel_id" class="anchored"><td class="def field"><a href="#type-message_update.channel_id" class="anchor"></a><code>channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-message_update.member" class="anchored"><td class="def field"><a href="#type-message_update.member" class="anchor"></a><code>member : <a href="../Member_t/index.html#type-partial_member">Member_t.partial_member</a> option;</code></td></tr><tr id="type-message_update.guild_id" class="anchored"><td class="def field"><a href="#type-message_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.content" class="anchored"><td class="def field"><a href="#type-message_update.content" class="anchor"></a><code>content : string option;</code></td></tr><tr id="type-message_update.timestamp" class="anchored"><td class="def field"><a href="#type-message_update.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-message_update.editedimestamp" class="anchored"><td class="def field"><a href="#type-message_update.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-message_update.tts" class="anchored"><td class="def field"><a href="#type-message_update.tts" class="anchor"></a><code>tts : bool option;</code></td></tr><tr id="type-message_update.mention_everyone" class="anchored"><td class="def field"><a href="#type-message_update.mention_everyone" class="anchor"></a><code>mention_everyone : bool option;</code></td></tr><tr id="type-message_update.mentions" class="anchored"><td class="def field"><a href="#type-message_update.mentions" class="anchor"></a><code>mentions : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.role_mentions" class="anchored"><td class="def field"><a href="#type-message_update.role_mentions" class="anchor"></a><code>role_mentions : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.attachments" class="anchored"><td class="def field"><a href="#type-message_update.attachments" class="anchor"></a><code>attachments : <a href="../Attachment/index.html#type-t">Attachment.t</a> list;</code></td></tr><tr id="type-message_update.embeds" class="anchored"><td class="def field"><a href="#type-message_update.embeds" class="anchor"></a><code>embeds : <a href="../Embed/index.html#type-t">Embed.t</a> list;</code></td></tr><tr id="type-message_update.reactions" class="anchored"><td class="def field"><a href="#type-message_update.reactions" class="anchor"></a><code>reactions : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.nonce" class="anchored"><td class="def field"><a href="#type-message_update.nonce" class="anchor"></a><code>nonce : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.pinned" class="anchored"><td class="def field"><a href="#type-message_update.pinned" class="anchor"></a><code>pinned : bool option;</code></td></tr><tr id="type-message_update.webhook_id" class="anchored"><td class="def field"><a href="#type-message_update.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.kind" class="anchored"><td class="def field"><a href="#type-message_update.kind" class="anchor"></a><code>kind : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-message_update_of_sexp"><a href="#val-message_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>message_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-message_update">message_update</a></code></dt><dt class="spec value" id="val-sexp_of_message_update"><a href="#val-sexp_of_message_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_message_update : <a href="index.html#type-message_update">message_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-message_update_to_yojson"><a href="#val-message_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>message_update_to_yojson : <a href="index.html#type-message_update">message_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-message_update_of_yojson"><a href="#val-message_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>message_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-message_update">message_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-message_update_of_yojson_exn"><a href="#val-message_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>message_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-message_update">message_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../User_t/index.html#type-t">User_t.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../Member_t/index.html#type-partial_member">Member_t.partial_member</a> option;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string;</code></td></tr><tr id="type-t.editedimestamp" class="anchored"><td class="def field"><a href="#type-t.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool;</code></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool;</code></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../Attachment/index.html#type-t">Attachment.t</a> list;</code></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../Embed/index.html#type-t">Embed.t</a> list;</code></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool;</code></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Models/index.html b/docs/disml/Disml/Models/index.html new file mode 100644 index 0000000..64e93b8 --- /dev/null +++ b/docs/disml/Disml/Models/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Models (disml.Disml.Models)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Models</nav><h1>Module <code>Disml.Models</code></h1></header><div class="spec module" id="module-Activity"><a href="#module-Activity" class="anchor"></a><code><span class="keyword">module </span>Activity = <a href="../../Disml__/index.html#module-Activity">Disml__.Activity</a></code></div><div class="spec module" id="module-Attachment"><a href="#module-Attachment" class="anchor"></a><code><span class="keyword">module </span>Attachment = <a href="../../Disml__/index.html#module-Attachment">Disml__.Attachment</a></code></div><div class="spec module" id="module-Ban"><a href="#module-Ban" class="anchor"></a><code><span class="keyword">module </span>Ban = <a href="../../Disml__/index.html#module-Ban">Disml__.Ban</a></code></div><div class="spec module" id="module-Channel"><a href="#module-Channel" class="anchor"></a><code><span class="keyword">module </span>Channel = <a href="../../Disml__/index.html#module-Channel">Disml__.Channel</a></code></div><div class="spec module" id="module-Channel_id"><a href="#module-Channel_id" class="anchor"></a><code><span class="keyword">module </span>Channel_id = <a href="../../Disml__/index.html#module-Channel_id">Disml__.Channel_id</a></code></div><div class="spec module" id="module-Embed"><a href="#module-Embed" class="anchor"></a><code><span class="keyword">module </span>Embed = <a href="../../Disml__/index.html#module-Embed">Disml__.Embed</a></code></div><div class="spec module" id="module-Emoji"><a href="#module-Emoji" class="anchor"></a><code><span class="keyword">module </span>Emoji = <a href="../../Disml__/index.html#module-Emoji">Disml__.Emoji</a></code></div><div class="spec module" id="module-Guild"><a href="#module-Guild" class="anchor"></a><code><span class="keyword">module </span>Guild = <a href="../../Disml__/index.html#module-Guild">Disml__.Guild</a></code></div><div class="spec module" id="module-Guild_id"><a href="#module-Guild_id" class="anchor"></a><code><span class="keyword">module </span>Guild_id = <a href="../../Disml__/index.html#module-Guild_id">Disml__.Guild_id</a></code></div><div class="spec module" id="module-Member"><a href="#module-Member" class="anchor"></a><code><span class="keyword">module </span>Member = <a href="../../Disml__/index.html#module-Member">Disml__.Member</a></code></div><div class="spec module" id="module-Message"><a href="#module-Message" class="anchor"></a><code><span class="keyword">module </span>Message = <a href="../../Disml__/index.html#module-Message">Disml__.Message</a></code></div><div class="spec module" id="module-Presence"><a href="#module-Presence" class="anchor"></a><code><span class="keyword">module </span>Presence = <a href="../../Disml__/index.html#module-Presence">Disml__.Presence</a></code></div><div class="spec module" id="module-Reaction"><a href="#module-Reaction" class="anchor"></a><code><span class="keyword">module </span>Reaction = <a href="../../Disml__/index.html#module-Reaction">Disml__.Reaction</a></code></div><div class="spec module" id="module-Role"><a href="#module-Role" class="anchor"></a><code><span class="keyword">module </span>Role = <a href="../../Disml__/index.html#module-Role">Disml__.Role</a></code></div><div class="spec module" id="module-Snowflake"><a href="#module-Snowflake" class="anchor"></a><code><span class="keyword">module </span>Snowflake = <a href="../../Disml__/index.html#module-Snowflake">Disml__.Snowflake</a></code></div><div class="spec module" id="module-User"><a href="#module-User" class="anchor"></a><code><span class="keyword">module </span>User = <a href="../../Disml__/index.html#module-User">Disml__.User</a></code></div><div class="spec module" id="module-Event"><a href="#module-Event" class="anchor"></a><code><span class="keyword">module </span>Event = <a href="../../Disml__/index.html#module-Event_models">Disml__.Event_models</a></code></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Opcode/index.html b/docs/disml/Disml/Opcode/index.html deleted file mode 100644 index 6db3bb7..0000000 --- a/docs/disml/Disml/Opcode/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Opcode (disml.Disml.Opcode)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Opcode</nav><h1>Module <code>Disml.Opcode</code></h1></header><aside><p>Internal Opcode abstractions.</p></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.DISPATCH" class="anchored"><td class="def constructor"><a href="#type-t.DISPATCH" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">DISPATCH</span></code></td></tr><tr id="type-t.HEARTBEAT" class="anchored"><td class="def constructor"><a href="#type-t.HEARTBEAT" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">HEARTBEAT</span></code></td></tr><tr id="type-t.IDENTIFY" class="anchored"><td class="def constructor"><a href="#type-t.IDENTIFY" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">IDENTIFY</span></code></td></tr><tr id="type-t.STATUS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.STATUS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">STATUS_UPDATE</span></code></td></tr><tr id="type-t.VOICE_STATE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.VOICE_STATE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">VOICE_STATE_UPDATE</span></code></td></tr><tr id="type-t.RESUME" class="anchored"><td class="def constructor"><a href="#type-t.RESUME" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">RESUME</span></code></td></tr><tr id="type-t.RECONNECT" class="anchored"><td class="def constructor"><a href="#type-t.RECONNECT" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">RECONNECT</span></code></td></tr><tr id="type-t.REQUEST_GUILD_MEMBERS" class="anchored"><td class="def constructor"><a href="#type-t.REQUEST_GUILD_MEMBERS" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">REQUEST_GUILD_MEMBERS</span></code></td></tr><tr id="type-t.INVALID_SESSION" class="anchored"><td class="def constructor"><a href="#type-t.INVALID_SESSION" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">INVALID_SESSION</span></code></td></tr><tr id="type-t.HELLO" class="anchored"><td class="def constructor"><a href="#type-t.HELLO" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">HELLO</span></code></td></tr><tr id="type-t.HEARTBEAT_ACK" class="anchored"><td class="def constructor"><a href="#type-t.HEARTBEAT_ACK" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">HEARTBEAT_ACK</span></code></td></tr></table></dt><dd><p>Type of known opcodes.</p></dd></dl><dl><dt class="spec exception" id="exception-Invalid_Opcode"><a href="#exception-Invalid_Opcode" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_Opcode</span><span class="keyword"> of </span>int</code></dt><dd><p>Raised when receiving an invalid opcode. This should never occur.</p></dd></dl><dl><dt class="spec value" id="val-to_int"><a href="#val-to_int" class="anchor"></a><code><span class="keyword">val </span>to_int : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><p>Converts an opcode to its integer form for outgoing frames.</p></dd></dl><dl><dt class="spec value" id="val-from_int"><a href="#val-from_int" class="anchor"></a><code><span class="keyword">val </span>from_int : int <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Converts an integer to an opcode for incoming frames. Raise <a href="index.html#exception-Invalid_Opcode"><code>Invalid_Opcode</code></a> Raised when an unkown opcode is received.</p></dd></dl><dl><dt class="spec value" id="val-to_string"><a href="#val-to_string" class="anchor"></a><code><span class="keyword">val </span>to_string : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>Converts and opcode to a human-readable string. Used for logging purposes.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Presence/index.html b/docs/disml/Disml/Presence/index.html deleted file mode 100644 index 5a94610..0000000 --- a/docs/disml/Disml/Presence/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Presence (disml.Disml.Presence)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Presence</nav><h1>Module <code>Disml.Presence</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-partial_user">User_t.partial_user</a>;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> list;</code></td></tr><tr id="type-t.game" class="anchored"><td class="def field"><a href="#type-t.game" class="anchor"></a><code>game : <a href="../Activity/index.html#type-t">Activity.t</a> option;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.status" class="anchored"><td class="def field"><a href="#type-t.status" class="anchor"></a><code>status : string;</code></td></tr><tr id="type-t.activities" class="anchored"><td class="def field"><a href="#type-t.activities" class="anchor"></a><code>activities : <a href="../Activity/index.html#type-t">Activity.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Reaction/index.html b/docs/disml/Disml/Reaction/index.html deleted file mode 100644 index 23f5ba6..0000000 --- a/docs/disml/Disml/Reaction/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Reaction (disml.Disml.Reaction)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Reaction</nav><h1>Module <code>Disml.Reaction</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Reaction_t">Reaction_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-reaction_event"><a href="#type-reaction_event" class="anchor"></a><code><span class="keyword">type </span>reaction_event</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-reaction_event.user_id" class="anchored"><td class="def field"><a href="#type-reaction_event.user_id" class="anchor"></a><code>user_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.channel_id" class="anchored"><td class="def field"><a href="#type-reaction_event.channel_id" class="anchor"></a><code>channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.message_id" class="anchored"><td class="def field"><a href="#type-reaction_event.message_id" class="anchor"></a><code>message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.guild_id" class="anchored"><td class="def field"><a href="#type-reaction_event.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-reaction_event.emoji" class="anchored"><td class="def field"><a href="#type-reaction_event.emoji" class="anchor"></a><code>emoji : <a href="../Emoji/index.html#type-partial_emoji">Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-reaction_event_of_sexp"><a href="#val-reaction_event_of_sexp" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt><dt class="spec value" id="val-sexp_of_reaction_event"><a href="#val-sexp_of_reaction_event" class="anchor"></a><code><span class="keyword">val </span>sexp_of_reaction_event : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-reaction_event_to_yojson"><a href="#val-reaction_event_to_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_to_yojson : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-reaction_event_of_yojson"><a href="#val-reaction_event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-reaction_event_of_yojson_exn"><a href="#val-reaction_event_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.count" class="anchored"><td class="def field"><a href="#type-t.count" class="anchor"></a><code>count : int;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../Emoji/index.html#type-t">Emoji.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Reaction_t/index.html b/docs/disml/Disml/Reaction_t/index.html deleted file mode 100644 index 9dea0c8..0000000 --- a/docs/disml/Disml/Reaction_t/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Reaction_t (disml.Disml.Reaction_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Reaction_t</nav><h1>Module <code>Disml.Reaction_t</code></h1></header><dl><dt class="spec type" id="type-reaction_event"><a href="#type-reaction_event" class="anchor"></a><code><span class="keyword">type </span>reaction_event</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-reaction_event.user_id" class="anchored"><td class="def field"><a href="#type-reaction_event.user_id" class="anchor"></a><code>user_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.channel_id" class="anchored"><td class="def field"><a href="#type-reaction_event.channel_id" class="anchor"></a><code>channel_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.message_id" class="anchored"><td class="def field"><a href="#type-reaction_event.message_id" class="anchor"></a><code>message_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.guild_id" class="anchored"><td class="def field"><a href="#type-reaction_event.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a> option;</code></td></tr><tr id="type-reaction_event.emoji" class="anchored"><td class="def field"><a href="#type-reaction_event.emoji" class="anchor"></a><code>emoji : <a href="../Emoji/index.html#type-partial_emoji">Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-reaction_event_of_sexp"><a href="#val-reaction_event_of_sexp" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt><dt class="spec value" id="val-sexp_of_reaction_event"><a href="#val-sexp_of_reaction_event" class="anchor"></a><code><span class="keyword">val </span>sexp_of_reaction_event : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-reaction_event_to_yojson"><a href="#val-reaction_event_to_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_to_yojson : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-reaction_event_of_yojson"><a href="#val-reaction_event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-reaction_event_of_yojson_exn"><a href="#val-reaction_event_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.count" class="anchored"><td class="def field"><a href="#type-t.count" class="anchor"></a><code>count : int;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../Emoji/index.html#type-t">Emoji.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Key/index.html b/docs/disml/Disml/Rl/RouteMap/Key/index.html deleted file mode 100644 index 0d08653..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Key/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Key (disml.Disml.Rl.RouteMap.Key)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Key</nav><h1>Module <code>RouteMap.Key</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span>Core.String.t</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl><dl><dt class="spec type" id="type-comparator_witness"><a href="#type-comparator_witness" class="anchor"></a><code><span class="keyword">type </span>comparator_witness</code><code><span class="keyword"> = </span>Core_kernel__Map.Make(Core.String).Key.comparator_witness</code></dt></dl><dl><dt class="spec value" id="val-comparator"><a href="#val-comparator" class="anchor"></a><code><span class="keyword">val </span>comparator : (<a href="index.html#type-t">t</a>, <a href="index.html#type-comparator_witness">comparator_witness</a>) Core_kernel__.Comparator.comparator</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Provide_bin_io/argument-1-Key/index.html b/docs/disml/Disml/Rl/RouteMap/Provide_bin_io/argument-1-Key/index.html deleted file mode 100644 index 3665a79..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Provide_bin_io/argument-1-Key/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-Key (disml.Disml.Rl.RouteMap.Provide_bin_io.1-Key)</title><link rel="stylesheet" href="../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../index.html">disml</a> » <a href="../../../../index.html">Disml</a> » <a href="../../../index.html">Rl</a> » <a href="../../index.html">RouteMap</a> » <a href="../index.html">Provide_bin_io</a> » 1-Key</nav><h1>Parameter <code>Provide_bin_io.1-Key</code></h1></header><dl><dt class="spec value" id="val-bin_t"><a href="#val-bin_t" class="anchor"></a><code><span class="keyword">val </span>bin_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Type_class.t</code></dt><dt class="spec value" id="val-bin_read_t"><a href="#val-bin_read_t" class="anchor"></a><code><span class="keyword">val </span>bin_read_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Read.reader</code></dt><dt class="spec value" id="val-__bin_read_t__"><a href="#val-__bin_read_t__" class="anchor"></a><code><span class="keyword">val </span>__bin_read_t__ : (Core_kernel__.Import.int <span>-></span> <a href="../../Key/index.html#type-t">Key.t</a>) Bin_prot.Read.reader</code></dt><dt class="spec value" id="val-bin_reader_t"><a href="#val-bin_reader_t" class="anchor"></a><code><span class="keyword">val </span>bin_reader_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Type_class.reader</code></dt><dt class="spec value" id="val-bin_size_t"><a href="#val-bin_size_t" class="anchor"></a><code><span class="keyword">val </span>bin_size_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Size.sizer</code></dt><dt class="spec value" id="val-bin_write_t"><a href="#val-bin_write_t" class="anchor"></a><code><span class="keyword">val </span>bin_write_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Write.writer</code></dt><dt class="spec value" id="val-bin_writer_t"><a href="#val-bin_writer_t" class="anchor"></a><code><span class="keyword">val </span>bin_writer_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Type_class.writer</code></dt><dt class="spec value" id="val-bin_shape_t"><a href="#val-bin_shape_t" class="anchor"></a><code><span class="keyword">val </span>bin_shape_t : Bin_prot.Shape.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Provide_bin_io/index.html b/docs/disml/Disml/Rl/RouteMap/Provide_bin_io/index.html deleted file mode 100644 index f977cbf..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Provide_bin_io/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Provide_bin_io (disml.Disml.Rl.RouteMap.Provide_bin_io)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Provide_bin_io</nav><h1>Module <code>RouteMap.Provide_bin_io</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec value" id="val-bin_shape_t"><a href="#val-bin_shape_t" class="anchor"></a><code><span class="keyword">val </span>bin_shape_t : Bin_prot.Shape.t <span>-></span> Bin_prot.Shape.t</code></dt><dt class="spec value" id="val-bin_size_t"><a href="#val-bin_size_t" class="anchor"></a><code><span class="keyword">val </span>bin_size_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Size.sizer1</code></dt><dt class="spec value" id="val-bin_write_t"><a href="#val-bin_write_t" class="anchor"></a><code><span class="keyword">val </span>bin_write_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Write.writer1</code></dt><dt class="spec value" id="val-bin_read_t"><a href="#val-bin_read_t" class="anchor"></a><code><span class="keyword">val </span>bin_read_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Read.reader1</code></dt><dt class="spec value" id="val-__bin_read_t__"><a href="#val-__bin_read_t__" class="anchor"></a><code><span class="keyword">val </span>__bin_read_t__ : (<span class="type-var">'a</span>, int <span>-></span> <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Read.reader1</code></dt><dt class="spec value" id="val-bin_writer_t"><a href="#val-bin_writer_t" class="anchor"></a><code><span class="keyword">val </span>bin_writer_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Type_class.S1.writer</code></dt><dt class="spec value" id="val-bin_reader_t"><a href="#val-bin_reader_t" class="anchor"></a><code><span class="keyword">val </span>bin_reader_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Type_class.S1.reader</code></dt><dt class="spec value" id="val-bin_t"><a href="#val-bin_t" class="anchor"></a><code><span class="keyword">val </span>bin_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Type_class.S1.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Provide_hash/argument-1-Key/index.html b/docs/disml/Disml/Rl/RouteMap/Provide_hash/argument-1-Key/index.html deleted file mode 100644 index 5e10b44..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Provide_hash/argument-1-Key/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-Key (disml.Disml.Rl.RouteMap.Provide_hash.1-Key)</title><link rel="stylesheet" href="../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../index.html">disml</a> » <a href="../../../../index.html">Disml</a> » <a href="../../../index.html">Rl</a> » <a href="../../index.html">RouteMap</a> » <a href="../index.html">Provide_hash</a> » 1-Key</nav><h1>Parameter <code>Provide_hash.1-Key</code></h1></header><dl><dt class="spec value" id="val-hash_fold_t"><a href="#val-hash_fold_t" class="anchor"></a><code><span class="keyword">val </span>hash_fold_t : Base__.Hash.state <span>-></span> <a href="../../Key/index.html#type-t">Key.t</a> <span>-></span> Base__.Hash.state</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Provide_hash/index.html b/docs/disml/Disml/Rl/RouteMap/Provide_hash/index.html deleted file mode 100644 index 3ea6368..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Provide_hash/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Provide_hash (disml.Disml.Rl.RouteMap.Provide_hash)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Provide_hash</nav><h1>Module <code>RouteMap.Provide_hash</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec value" id="val-hash_fold_t"><a href="#val-hash_fold_t" class="anchor"></a><code><span class="keyword">val </span>hash_fold_t : (Ppx_hash_lib.Std.Hash.state <span>-></span> <span class="type-var">'a</span> <span>-></span> Ppx_hash_lib.Std.Hash.state) <span>-></span> Ppx_hash_lib.Std.Hash.state <span>-></span> <span class="type-var">'a</span> <a href="../index.html#type-t">t</a> <span>-></span> Ppx_hash_lib.Std.Hash.state</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Provide_of_sexp/argument-1-Key/index.html b/docs/disml/Disml/Rl/RouteMap/Provide_of_sexp/argument-1-Key/index.html deleted file mode 100644 index 5373248..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Provide_of_sexp/argument-1-Key/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-Key (disml.Disml.Rl.RouteMap.Provide_of_sexp.1-Key)</title><link rel="stylesheet" href="../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../index.html">disml</a> » <a href="../../../../index.html">Disml</a> » <a href="../../../index.html">Rl</a> » <a href="../../index.html">RouteMap</a> » <a href="../index.html">Provide_of_sexp</a> » 1-Key</nav><h1>Parameter <code>Provide_of_sexp.1-Key</code></h1></header><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="../../Key/index.html#type-t">Key.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Provide_of_sexp/index.html b/docs/disml/Disml/Rl/RouteMap/Provide_of_sexp/index.html deleted file mode 100644 index 91285ef..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Provide_of_sexp/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Provide_of_sexp (disml.Disml.Rl.RouteMap.Provide_of_sexp)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Provide_of_sexp</nav><h1>Module <code>RouteMap.Provide_of_sexp</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : (Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'v_x__018_</span>) <span>-></span> Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'v_x__018_</span> <a href="../index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Tree/Provide_of_sexp/argument-1-K/index.html b/docs/disml/Disml/Rl/RouteMap/Tree/Provide_of_sexp/argument-1-K/index.html deleted file mode 100644 index f8f708c..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Tree/Provide_of_sexp/argument-1-K/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-K (disml.Disml.Rl.RouteMap.Tree.Provide_of_sexp.1-K)</title><link rel="stylesheet" href="../../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../../index.html">disml</a> » <a href="../../../../../index.html">Disml</a> » <a href="../../../../index.html">Rl</a> » <a href="../../../index.html">RouteMap</a> » <a href="../../index.html">Tree</a> » <a href="../index.html">Provide_of_sexp</a> » 1-K</nav><h1>Parameter <code>Provide_of_sexp.1-K</code></h1></header><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="../../../Key/index.html#type-t">Key.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Tree/Provide_of_sexp/index.html b/docs/disml/Disml/Rl/RouteMap/Tree/Provide_of_sexp/index.html deleted file mode 100644 index d2fee99..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Tree/Provide_of_sexp/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Provide_of_sexp (disml.Disml.Rl.RouteMap.Tree.Provide_of_sexp)</title><link rel="stylesheet" href="../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../index.html">disml</a> » <a href="../../../../index.html">Disml</a> » <a href="../../../index.html">Rl</a> » <a href="../../index.html">RouteMap</a> » <a href="../index.html">Tree</a> » Provide_of_sexp</nav><h1>Module <code>Tree.Provide_of_sexp</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-K/index.html">K</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : (Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'v_x__017_</span>) <span>-></span> Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'v_x__017_</span> <a href="../index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/Tree/index.html b/docs/disml/Disml/Rl/RouteMap/Tree/index.html deleted file mode 100644 index 26b93a3..0000000 --- a/docs/disml/Disml/Rl/RouteMap/Tree/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Tree (disml.Disml.Rl.RouteMap.Tree)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Tree</nav><h1>Module <code>RouteMap.Tree</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>'a t</code><code><span class="keyword"> = </span>(<a href="../Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>, <a href="../Key/index.html#type-comparator_witness">Key.comparator_witness</a>) Core_kernel__.Map_intf.Tree.t</code></dt></dl><dl><dt class="spec value" id="val-empty"><a href="#val-empty" class="anchor"></a><code><span class="keyword">val </span>empty : <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-singleton"><a href="#val-singleton" class="anchor"></a><code><span class="keyword">val </span>singleton : <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist"><a href="#val-of_alist" class="anchor"></a><code><span class="keyword">val </span>of_alist : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> [ `Duplicate_key of <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> | </span>`Ok of <span class="type-var">'a</span> <a href="index.html#type-t">t</a> ]</code></dt><dt class="spec value" id="val-of_alist_or_error"><a href="#val-of_alist_or_error" class="anchor"></a><code><span class="keyword">val </span>of_alist_or_error : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_alist_exn"><a href="#val-of_alist_exn" class="anchor"></a><code><span class="keyword">val </span>of_alist_exn : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_multi"><a href="#val-of_alist_multi" class="anchor"></a><code><span class="keyword">val </span>of_alist_multi : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_fold"><a href="#val-of_alist_fold" class="anchor"></a><code><span class="keyword">val </span>of_alist_fold : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(<span class="type-var">'b</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_reduce"><a href="#val-of_alist_reduce" class="anchor"></a><code><span class="keyword">val </span>of_alist_reduce : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_sorted_array"><a href="#val-of_sorted_array" class="anchor"></a><code><span class="keyword">val </span>of_sorted_array : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) array <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_sorted_array_unchecked"><a href="#val-of_sorted_array_unchecked" class="anchor"></a><code><span class="keyword">val </span>of_sorted_array_unchecked : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) array <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_increasing_iterator_unchecked"><a href="#val-of_increasing_iterator_unchecked" class="anchor"></a><code><span class="keyword">val </span>of_increasing_iterator_unchecked : len:int <span>-></span> f:(int <span>-></span> <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_increasing_sequence"><a href="#val-of_increasing_sequence" class="anchor"></a><code><span class="keyword">val </span>of_increasing_sequence : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) Base__.Sequence.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_iteri"><a href="#val-of_iteri" class="anchor"></a><code><span class="keyword">val </span>of_iteri : iteri:(f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'v</span> <span>-></span> unit) <span>-></span> unit) <span>-></span> [ `Duplicate_key of <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> | </span>`Ok of <span class="type-var">'v</span> <a href="index.html#type-t">t</a> ]</code></dt><dt class="spec value" id="val-of_tree"><a href="#val-of_tree" class="anchor"></a><code><span class="keyword">val </span>of_tree : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_hashtbl_exn"><a href="#val-of_hashtbl_exn" class="anchor"></a><code><span class="keyword">val </span>of_hashtbl_exn : (<a href="../Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>) Core_kernel__.Hashtbl.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-gen"><a href="#val-gen" class="anchor"></a><code><span class="keyword">val </span>gen : <a href="../Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Generator.t <span>-></span> <span class="type-var">'a</span> Core_kernel__.Quickcheck.Generator.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Generator.t</code></dt><dt class="spec value" id="val-invariants"><a href="#val-invariants" class="anchor"></a><code><span class="keyword">val </span>invariants : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-is_empty"><a href="#val-is_empty" class="anchor"></a><code><span class="keyword">val </span>is_empty : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-length"><a href="#val-length" class="anchor"></a><code><span class="keyword">val </span>length : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-add"><a href="#val-add" class="anchor"></a><code><span class="keyword">val </span>add : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Map_intf.Or_duplicate.t</code></dt><dt class="spec value" id="val-add_exn"><a href="#val-add_exn" class="anchor"></a><code><span class="keyword">val </span>add_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-set"><a href="#val-set" class="anchor"></a><code><span class="keyword">val </span>set : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-add_multi"><a href="#val-add_multi" class="anchor"></a><code><span class="keyword">val </span>add_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-remove_multi"><a href="#val-remove_multi" class="anchor"></a><code><span class="keyword">val </span>remove_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-find_multi"><a href="#val-find_multi" class="anchor"></a><code><span class="keyword">val </span>find_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> list</code></dt><dt class="spec value" id="val-change"><a href="#val-change" class="anchor"></a><code><span class="keyword">val </span>change : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span> option) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-update"><a href="#val-update" class="anchor"></a><code><span class="keyword">val </span>update : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-find"><a href="#val-find" class="anchor"></a><code><span class="keyword">val </span>find : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> option</code></dt><dt class="spec value" id="val-find_exn"><a href="#val-find_exn" class="anchor"></a><code><span class="keyword">val </span>find_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span></code></dt><dt class="spec value" id="val-remove"><a href="#val-remove" class="anchor"></a><code><span class="keyword">val </span>remove : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-mem"><a href="#val-mem" class="anchor"></a><code><span class="keyword">val </span>mem : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-iter_keys"><a href="#val-iter_keys" class="anchor"></a><code><span class="keyword">val </span>iter_keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iter"><a href="#val-iter" class="anchor"></a><code><span class="keyword">val </span>iter : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iteri"><a href="#val-iteri" class="anchor"></a><code><span class="keyword">val </span>iteri : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iter2"><a href="#val-iter2" class="anchor"></a><code><span class="keyword">val </span>iter2 : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:[ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-map"><a href="#val-map" class="anchor"></a><code><span class="keyword">val </span>map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-mapi"><a href="#val-mapi" class="anchor"></a><code><span class="keyword">val </span>mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fold"><a href="#val-fold" class="anchor"></a><code><span class="keyword">val </span>fold : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-fold_right"><a href="#val-fold_right" class="anchor"></a><code><span class="keyword">val </span>fold_right : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-fold2"><a href="#val-fold2" class="anchor"></a><code><span class="keyword">val </span>fold2 : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'c</span> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:[ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> <span class="type-var">'c</span> <span>-></span> <span class="type-var">'c</span>) <span>-></span> <span class="type-var">'c</span></code></dt><dt class="spec value" id="val-filter_keys"><a href="#val-filter_keys" class="anchor"></a><code><span class="keyword">val </span>filter_keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter"><a href="#val-filter" class="anchor"></a><code><span class="keyword">val </span>filter : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filteri"><a href="#val-filteri" class="anchor"></a><code><span class="keyword">val </span>filteri : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter_map"><a href="#val-filter_map" class="anchor"></a><code><span class="keyword">val </span>filter_map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> option) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter_mapi"><a href="#val-filter_mapi" class="anchor"></a><code><span class="keyword">val </span>filter_mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> option) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_mapi"><a href="#val-partition_mapi" class="anchor"></a><code><span class="keyword">val </span>partition_mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> [ `Fst of <span class="type-var">'b</span><span class="keyword"> | </span>`Snd of <span class="type-var">'c</span> ]) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_map"><a href="#val-partition_map" class="anchor"></a><code><span class="keyword">val </span>partition_map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> [ `Fst of <span class="type-var">'b</span><span class="keyword"> | </span>`Snd of <span class="type-var">'c</span> ]) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partitioni_tf"><a href="#val-partitioni_tf" class="anchor"></a><code><span class="keyword">val </span>partitioni_tf : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_tf"><a href="#val-partition_tf" class="anchor"></a><code><span class="keyword">val </span>partition_tf : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-compare_direct"><a href="#val-compare_direct" class="anchor"></a><code><span class="keyword">val </span>compare_direct : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> int) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-equal"><a href="#val-equal" class="anchor"></a><code><span class="keyword">val </span>equal : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-keys"><a href="#val-keys" class="anchor"></a><code><span class="keyword">val </span>keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> list</code></dt><dt class="spec value" id="val-data"><a href="#val-data" class="anchor"></a><code><span class="keyword">val </span>data : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> list</code></dt><dt class="spec value" id="val-to_alist"><a href="#val-to_alist" class="anchor"></a><code><span class="keyword">val </span>to_alist : ?⁠key_order:[ `Decreasing<span class="keyword"> | </span>`Increasing ] <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list</code></dt><dt class="spec value" id="val-validate"><a href="#val-validate" class="anchor"></a><code><span class="keyword">val </span>validate : name:(<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> string) <span>-></span> <span class="type-var">'a</span> Base__.Validate.check <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Validate.check</code></dt><dt class="spec value" id="val-merge"><a href="#val-merge" class="anchor"></a><code><span class="keyword">val </span>merge : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> [ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> <span class="type-var">'c</span> option) <span>-></span> <span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-symmetric_diff"><a href="#val-symmetric_diff" class="anchor"></a><code><span class="keyword">val </span>symmetric_diff : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> data_equal:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> bool) <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>) Base__.Map_intf.Symmetric_diff_element.t Base__.Sequence.t</code></dt><dt class="spec value" id="val-min_elt"><a href="#val-min_elt" class="anchor"></a><code><span class="keyword">val </span>min_elt : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-min_elt_exn"><a href="#val-min_elt_exn" class="anchor"></a><code><span class="keyword">val </span>min_elt_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-max_elt"><a href="#val-max_elt" class="anchor"></a><code><span class="keyword">val </span>max_elt : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-max_elt_exn"><a href="#val-max_elt_exn" class="anchor"></a><code><span class="keyword">val </span>max_elt_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-for_all"><a href="#val-for_all" class="anchor"></a><code><span class="keyword">val </span>for_all : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-for_alli"><a href="#val-for_alli" class="anchor"></a><code><span class="keyword">val </span>for_alli : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-exists"><a href="#val-exists" class="anchor"></a><code><span class="keyword">val </span>exists : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-existsi"><a href="#val-existsi" class="anchor"></a><code><span class="keyword">val </span>existsi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-count"><a href="#val-count" class="anchor"></a><code><span class="keyword">val </span>count : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> int</code></dt><dt class="spec value" id="val-counti"><a href="#val-counti" class="anchor"></a><code><span class="keyword">val </span>counti : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> int</code></dt><dt class="spec value" id="val-split"><a href="#val-split" class="anchor"></a><code><span class="keyword">val </span>split : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span>(<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option<span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-append"><a href="#val-append" class="anchor"></a><code><span class="keyword">val </span>append : lower_part:<span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> upper_part:<span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> [ `Ok of <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> | </span>`Overlapping_key_ranges ]</code></dt><dt class="spec value" id="val-subrange"><a href="#val-subrange" class="anchor"></a><code><span class="keyword">val </span>subrange : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> lower_bound:<a href="../Key/index.html#type-t">Key.t</a> Base__.Maybe_bound.t <span>-></span> upper_bound:<a href="../Key/index.html#type-t">Key.t</a> Base__.Maybe_bound.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fold_range_inclusive"><a href="#val-fold_range_inclusive" class="anchor"></a><code><span class="keyword">val </span>fold_range_inclusive : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> min:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> max:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-range_to_alist"><a href="#val-range_to_alist" class="anchor"></a><code><span class="keyword">val </span>range_to_alist : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> min:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> max:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list</code></dt><dt class="spec value" id="val-closest_key"><a href="#val-closest_key" class="anchor"></a><code><span class="keyword">val </span>closest_key : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> [ `Greater_or_equal_to<span class="keyword"> | </span>`Greater_than<span class="keyword"> | </span>`Less_or_equal_to<span class="keyword"> | </span>`Less_than ] <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-nth"><a href="#val-nth" class="anchor"></a><code><span class="keyword">val </span>nth : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-nth_exn"><a href="#val-nth_exn" class="anchor"></a><code><span class="keyword">val </span>nth_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int <span>-></span> <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-rank"><a href="#val-rank" class="anchor"></a><code><span class="keyword">val </span>rank : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> int option</code></dt><dt class="spec value" id="val-to_tree"><a href="#val-to_tree" class="anchor"></a><code><span class="keyword">val </span>to_tree : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-to_sequence"><a href="#val-to_sequence" class="anchor"></a><code><span class="keyword">val </span>to_sequence : ?⁠order:[ `Decreasing_key<span class="keyword"> | </span>`Increasing_key ] <span>-></span> ?⁠keys_greater_or_equal_to:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> ?⁠keys_less_or_equal_to:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) Base__.Sequence.t</code></dt><dt class="spec value" id="val-obs"><a href="#val-obs" class="anchor"></a><code><span class="keyword">val </span>obs : <a href="../Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Observer.t <span>-></span> <span class="type-var">'v</span> Core_kernel__.Quickcheck.Observer.t <span>-></span> <span class="type-var">'v</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Observer.t</code></dt><dt class="spec value" id="val-shrinker"><a href="#val-shrinker" class="anchor"></a><code><span class="keyword">val </span>shrinker : <a href="../Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Shrinker.t <span>-></span> <span class="type-var">'v</span> Core_kernel__.Quickcheck.Shrinker.t <span>-></span> <span class="type-var">'v</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Shrinker.t</code></dt></dl><div class="spec module" id="module-Provide_of_sexp"><a href="#module-Provide_of_sexp" class="anchor"></a><code><span class="keyword">module </span><a href="Provide_of_sexp/index.html">Provide_of_sexp</a> : <span class="keyword">functor</span> (<a href="Provide_of_sexp/argument-1-K/index.html">K</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span>) <span>-></span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : (Base__.Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'a</span>) <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : (<span class="type-var">'a</span> <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/RouteMap/index.html b/docs/disml/Disml/Rl/RouteMap/index.html deleted file mode 100644 index 4320fdb..0000000 --- a/docs/disml/Disml/Rl/RouteMap/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>RouteMap (disml.Disml.Rl.RouteMap)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml</a> » <a href="../index.html">Rl</a> » RouteMap</nav><h1>Module <code>Rl.RouteMap</code></h1><p>Type for mapping route -> <a href="../index.html#type-rl"><code>rl</code></a>.</p></header><div class="spec module" id="module-Key"><a href="#module-Key" class="anchor"></a><code><span class="keyword">module </span><a href="Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Tree"><a href="#module-Tree" class="anchor"></a><code><span class="keyword">module </span><a href="Tree/index.html">Tree</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>'a t</code><code><span class="keyword"> = </span>(<a href="Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>, <a href="Key/index.html#type-comparator_witness">Key.comparator_witness</a>) Core_kernel__.Map_intf.Map.t</code></dt></dl><dl><dt class="spec value" id="val-compare"><a href="#val-compare" class="anchor"></a><code><span class="keyword">val </span>compare : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> Core_kernel__.Import.int) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> Core_kernel__.Import.int</code></dt><dt class="spec value" id="val-empty"><a href="#val-empty" class="anchor"></a><code><span class="keyword">val </span>empty : <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-singleton"><a href="#val-singleton" class="anchor"></a><code><span class="keyword">val </span>singleton : <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist"><a href="#val-of_alist" class="anchor"></a><code><span class="keyword">val </span>of_alist : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> [ `Duplicate_key of <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> | </span>`Ok of <span class="type-var">'a</span> <a href="index.html#type-t">t</a> ]</code></dt><dt class="spec value" id="val-of_alist_or_error"><a href="#val-of_alist_or_error" class="anchor"></a><code><span class="keyword">val </span>of_alist_or_error : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_alist_exn"><a href="#val-of_alist_exn" class="anchor"></a><code><span class="keyword">val </span>of_alist_exn : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_multi"><a href="#val-of_alist_multi" class="anchor"></a><code><span class="keyword">val </span>of_alist_multi : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_fold"><a href="#val-of_alist_fold" class="anchor"></a><code><span class="keyword">val </span>of_alist_fold : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(<span class="type-var">'b</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_reduce"><a href="#val-of_alist_reduce" class="anchor"></a><code><span class="keyword">val </span>of_alist_reduce : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_sorted_array"><a href="#val-of_sorted_array" class="anchor"></a><code><span class="keyword">val </span>of_sorted_array : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) array <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_sorted_array_unchecked"><a href="#val-of_sorted_array_unchecked" class="anchor"></a><code><span class="keyword">val </span>of_sorted_array_unchecked : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) array <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_increasing_iterator_unchecked"><a href="#val-of_increasing_iterator_unchecked" class="anchor"></a><code><span class="keyword">val </span>of_increasing_iterator_unchecked : len:int <span>-></span> f:(int <span>-></span> <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_increasing_sequence"><a href="#val-of_increasing_sequence" class="anchor"></a><code><span class="keyword">val </span>of_increasing_sequence : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) Base__.Sequence.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_iteri"><a href="#val-of_iteri" class="anchor"></a><code><span class="keyword">val </span>of_iteri : iteri:(f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'v</span> <span>-></span> unit) <span>-></span> unit) <span>-></span> [ `Duplicate_key of <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> | </span>`Ok of <span class="type-var">'v</span> <a href="index.html#type-t">t</a> ]</code></dt><dt class="spec value" id="val-of_tree"><a href="#val-of_tree" class="anchor"></a><code><span class="keyword">val </span>of_tree : <span class="type-var">'a</span> <a href="Tree/index.html#type-t">Tree.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_hashtbl_exn"><a href="#val-of_hashtbl_exn" class="anchor"></a><code><span class="keyword">val </span>of_hashtbl_exn : (<a href="Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>) Core_kernel__.Hashtbl.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-gen"><a href="#val-gen" class="anchor"></a><code><span class="keyword">val </span>gen : <a href="Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Generator.t <span>-></span> <span class="type-var">'a</span> Core_kernel__.Quickcheck.Generator.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Generator.t</code></dt><dt class="spec value" id="val-invariants"><a href="#val-invariants" class="anchor"></a><code><span class="keyword">val </span>invariants : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-is_empty"><a href="#val-is_empty" class="anchor"></a><code><span class="keyword">val </span>is_empty : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-length"><a href="#val-length" class="anchor"></a><code><span class="keyword">val </span>length : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-add"><a href="#val-add" class="anchor"></a><code><span class="keyword">val </span>add : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Map_intf.Or_duplicate.t</code></dt><dt class="spec value" id="val-add_exn"><a href="#val-add_exn" class="anchor"></a><code><span class="keyword">val </span>add_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-set"><a href="#val-set" class="anchor"></a><code><span class="keyword">val </span>set : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-add_multi"><a href="#val-add_multi" class="anchor"></a><code><span class="keyword">val </span>add_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-remove_multi"><a href="#val-remove_multi" class="anchor"></a><code><span class="keyword">val </span>remove_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-find_multi"><a href="#val-find_multi" class="anchor"></a><code><span class="keyword">val </span>find_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> list</code></dt><dt class="spec value" id="val-change"><a href="#val-change" class="anchor"></a><code><span class="keyword">val </span>change : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span> option) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-update"><a href="#val-update" class="anchor"></a><code><span class="keyword">val </span>update : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-find"><a href="#val-find" class="anchor"></a><code><span class="keyword">val </span>find : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> option</code></dt><dt class="spec value" id="val-find_exn"><a href="#val-find_exn" class="anchor"></a><code><span class="keyword">val </span>find_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span></code></dt><dt class="spec value" id="val-remove"><a href="#val-remove" class="anchor"></a><code><span class="keyword">val </span>remove : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-mem"><a href="#val-mem" class="anchor"></a><code><span class="keyword">val </span>mem : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-iter_keys"><a href="#val-iter_keys" class="anchor"></a><code><span class="keyword">val </span>iter_keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<a href="Key/index.html#type-t">Key.t</a> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iter"><a href="#val-iter" class="anchor"></a><code><span class="keyword">val </span>iter : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iteri"><a href="#val-iteri" class="anchor"></a><code><span class="keyword">val </span>iteri : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iter2"><a href="#val-iter2" class="anchor"></a><code><span class="keyword">val </span>iter2 : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:[ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-map"><a href="#val-map" class="anchor"></a><code><span class="keyword">val </span>map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-mapi"><a href="#val-mapi" class="anchor"></a><code><span class="keyword">val </span>mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fold"><a href="#val-fold" class="anchor"></a><code><span class="keyword">val </span>fold : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-fold_right"><a href="#val-fold_right" class="anchor"></a><code><span class="keyword">val </span>fold_right : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-fold2"><a href="#val-fold2" class="anchor"></a><code><span class="keyword">val </span>fold2 : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'c</span> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:[ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> <span class="type-var">'c</span> <span>-></span> <span class="type-var">'c</span>) <span>-></span> <span class="type-var">'c</span></code></dt><dt class="spec value" id="val-filter_keys"><a href="#val-filter_keys" class="anchor"></a><code><span class="keyword">val </span>filter_keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<a href="Key/index.html#type-t">Key.t</a> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter"><a href="#val-filter" class="anchor"></a><code><span class="keyword">val </span>filter : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filteri"><a href="#val-filteri" class="anchor"></a><code><span class="keyword">val </span>filteri : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter_map"><a href="#val-filter_map" class="anchor"></a><code><span class="keyword">val </span>filter_map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> option) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter_mapi"><a href="#val-filter_mapi" class="anchor"></a><code><span class="keyword">val </span>filter_mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> option) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_mapi"><a href="#val-partition_mapi" class="anchor"></a><code><span class="keyword">val </span>partition_mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> [ `Fst of <span class="type-var">'b</span><span class="keyword"> | </span>`Snd of <span class="type-var">'c</span> ]) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_map"><a href="#val-partition_map" class="anchor"></a><code><span class="keyword">val </span>partition_map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> [ `Fst of <span class="type-var">'b</span><span class="keyword"> | </span>`Snd of <span class="type-var">'c</span> ]) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partitioni_tf"><a href="#val-partitioni_tf" class="anchor"></a><code><span class="keyword">val </span>partitioni_tf : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_tf"><a href="#val-partition_tf" class="anchor"></a><code><span class="keyword">val </span>partition_tf : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-compare_direct"><a href="#val-compare_direct" class="anchor"></a><code><span class="keyword">val </span>compare_direct : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> int) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-equal"><a href="#val-equal" class="anchor"></a><code><span class="keyword">val </span>equal : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-keys"><a href="#val-keys" class="anchor"></a><code><span class="keyword">val </span>keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> list</code></dt><dt class="spec value" id="val-data"><a href="#val-data" class="anchor"></a><code><span class="keyword">val </span>data : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> list</code></dt><dt class="spec value" id="val-to_alist"><a href="#val-to_alist" class="anchor"></a><code><span class="keyword">val </span>to_alist : ?⁠key_order:[ `Decreasing<span class="keyword"> | </span>`Increasing ] <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list</code></dt><dt class="spec value" id="val-validate"><a href="#val-validate" class="anchor"></a><code><span class="keyword">val </span>validate : name:(<a href="Key/index.html#type-t">Key.t</a> <span>-></span> string) <span>-></span> <span class="type-var">'a</span> Base__.Validate.check <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Validate.check</code></dt><dt class="spec value" id="val-merge"><a href="#val-merge" class="anchor"></a><code><span class="keyword">val </span>merge : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> [ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> <span class="type-var">'c</span> option) <span>-></span> <span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-symmetric_diff"><a href="#val-symmetric_diff" class="anchor"></a><code><span class="keyword">val </span>symmetric_diff : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> data_equal:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> bool) <span>-></span> (<a href="Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>) Base__.Map_intf.Symmetric_diff_element.t Base__.Sequence.t</code></dt><dt class="spec value" id="val-min_elt"><a href="#val-min_elt" class="anchor"></a><code><span class="keyword">val </span>min_elt : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-min_elt_exn"><a href="#val-min_elt_exn" class="anchor"></a><code><span class="keyword">val </span>min_elt_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-max_elt"><a href="#val-max_elt" class="anchor"></a><code><span class="keyword">val </span>max_elt : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-max_elt_exn"><a href="#val-max_elt_exn" class="anchor"></a><code><span class="keyword">val </span>max_elt_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-for_all"><a href="#val-for_all" class="anchor"></a><code><span class="keyword">val </span>for_all : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-for_alli"><a href="#val-for_alli" class="anchor"></a><code><span class="keyword">val </span>for_alli : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-exists"><a href="#val-exists" class="anchor"></a><code><span class="keyword">val </span>exists : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-existsi"><a href="#val-existsi" class="anchor"></a><code><span class="keyword">val </span>existsi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-count"><a href="#val-count" class="anchor"></a><code><span class="keyword">val </span>count : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> int</code></dt><dt class="spec value" id="val-counti"><a href="#val-counti" class="anchor"></a><code><span class="keyword">val </span>counti : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> int</code></dt><dt class="spec value" id="val-split"><a href="#val-split" class="anchor"></a><code><span class="keyword">val </span>split : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span>(<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option<span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-append"><a href="#val-append" class="anchor"></a><code><span class="keyword">val </span>append : lower_part:<span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> upper_part:<span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> [ `Ok of <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> | </span>`Overlapping_key_ranges ]</code></dt><dt class="spec value" id="val-subrange"><a href="#val-subrange" class="anchor"></a><code><span class="keyword">val </span>subrange : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> lower_bound:<a href="Key/index.html#type-t">Key.t</a> Base__.Maybe_bound.t <span>-></span> upper_bound:<a href="Key/index.html#type-t">Key.t</a> Base__.Maybe_bound.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fold_range_inclusive"><a href="#val-fold_range_inclusive" class="anchor"></a><code><span class="keyword">val </span>fold_range_inclusive : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> min:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> max:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-range_to_alist"><a href="#val-range_to_alist" class="anchor"></a><code><span class="keyword">val </span>range_to_alist : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> min:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> max:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list</code></dt><dt class="spec value" id="val-closest_key"><a href="#val-closest_key" class="anchor"></a><code><span class="keyword">val </span>closest_key : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> [ `Greater_or_equal_to<span class="keyword"> | </span>`Greater_than<span class="keyword"> | </span>`Less_or_equal_to<span class="keyword"> | </span>`Less_than ] <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-nth"><a href="#val-nth" class="anchor"></a><code><span class="keyword">val </span>nth : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-nth_exn"><a href="#val-nth_exn" class="anchor"></a><code><span class="keyword">val </span>nth_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int <span>-></span> <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-rank"><a href="#val-rank" class="anchor"></a><code><span class="keyword">val </span>rank : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> int option</code></dt><dt class="spec value" id="val-to_tree"><a href="#val-to_tree" class="anchor"></a><code><span class="keyword">val </span>to_tree : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="Tree/index.html#type-t">Tree.t</a></code></dt><dt class="spec value" id="val-to_sequence"><a href="#val-to_sequence" class="anchor"></a><code><span class="keyword">val </span>to_sequence : ?⁠order:[ `Decreasing_key<span class="keyword"> | </span>`Increasing_key ] <span>-></span> ?⁠keys_greater_or_equal_to:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> ?⁠keys_less_or_equal_to:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) Base__.Sequence.t</code></dt><dt class="spec value" id="val-obs"><a href="#val-obs" class="anchor"></a><code><span class="keyword">val </span>obs : <a href="Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Observer.t <span>-></span> <span class="type-var">'v</span> Core_kernel__.Quickcheck.Observer.t <span>-></span> <span class="type-var">'v</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Observer.t</code></dt><dt class="spec value" id="val-shrinker"><a href="#val-shrinker" class="anchor"></a><code><span class="keyword">val </span>shrinker : <a href="Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Shrinker.t <span>-></span> <span class="type-var">'v</span> Core_kernel__.Quickcheck.Shrinker.t <span>-></span> <span class="type-var">'v</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Shrinker.t</code></dt></dl><div class="spec module" id="module-Provide_of_sexp"><a href="#module-Provide_of_sexp" class="anchor"></a><code><span class="keyword">module </span><a href="Provide_of_sexp/index.html">Provide_of_sexp</a> : <span class="keyword">functor</span> (<a href="Provide_of_sexp/argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span>) <span>-></span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Provide_bin_io"><a href="#module-Provide_bin_io" class="anchor"></a><code><span class="keyword">module </span><a href="Provide_bin_io/index.html">Provide_bin_io</a> : <span class="keyword">functor</span> (<a href="Provide_bin_io/argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span>) <span>-></span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Provide_hash"><a href="#module-Provide_hash" class="anchor"></a><code><span class="keyword">module </span><a href="Provide_hash/index.html">Provide_hash</a> : <span class="keyword">functor</span> (<a href="Provide_hash/argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span>) <span>-></span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : (Base__.Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'a</span>) <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : (<span class="type-var">'a</span> <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Rl/index.html b/docs/disml/Disml/Rl/index.html deleted file mode 100644 index a4527ce..0000000 --- a/docs/disml/Disml/Rl/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Rl (disml.Disml.Rl)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Rl</nav><h1>Module <code>Disml.Rl</code></h1></header><aside><p>Internal ratelimit route mapping.</p></aside><dl><dt class="spec module" id="module-RouteMap"><a href="#module-RouteMap" class="anchor"></a><code><span class="keyword">module </span><a href="RouteMap/index.html">RouteMap</a> : <span class="keyword">module type of </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Type for mapping route -> <a href="index.html#type-rl"><code>rl</code></a>.</p></dd></dl><dl><dt class="spec type" id="type-rl"><a href="#type-rl" class="anchor"></a><code><span class="keyword">type </span>rl</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-rl.limit" class="anchored"><td class="def field"><a href="#type-rl.limit" class="anchor"></a><code>limit : int;</code></td></tr><tr id="type-rl.remaining" class="anchored"><td class="def field"><a href="#type-rl.remaining" class="anchor"></a><code>remaining : int;</code></td></tr><tr id="type-rl.reset" class="anchored"><td class="def field"><a href="#type-rl.reset" class="anchor"></a><code>reset : int;</code></td></tr></table><code>}</code></dt><dd><p>Type representing ratelimit information.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span>(<a href="index.html#type-rl">rl</a>, Core.read_write) Async.Mvar.t <a href="RouteMap/index.html#type-t">RouteMap.t</a></code></dt><dd><p>Type representing the specific case of <a href="RouteMap/index.html"><code>RouteMap</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-rl_of_header"><a href="#val-rl_of_header" class="anchor"></a><code><span class="keyword">val </span>rl_of_header : Cohttp.Header.t <span>-></span> <a href="index.html#type-rl">rl</a> option</code></dt><dd><p>Converts Cohttp header data into ratelimit information.</p><dl><dt>returns</dt><dd><p>Some of ratelimit information or None on bad headers</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-default"><a href="#val-default" class="anchor"></a><code><span class="keyword">val </span>default : <a href="index.html#type-rl">rl</a></code></dt><dd><p>Default for type rl. Used for prepopulating routes.</p></dd></dl><dl><dt class="spec value" id="val-empty"><a href="#val-empty" class="anchor"></a><code><span class="keyword">val </span>empty : <a href="index.html#type-t">t</a></code></dt><dd><p>Empty ratelimit route map.</p></dd></dl><dl><dt class="spec value" id="val-update"><a href="#val-update" class="anchor"></a><code><span class="keyword">val </span>update : <span class="type-var">'a</span> <a href="RouteMap/index.html#type-t">RouteMap.t</a> <span>-></span> string <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="RouteMap/index.html#type-t">RouteMap.t</a></code></dt><dd><p>Analogous to <a href="RouteMap/index.html#val-update"><code>RouteMap.update</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-find"><a href="#val-find" class="anchor"></a><code><span class="keyword">val </span>find : <span class="type-var">'a</span> <a href="RouteMap/index.html#type-t">RouteMap.t</a> <span>-></span> string <span>-></span> <span class="type-var">'a</span> option</code></dt><dd><p>Analogous to <a href="RouteMap/index.html#val-find"><code>RouteMap.find</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-find_exn"><a href="#val-find_exn" class="anchor"></a><code><span class="keyword">val </span>find_exn : <span class="type-var">'a</span> <a href="RouteMap/index.html#type-t">RouteMap.t</a> <span>-></span> string <span>-></span> <span class="type-var">'a</span></code></dt><dd><p>Analogous to <a href="RouteMap/index.html#val-find_exn"><code>RouteMap.find_exn</code></a>.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Role/index.html b/docs/disml/Disml/Role/index.html deleted file mode 100644 index c1aa27a..0000000 --- a/docs/disml/Disml/Role/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Role (disml.Disml.Role)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Role</nav><h1>Module <code>Disml.Role</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Role_t">Role_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-role"><a href="#type-role" class="anchor"></a><code><span class="keyword">type </span>role</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role.id" class="anchored"><td class="def field"><a href="#type-role.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-role.name" class="anchored"><td class="def field"><a href="#type-role.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-role.colour" class="anchored"><td class="def field"><a href="#type-role.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-role.hoist" class="anchored"><td class="def field"><a href="#type-role.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-role.position" class="anchored"><td class="def field"><a href="#type-role.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-role.permissions" class="anchored"><td class="def field"><a href="#type-role.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-role.managed" class="anchored"><td class="def field"><a href="#type-role.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-role.mentionable" class="anchored"><td class="def field"><a href="#type-role.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_of_sexp"><a href="#val-role_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role">role</a></code></dt><dt class="spec value" id="val-sexp_of_role"><a href="#val-sexp_of_role" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role : <a href="index.html#type-role">role</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_to_yojson"><a href="#val-role_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_to_yojson : <a href="index.html#type-role">role</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_of_yojson"><a href="#val-role_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_of_yojson_exn"><a href="#val-role_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a></code></dt></dl><dl><dt class="spec type" id="type-role_update"><a href="#type-role_update" class="anchor"></a><code><span class="keyword">type </span>role_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role_update.role" class="anchored"><td class="def field"><a href="#type-role_update.role" class="anchor"></a><code>role : <a href="index.html#type-role">role</a>;</code></td></tr><tr id="type-role_update.guild_id" class="anchored"><td class="def field"><a href="#type-role_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_update_of_sexp"><a href="#val-role_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role_update">role_update</a></code></dt><dt class="spec value" id="val-sexp_of_role_update"><a href="#val-sexp_of_role_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role_update : <a href="index.html#type-role_update">role_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_update_to_yojson"><a href="#val-role_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_update_to_yojson : <a href="index.html#type-role_update">role_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_update_of_yojson"><a href="#val-role_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role_update">role_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_update_of_yojson_exn"><a href="#val-role_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role_update">role_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-t.hoist" class="anchored"><td class="def field"><a href="#type-t.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-t.position" class="anchored"><td class="def field"><a href="#type-t.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-t.permissions" class="anchored"><td class="def field"><a href="#type-t.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-t.mentionable" class="anchored"><td class="def field"><a href="#type-t.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-role">role</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-allow_mention"><a href="#val-allow_mention" class="anchor"></a><code><span class="keyword">val </span>allow_mention : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-disallow_mention"><a href="#val-disallow_mention" class="anchor"></a><code><span class="keyword">val </span>disallow_mention : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-hoist"><a href="#val-hoist" class="anchor"></a><code><span class="keyword">val </span>hoist : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_colour"><a href="#val-set_colour" class="anchor"></a><code><span class="keyword">val </span>set_colour : colour:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unhoist"><a href="#val-unhoist" class="anchor"></a><code><span class="keyword">val </span>unhoist : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Role_t/index.html b/docs/disml/Disml/Role_t/index.html deleted file mode 100644 index 96ad007..0000000 --- a/docs/disml/Disml/Role_t/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Role_t (disml.Disml.Role_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Role_t</nav><h1>Module <code>Disml.Role_t</code></h1></header><dl><dt class="spec type" id="type-role"><a href="#type-role" class="anchor"></a><code><span class="keyword">type </span>role</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role.id" class="anchored"><td class="def field"><a href="#type-role.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-role.name" class="anchored"><td class="def field"><a href="#type-role.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-role.colour" class="anchored"><td class="def field"><a href="#type-role.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-role.hoist" class="anchored"><td class="def field"><a href="#type-role.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-role.position" class="anchored"><td class="def field"><a href="#type-role.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-role.permissions" class="anchored"><td class="def field"><a href="#type-role.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-role.managed" class="anchored"><td class="def field"><a href="#type-role.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-role.mentionable" class="anchored"><td class="def field"><a href="#type-role.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_of_sexp"><a href="#val-role_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role">role</a></code></dt><dt class="spec value" id="val-sexp_of_role"><a href="#val-sexp_of_role" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role : <a href="index.html#type-role">role</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_to_yojson"><a href="#val-role_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_to_yojson : <a href="index.html#type-role">role</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_of_yojson"><a href="#val-role_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_of_yojson_exn"><a href="#val-role_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a></code></dt></dl><dl><dt class="spec type" id="type-role_update"><a href="#type-role_update" class="anchor"></a><code><span class="keyword">type </span>role_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role_update.role" class="anchored"><td class="def field"><a href="#type-role_update.role" class="anchor"></a><code>role : <a href="index.html#type-role">role</a>;</code></td></tr><tr id="type-role_update.guild_id" class="anchored"><td class="def field"><a href="#type-role_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_update_of_sexp"><a href="#val-role_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role_update">role_update</a></code></dt><dt class="spec value" id="val-sexp_of_role_update"><a href="#val-sexp_of_role_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role_update : <a href="index.html#type-role_update">role_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_update_to_yojson"><a href="#val-role_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_update_to_yojson : <a href="index.html#type-role_update">role_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_update_of_yojson"><a href="#val-role_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role_update">role_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_update_of_yojson_exn"><a href="#val-role_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role_update">role_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-t.hoist" class="anchored"><td class="def field"><a href="#type-t.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-t.position" class="anchored"><td class="def field"><a href="#type-t.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-t.permissions" class="anchored"><td class="def field"><a href="#type-t.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-t.mentionable" class="anchored"><td class="def field"><a href="#type-t.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-role">role</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Sharder/Shard/index.html b/docs/disml/Disml/Sharder/Shard/index.html index 5c68419..5cd3552 100644 --- a/docs/disml/Disml/Sharder/Shard/index.html +++ b/docs/disml/Disml/Sharder/Shard/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Shard (disml.Disml.Sharder.Shard)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml</a> » <a href="../index.html">Sharder</a> » Shard</nav><h1>Module <code>Sharder.Shard</code></h1><p>Module representing a single shard.</p></header><dl><dt class="spec type" id="type-shard"><a href="#type-shard" class="anchor"></a><code><span class="keyword">type </span>shard</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-shard.hb_interval" class="anchored"><td class="def field"><a href="#type-shard.hb_interval" class="anchor"></a><code>hb_interval : Core.Time.Span.t Async.Ivar.t;</code></td><td class="doc"><p>Time span between heartbeats, wrapped in an Ivar.</p></td></tr><tr id="type-shard.seq" class="anchored"><td class="def field"><a href="#type-shard.seq" class="anchor"></a><code>seq : int;</code></td><td class="doc"><p>Current sequence number</p></td></tr><tr id="type-shard.session" class="anchored"><td class="def field"><a href="#type-shard.session" class="anchor"></a><code>session : string option;</code></td><td class="doc"><p>Session id, if one exists.</p></td></tr><tr id="type-shard.pipe" class="anchored"><td class="def field"><a href="#type-shard.pipe" class="anchor"></a><code>pipe : Websocket_async.Frame.t Async.Pipe.Reader.t<span class="keyword"> * </span>Websocket_async.Frame.t Async.Pipe.Writer.t;</code></td><td class="doc"><p>Raw frame IO pipe used for websocket communications.</p></td></tr><tr id="type-shard.ready" class="anchored"><td class="def field"><a href="#type-shard.ready" class="anchor"></a><code>ready : unit Async.Ivar.t;</code></td><td class="doc"><p>A simple Ivar indicating if the shard has received READY.</p></td></tr><tr id="type-shard.url" class="anchored"><td class="def field"><a href="#type-shard.url" class="anchor"></a><code>url : string;</code></td><td class="doc"><p>The websocket URL in use.</p></td></tr><tr id="type-shard.id" class="anchored"><td class="def field"><a href="#type-shard.id" class="anchor"></a><code>id : int<span class="keyword"> * </span>int;</code></td><td class="doc"><p>A tuple as expected by Discord. First element is the current shard index, second element is the total shard count.</p></td></tr></table><code>}</code></dt><dd><p>Representation of the state of a shard.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>'a t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.state" class="anchored"><td class="def field"><a href="#type-t.state" class="anchor"></a><code><span class="keyword">mutable </span>state : <span class="type-var">'a</span>;</code></td></tr></table><code>}</code></dt><dd><p>Wrapper around an internal state, used to wrap <a href="index.html#type-shard"><code>shard</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-heartbeat"><a href="#val-heartbeat" class="anchor"></a><code><span class="keyword">val </span>heartbeat : <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Send a heartbeat to Discord. This is handled automatically.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Set the status of the shard.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Request guild members for the shard's guild. Causes dispatch of multiple <a href="../../Dispatch/index.html#val-members_chunk"><span>member chunk</span></a> events.</p></dd></dl><dl><dt class="spec value" id="val-create"><a href="#val-create" class="anchor"></a><code><span class="keyword">val </span>create : url:string <span>-></span> shards:(int<span class="keyword"> * </span>int) <span>-></span> unit <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Create a new shard</p></dd></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Shard (disml.Disml.Sharder.Shard)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml</a> » <a href="../index.html">Sharder</a> » Shard</nav><h1>Module <code>Sharder.Shard</code></h1><p>Module representing a single shard.</p></header><dl><dt class="spec type" id="type-shard"><a href="#type-shard" class="anchor"></a><code><span class="keyword">type </span>shard</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-shard.hb_interval" class="anchored"><td class="def field"><a href="#type-shard.hb_interval" class="anchor"></a><code>hb_interval : Core.Time.Span.t Async.Ivar.t;</code></td><td class="doc"><p>Time span between heartbeats, wrapped in an Ivar.</p></td></tr><tr id="type-shard.seq" class="anchored"><td class="def field"><a href="#type-shard.seq" class="anchor"></a><code>seq : int;</code></td><td class="doc"><p>Current sequence number</p></td></tr><tr id="type-shard.session" class="anchored"><td class="def field"><a href="#type-shard.session" class="anchor"></a><code>session : string option;</code></td><td class="doc"><p>Session id, if one exists.</p></td></tr><tr id="type-shard.pipe" class="anchored"><td class="def field"><a href="#type-shard.pipe" class="anchor"></a><code>pipe : Websocket_async.Frame.t Async.Pipe.Reader.t<span class="keyword"> * </span>Websocket_async.Frame.t Async.Pipe.Writer.t;</code></td><td class="doc"><p>Raw frame IO pipe used for websocket communications.</p></td></tr><tr id="type-shard.ready" class="anchored"><td class="def field"><a href="#type-shard.ready" class="anchor"></a><code>ready : unit Async.Ivar.t;</code></td><td class="doc"><p>A simple Ivar indicating if the shard has received READY.</p></td></tr><tr id="type-shard.url" class="anchored"><td class="def field"><a href="#type-shard.url" class="anchor"></a><code>url : string;</code></td><td class="doc"><p>The websocket URL in use.</p></td></tr><tr id="type-shard.id" class="anchored"><td class="def field"><a href="#type-shard.id" class="anchor"></a><code>id : int<span class="keyword"> * </span>int;</code></td><td class="doc"><p>A tuple as expected by Discord. First element is the current shard index, second element is the total shard count.</p></td></tr><tr id="type-shard._internal" class="anchored"><td class="def field"><a href="#type-shard._internal" class="anchor"></a><code>_internal : Async.Reader.t<span class="keyword"> * </span>Async.Writer.t;</code></td></tr></table><code>}</code></dt><dd><p>Representation of the state of a shard.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>'a t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.state" class="anchored"><td class="def field"><a href="#type-t.state" class="anchor"></a><code><span class="keyword">mutable </span>state : <span class="type-var">'a</span>;</code></td></tr></table><code>}</code></dt><dd><p>Wrapper around an internal state, used to wrap <a href="index.html#type-shard"><code>shard</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-heartbeat"><a href="#val-heartbeat" class="anchor"></a><code><span class="keyword">val </span>heartbeat : <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Send a heartbeat to Discord. This is handled automatically.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Set the status of the shard.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Request guild members for the shard's guild. Causes dispatch of multiple <span class="xref-unresolved" title="unresolved reference to "Dispatch.members_chunk""><span>member chunk</span></span> events.</p></dd></dl><dl><dt class="spec value" id="val-create"><a href="#val-create" class="anchor"></a><code><span class="keyword">val </span>create : url:string <span>-></span> shards:(int<span class="keyword"> * </span>int) <span>-></span> unit <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Create a new shard</p></dd></dl><dl><dt class="spec value" id="val-shutdown_clean"><a href="#val-shutdown_clean" class="anchor"></a><code><span class="keyword">val </span>shutdown_clean : <a href="index.html#type-shard">shard</a> <span>-></span> unit Async.Deferred.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Sharder/index.html b/docs/disml/Disml/Sharder/index.html index c485dbd..c5d95cc 100644 --- a/docs/disml/Disml/Sharder/index.html +++ b/docs/disml/Disml/Sharder/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Sharder (disml.Disml.Sharder)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Sharder</nav><h1>Module <code>Disml.Sharder</code></h1></header><aside><p>Internal sharding manager. Most of this is accessed through <a href="../Client/index.html"><code>Client</code></a>.</p></aside><dl><dt class="spec exception" id="exception-Invalid_Payload"><a href="#exception-Invalid_Payload" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_Payload</span></code></dt><dt class="spec exception" id="exception-Failure_to_Establish_Heartbeat"><a href="#exception-Failure_to_Establish_Heartbeat" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Failure_to_Establish_Heartbeat</span></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> unit <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Sharder. This is called by <a href="../Client/index.html#val-start"><code>Client.start</code></a>.</p></dd></dl><dl><dt class="spec module" id="module-Shard"><a href="#module-Shard" class="anchor"></a><code><span class="keyword">module </span><a href="Shard/index.html">Shard</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Module representing a single shard.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-set_status"><code>Shard.set_status</code></a> for each shard registered with the sharder.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="Shard/index.html#type-shard">Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Like <a href="index.html#val-set_status"><code>set_status</code></a> but takes a function with a <a href="Shard/index.html#type-shard"><span>shard</span></a> as its parameter and <span class="xref-unresolved" title="unresolved reference to "Yojson.Safe.json""><span>json</span></span> for its return.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../Snowflake/index.html#type-t">Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-request_guild_members"><code>Shard.request_guild_members</code></a> for each shard registered with the sharder.</p></dd></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Sharder (disml.Disml.Sharder)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Sharder</nav><h1>Module <code>Disml.Sharder</code></h1><p>Internal sharding manager. Most of this is accessed through <a href="../Client/index.html"><code>Client</code></a>.</p></header><dl><dt class="spec exception" id="exception-Invalid_Payload"><a href="#exception-Invalid_Payload" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_Payload</span></code></dt><dt class="spec exception" id="exception-Failure_to_Establish_Heartbeat"><a href="#exception-Failure_to_Establish_Heartbeat" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Failure_to_Establish_Heartbeat</span></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> unit <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Sharder. This is called by <a href="../Client/index.html#val-start"><code>Client.start</code></a>.</p></dd></dl><dl><dt class="spec module" id="module-Shard"><a href="#module-Shard" class="anchor"></a><code><span class="keyword">module </span><a href="Shard/index.html">Shard</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Module representing a single shard.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-set_status"><code>Shard.set_status</code></a> for each shard registered with the sharder.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="Shard/index.html#type-shard">Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Like <a href="index.html#val-set_status"><code>set_status</code></a> but takes a function with a <a href="Shard/index.html#type-shard"><span>shard</span></a> as its parameter and <span class="xref-unresolved" title="unresolved reference to "Yojson.Safe.json""><span>json</span></span> for its return.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-request_guild_members"><code>Shard.request_guild_members</code></a> for each shard registered with the sharder.</p></dd></dl><dl><dt class="spec value" id="val-shutdown_all"><a href="#val-shutdown_all" class="anchor"></a><code><span class="keyword">val </span>shutdown_all : <a href="index.html#type-t">t</a> <span>-></span> unit list Async.Deferred.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/Snowflake/index.html b/docs/disml/Disml/Snowflake/index.html deleted file mode 100644 index 1d65624..0000000 --- a/docs/disml/Disml/Snowflake/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Snowflake (disml.Disml.Snowflake)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » Snowflake</nav><h1>Module <code>Disml.Snowflake</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span>Core.Int.t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-timestamp"><a href="#val-timestamp" class="anchor"></a><code><span class="keyword">val </span>timestamp : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-timestamp_iso"><a href="#val-timestamp_iso" class="anchor"></a><code><span class="keyword">val </span>timestamp_iso : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/User/index.html b/docs/disml/Disml/User/index.html deleted file mode 100644 index 751caa6..0000000 --- a/docs/disml/Disml/User/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>User (disml.Disml.User)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » User</nav><h1>Module <code>Disml.User</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-User_t">User_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_user"><a href="#type-partial_user" class="anchor"></a><code><span class="keyword">type </span>partial_user</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_user.id" class="anchored"><td class="def field"><a href="#type-partial_user.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_user_of_sexp"><a href="#val-partial_user_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt><dt class="spec value" id="val-sexp_of_partial_user"><a href="#val-sexp_of_partial_user" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_user : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_user_to_yojson"><a href="#val-partial_user_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_to_yojson : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_user_of_yojson"><a href="#val-partial_user_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_user_of_yojson_exn"><a href="#val-partial_user_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.username" class="anchored"><td class="def field"><a href="#type-t.username" class="anchor"></a><code>username : string;</code></td></tr><tr id="type-t.discriminator" class="anchored"><td class="def field"><a href="#type-t.discriminator" class="anchor"></a><code>discriminator : string;</code></td></tr><tr id="type-t.avatar" class="anchored"><td class="def field"><a href="#type-t.avatar" class="anchor"></a><code>avatar : string option;</code></td></tr><tr id="type-t.bot" class="anchored"><td class="def field"><a href="#type-t.bot" class="anchor"></a><code>bot : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-tag"><a href="#val-tag" class="anchor"></a><code><span class="keyword">val </span>tag : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-mention"><a href="#val-mention" class="anchor"></a><code><span class="keyword">val </span>mention : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-default_avatar"><a href="#val-default_avatar" class="anchor"></a><code><span class="keyword">val </span>default_avatar : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-face"><a href="#val-face" class="anchor"></a><code><span class="keyword">val </span>face : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/User_t/index.html b/docs/disml/Disml/User_t/index.html deleted file mode 100644 index e800d5b..0000000 --- a/docs/disml/Disml/User_t/index.html +++ /dev/null @@ -1,2 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>User_t (disml.Disml.User_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml</a> » User_t</nav><h1>Module <code>Disml.User_t</code></h1></header><dl><dt class="spec type" id="type-partial_user"><a href="#type-partial_user" class="anchor"></a><code><span class="keyword">type </span>partial_user</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_user.id" class="anchored"><td class="def field"><a href="#type-partial_user.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_user_of_sexp"><a href="#val-partial_user_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt><dt class="spec value" id="val-sexp_of_partial_user"><a href="#val-sexp_of_partial_user" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_user : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_user_to_yojson"><a href="#val-partial_user_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_to_yojson : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_user_of_yojson"><a href="#val-partial_user_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_user_of_yojson_exn"><a href="#val-partial_user_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Snowflake.t</a>;</code></td></tr><tr id="type-t.username" class="anchored"><td class="def field"><a href="#type-t.username" class="anchor"></a><code>username : string;</code></td></tr><tr id="type-t.discriminator" class="anchored"><td class="def field"><a href="#type-t.discriminator" class="anchor"></a><code>discriminator : string;</code></td></tr><tr id="type-t.avatar" class="anchored"><td class="def field"><a href="#type-t.avatar" class="anchor"></a><code>avatar : string option;</code></td></tr><tr id="type-t.bot" class="anchored"><td class="def field"><a href="#type-t.bot" class="anchor"></a><code>bot : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml/index.html b/docs/disml/Disml/index.html index 5266349..47d60dd 100644 --- a/docs/disml/Disml/index.html +++ b/docs/disml/Disml/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml (disml.Disml)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml</nav><h1>Module <code>Disml</code></h1></header><dl><dt class="spec module" id="module-Activity"><a href="#module-Activity" class="anchor"></a><code><span class="keyword">module </span><a href="Activity/index.html">Activity</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Attachment"><a href="#module-Attachment" class="anchor"></a><code><span class="keyword">module </span><a href="Attachment/index.html">Attachment</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Ban"><a href="#module-Ban" class="anchor"></a><code><span class="keyword">module </span><a href="Ban/index.html">Ban</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Ban_t"><a href="#module-Ban_t" class="anchor"></a><code><span class="keyword">module </span><a href="Ban_t/index.html">Ban_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Channel"><a href="#module-Channel" class="anchor"></a><code><span class="keyword">module </span><a href="Channel/index.html">Channel</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Channel_t"><a href="#module-Channel_t" class="anchor"></a><code><span class="keyword">module </span><a href="Channel_t/index.html">Channel_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Client"><a href="#module-Client" class="anchor"></a><code><span class="keyword">module </span><a href="Client/index.html">Client</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Client_options"><a href="#module-Client_options" class="anchor"></a><code><span class="keyword">module </span><a href="Client_options/index.html">Client_options</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Dispatch"><a href="#module-Dispatch" class="anchor"></a><code><span class="keyword">module </span><a href="Dispatch/index.html">Dispatch</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Embed"><a href="#module-Embed" class="anchor"></a><code><span class="keyword">module </span><a href="Embed/index.html">Embed</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Emoji"><a href="#module-Emoji" class="anchor"></a><code><span class="keyword">module </span><a href="Emoji/index.html">Emoji</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Endpoints"><a href="#module-Endpoints" class="anchor"></a><code><span class="keyword">module </span><a href="Endpoints/index.html">Endpoints</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Event"><a href="#module-Event" class="anchor"></a><code><span class="keyword">module </span><a href="Event/index.html">Event</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Guild"><a href="#module-Guild" class="anchor"></a><code><span class="keyword">module </span><a href="Guild/index.html">Guild</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Guild_t"><a href="#module-Guild_t" class="anchor"></a><code><span class="keyword">module </span><a href="Guild_t/index.html">Guild_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Http"><a href="#module-Http" class="anchor"></a><code><span class="keyword">module </span><a href="Http/index.html">Http</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Member"><a href="#module-Member" class="anchor"></a><code><span class="keyword">module </span><a href="Member/index.html">Member</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Member_t"><a href="#module-Member_t" class="anchor"></a><code><span class="keyword">module </span><a href="Member_t/index.html">Member_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Message"><a href="#module-Message" class="anchor"></a><code><span class="keyword">module </span><a href="Message/index.html">Message</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Message_t"><a href="#module-Message_t" class="anchor"></a><code><span class="keyword">module </span><a href="Message_t/index.html">Message_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Opcode"><a href="#module-Opcode" class="anchor"></a><code><span class="keyword">module </span><a href="Opcode/index.html">Opcode</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Presence"><a href="#module-Presence" class="anchor"></a><code><span class="keyword">module </span><a href="Presence/index.html">Presence</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Reaction"><a href="#module-Reaction" class="anchor"></a><code><span class="keyword">module </span><a href="Reaction/index.html">Reaction</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Reaction_t"><a href="#module-Reaction_t" class="anchor"></a><code><span class="keyword">module </span><a href="Reaction_t/index.html">Reaction_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Rl"><a href="#module-Rl" class="anchor"></a><code><span class="keyword">module </span><a href="Rl/index.html">Rl</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Role"><a href="#module-Role" class="anchor"></a><code><span class="keyword">module </span><a href="Role/index.html">Role</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Role_t"><a href="#module-Role_t" class="anchor"></a><code><span class="keyword">module </span><a href="Role_t/index.html">Role_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Sharder"><a href="#module-Sharder" class="anchor"></a><code><span class="keyword">module </span><a href="Sharder/index.html">Sharder</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Snowflake"><a href="#module-Snowflake" class="anchor"></a><code><span class="keyword">module </span><a href="Snowflake/index.html">Snowflake</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-User"><a href="#module-User" class="anchor"></a><code><span class="keyword">module </span><a href="User/index.html">User</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-User_t"><a href="#module-User_t" class="anchor"></a><code><span class="keyword">module </span><a href="User_t/index.html">User_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml (disml.Disml)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml</nav><h1>Module <code>Disml</code></h1></header><div class="spec module" id="module-Client"><a href="#module-Client" class="anchor"></a><code><span class="keyword">module </span><a href="Client/index.html">Client</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Http"><a href="#module-Http" class="anchor"></a><code><span class="keyword">module </span><a href="Http/index.html">Http</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec module" id="module-Sharder"><a href="#module-Sharder" class="anchor"></a><code><span class="keyword">module </span><a href="Sharder/index.html">Sharder</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Internal sharding manager. Most of this is accessed through <a href="Client/index.html"><code>Client</code></a>.</p></dd></dl><div class="spec module" id="module-Models"><a href="#module-Models" class="anchor"></a><code><span class="keyword">module </span><a href="Models/index.html">Models</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/.dune-keep b/docs/disml/Disml__/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__/.dune-keep diff --git a/docs/disml/Disml__/Activity/index.html b/docs/disml/Disml__/Activity/index.html new file mode 100644 index 0000000..00136f7 --- /dev/null +++ b/docs/disml/Disml__/Activity/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Activity (disml.Disml__.Activity)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Activity</nav><h1>Module <code>Disml__.Activity</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The name of the activity.</p></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td><td class="doc"><p>0 = Playing, 1 = Streaming, 2 = Listening, 3 = Watching</p></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string option;</code></td><td class="doc"><p>Stream URL. Only validated for kind = 1.</p></td></tr></table><code>}</code></dt><dd><p>An activity object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Attachment/index.html b/docs/disml/Disml__/Attachment/index.html new file mode 100644 index 0000000..d36ce4f --- /dev/null +++ b/docs/disml/Disml__/Attachment/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Attachment (disml.Disml__.Attachment)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Attachment</nav><h1>Module <code>Disml__.Attachment</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a>;</code></td></tr><tr id="type-t.filename" class="anchored"><td class="def field"><a href="#type-t.filename" class="anchor"></a><code>filename : string;</code></td></tr><tr id="type-t.size" class="anchored"><td class="def field"><a href="#type-t.size" class="anchor"></a><code>size : int;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string;</code></td></tr><tr id="type-t.proxy_url" class="anchored"><td class="def field"><a href="#type-t.proxy_url" class="anchor"></a><code>proxy_url : string;</code></td></tr><tr id="type-t.height" class="anchored"><td class="def field"><a href="#type-t.height" class="anchor"></a><code>height : int;</code></td></tr><tr id="type-t.width" class="anchored"><td class="def field"><a href="#type-t.width" class="anchor"></a><code>width : int;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Ban/index.html b/docs/disml/Disml__/Ban/index.html new file mode 100644 index 0000000..30af61b --- /dev/null +++ b/docs/disml/Disml__/Ban/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Ban (disml.Disml__.Ban)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Ban</nav><h1>Module <code>Disml__.Ban</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Ban_t">Disml__.Ban_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.reason" class="anchored"><td class="def field"><a href="#type-t.reason" class="anchor"></a><code>reason : string option;</code></td><td class="doc"><p>The reason for the ban.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The banned user.</p></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Ban_t/index.html b/docs/disml/Disml__/Ban_t/index.html new file mode 100644 index 0000000..f9cf9da --- /dev/null +++ b/docs/disml/Disml__/Ban_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Ban_t (disml.Disml__.Ban_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Ban_t</nav><h1>Module <code>Disml__.Ban_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.reason" class="anchored"><td class="def field"><a href="#type-t.reason" class="anchor"></a><code>reason : string option;</code></td><td class="doc"><p>The reason for the ban.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The banned user.</p></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Channel/index.html b/docs/disml/Disml__/Channel/index.html new file mode 100644 index 0000000..ea0fc7e --- /dev/null +++ b/docs/disml/Disml__/Channel/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Channel (disml.Disml__.Channel)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Channel</nav><h1>Module <code>Disml__.Channel</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Channel_t">Disml__.Channel_t</a></code></span></summary><aside></aside><dl><dt class="spec exception" id="exception-Invalid_channel"><a href="#exception-Invalid_channel" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_channel</span><span class="keyword"> of </span>Yojson.Safe.json</code></dt></dl><dl><dt class="spec type" id="type-group"><a href="#type-group" class="anchor"></a><code><span class="keyword">type </span>group</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-group.id" class="anchored"><td class="def field"><a href="#type-group.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-group.last_message_id" class="anchored"><td class="def field"><a href="#type-group.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-group.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-group.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-group.icon" class="anchored"><td class="def field"><a href="#type-group.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-group.name" class="anchored"><td class="def field"><a href="#type-group.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-group.owner_id" class="anchored"><td class="def field"><a href="#type-group.owner_id" class="anchor"></a><code>owner_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-group.recipients" class="anchored"><td class="def field"><a href="#type-group.recipients" class="anchor"></a><code>recipients : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> list;</code></td></tr></table><code>}</code></dt><dd><p>Represents a Group channel object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-group_of_sexp"><a href="#val-group_of_sexp" class="anchor"></a><code><span class="keyword">val </span>group_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-sexp_of_group"><a href="#val-sexp_of_group" class="anchor"></a><code><span class="keyword">val </span>sexp_of_group : <a href="index.html#type-group">group</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-group_to_yojson"><a href="#val-group_to_yojson" class="anchor"></a><code><span class="keyword">val </span>group_to_yojson : <a href="index.html#type-group">group</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-group_of_yojson"><a href="#val-group_of_yojson" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-group_of_yojson_exn"><a href="#val-group_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a></code></dt></dl><dl><dt class="spec type" id="type-dm"><a href="#type-dm" class="anchor"></a><code><span class="keyword">type </span>dm</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-dm.id" class="anchored"><td class="def field"><a href="#type-dm.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-dm.last_message_id" class="anchored"><td class="def field"><a href="#type-dm.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-dm.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-dm.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a private channel with a single user.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-dm_of_sexp"><a href="#val-dm_of_sexp" class="anchor"></a><code><span class="keyword">val </span>dm_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-sexp_of_dm"><a href="#val-sexp_of_dm" class="anchor"></a><code><span class="keyword">val </span>sexp_of_dm : <a href="index.html#type-dm">dm</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-dm_to_yojson"><a href="#val-dm_to_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_to_yojson : <a href="index.html#type-dm">dm</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-dm_of_yojson"><a href="#val-dm_of_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-dm_of_yojson_exn"><a href="#val-dm_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a></code></dt></dl><dl><dt class="spec type" id="type-guild_text"><a href="#type-guild_text" class="anchor"></a><code><span class="keyword">type </span>guild_text</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_text.id" class="anchored"><td class="def field"><a href="#type-guild_text.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-guild_text.last_message_id" class="anchored"><td class="def field"><a href="#type-guild_text.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-guild_text.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-guild_text.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-guild_text.category_id" class="anchored"><td class="def field"><a href="#type-guild_text.category_id" class="anchor"></a><code>category_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-guild_text.guild_id" class="anchored"><td class="def field"><a href="#type-guild_text.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-guild_text.name" class="anchored"><td class="def field"><a href="#type-guild_text.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_text.position" class="anchored"><td class="def field"><a href="#type-guild_text.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_text.topic" class="anchored"><td class="def field"><a href="#type-guild_text.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-guild_text.nsfw" class="anchored"><td class="def field"><a href="#type-guild_text.nsfw" class="anchor"></a><code>nsfw : bool;</code></td></tr><tr id="type-guild_text.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-guild_text.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a text channel in a guild.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_text_of_sexp"><a href="#val-guild_text_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-sexp_of_guild_text"><a href="#val-sexp_of_guild_text" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_text : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_text_to_yojson"><a href="#val-guild_text_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_to_yojson : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_text_of_yojson"><a href="#val-guild_text_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_text_of_yojson_exn"><a href="#val-guild_text_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt></dl><dl><dt class="spec type" id="type-guild_voice"><a href="#type-guild_voice" class="anchor"></a><code><span class="keyword">type </span>guild_voice</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_voice.id" class="anchored"><td class="def field"><a href="#type-guild_voice.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-guild_voice.category_id" class="anchored"><td class="def field"><a href="#type-guild_voice.category_id" class="anchor"></a><code>category_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-guild_voice.guild_id" class="anchored"><td class="def field"><a href="#type-guild_voice.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-guild_voice.name" class="anchored"><td class="def field"><a href="#type-guild_voice.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_voice.position" class="anchored"><td class="def field"><a href="#type-guild_voice.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_voice.user_limit" class="anchored"><td class="def field"><a href="#type-guild_voice.user_limit" class="anchor"></a><code>user_limit : int;</code></td></tr><tr id="type-guild_voice.bitrate" class="anchored"><td class="def field"><a href="#type-guild_voice.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a voice channel in a guild.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_voice_of_sexp"><a href="#val-guild_voice_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-sexp_of_guild_voice"><a href="#val-sexp_of_guild_voice" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_voice : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_voice_to_yojson"><a href="#val-guild_voice_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_to_yojson : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_voice_of_yojson"><a href="#val-guild_voice_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_voice_of_yojson_exn"><a href="#val-guild_voice_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt></dl><dl><dt class="spec type" id="type-category"><a href="#type-category" class="anchor"></a><code><span class="keyword">type </span>category</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-category.id" class="anchored"><td class="def field"><a href="#type-category.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-category.guild_id" class="anchored"><td class="def field"><a href="#type-category.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-category.position" class="anchored"><td class="def field"><a href="#type-category.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-category.name" class="anchored"><td class="def field"><a href="#type-category.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt><dd><p>Represents a guild category.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-category_of_sexp"><a href="#val-category_of_sexp" class="anchor"></a><code><span class="keyword">val </span>category_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-sexp_of_category"><a href="#val-sexp_of_category" class="anchor"></a><code><span class="keyword">val </span>sexp_of_category : <a href="index.html#type-category">category</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-category_to_yojson"><a href="#val-category_to_yojson" class="anchor"></a><code><span class="keyword">val </span>category_to_yojson : <a href="index.html#type-category">category</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-category_of_yojson"><a href="#val-category_of_yojson" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-category_of_yojson_exn"><a href="#val-category_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.Group" class="anchored"><td class="def constructor"><a href="#type-t.Group" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Group</span><span class="keyword"> of </span><a href="index.html#type-group">group</a></code></td></tr><tr id="type-t.Private" class="anchored"><td class="def constructor"><a href="#type-t.Private" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Private</span><span class="keyword"> of </span><a href="index.html#type-dm">dm</a></code></td></tr><tr id="type-t.GuildText" class="anchored"><td class="def constructor"><a href="#type-t.GuildText" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildText</span><span class="keyword"> of </span><a href="index.html#type-guild_text">guild_text</a></code></td></tr><tr id="type-t.GuildVoice" class="anchored"><td class="def constructor"><a href="#type-t.GuildVoice" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildVoice</span><span class="keyword"> of </span><a href="index.html#type-guild_voice">guild_voice</a></code></td></tr><tr id="type-t.Category" class="anchored"><td class="def constructor"><a href="#type-t.Category" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Category</span><span class="keyword"> of </span><a href="index.html#type-category">category</a></code></td></tr></table></dt><dd><p>Wrapper variant for all channel types.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl><dl><dt class="spec type" id="type-channel_wrapper"><a href="#type-channel_wrapper" class="anchor"></a><code><span class="keyword">type </span>channel_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-channel_wrapper.id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-channel_wrapper.kind" class="anchored"><td class="def field"><a href="#type-channel_wrapper.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-channel_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.position" class="anchored"><td class="def field"><a href="#type-channel_wrapper.position" class="anchor"></a><code>position : int option;</code></td></tr><tr id="type-channel_wrapper.name" class="anchored"><td class="def field"><a href="#type-channel_wrapper.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-channel_wrapper.topic" class="anchored"><td class="def field"><a href="#type-channel_wrapper.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-channel_wrapper.nsfw" class="anchored"><td class="def field"><a href="#type-channel_wrapper.nsfw" class="anchor"></a><code>nsfw : bool option;</code></td></tr><tr id="type-channel_wrapper.last_message_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-channel_wrapper.bitrate" class="anchored"><td class="def field"><a href="#type-channel_wrapper.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr><tr id="type-channel_wrapper.user_limit" class="anchored"><td class="def field"><a href="#type-channel_wrapper.user_limit" class="anchor"></a><code>user_limit : int option;</code></td></tr><tr id="type-channel_wrapper.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-channel_wrapper.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr><tr id="type-channel_wrapper.recipients" class="anchored"><td class="def field"><a href="#type-channel_wrapper.recipients" class="anchor"></a><code>recipients : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> list option;</code></td></tr><tr id="type-channel_wrapper.icon" class="anchored"><td class="def field"><a href="#type-channel_wrapper.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-channel_wrapper.owner_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.owner_id" class="anchor"></a><code>owner_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.application_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.category_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.category_id" class="anchor"></a><code>category_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt><dd><p>Intermediate used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-channel_wrapper_of_sexp"><a href="#val-channel_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_channel_wrapper"><a href="#val-sexp_of_channel_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_channel_wrapper : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-channel_wrapper_to_yojson"><a href="#val-channel_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_to_yojson : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson"><a href="#val-channel_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson_exn"><a href="#val-channel_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_text"><a href="#val-unwrap_as_guild_text" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_text : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_voice"><a href="#val-unwrap_as_guild_voice" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_voice : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-unwrap_as_dm"><a href="#val-unwrap_as_dm" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_dm : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-unwrap_as_group"><a href="#val-unwrap_as_group" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_group : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-unwrap_as_category"><a href="#val-unwrap_as_category" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_category : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../S/index.html#module-type-ChannelImpl">Disml__.S.ChannelImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../S/module-type-ChannelImpl/index.html#type-t">t</a> := <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <a href="index.html#exception-Invalid_message"><code>Invalid_message</code></a> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!hello" msg.content then
+ let embed = Embed.(default |> title "Hello World!") in
+ Channel_id.send_message ~embed msg.channel_id >>> ignore
+
+ Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p><code>say str ch</code> is equivalent to <code>send_message ~content:str ch</code>.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Channel_id/index.html b/docs/disml/Disml__/Channel_id/index.html new file mode 100644 index 0000000..7da7644 --- /dev/null +++ b/docs/disml/Disml__/Channel_id/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Channel_id (disml.Disml__.Channel_id)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Channel_id</nav><h1>Module <code>Disml__.Channel_id</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Channel_id_t">Disml__.Channel_id_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Channel_id" class="anchored"><td class="def constructor"><a href="#type-t.Channel_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Channel_id<span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../S/index.html#module-type-ChannelImpl">Disml__.S.ChannelImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../S/module-type-ChannelImpl/index.html#type-t">t</a> := <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <a href="index.html#exception-Invalid_message"><code>Invalid_message</code></a> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!hello" msg.content then
+ let embed = Embed.(default |> title "Hello World!") in
+ Channel_id.send_message ~embed msg.channel_id >>> ignore
+
+ Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p><code>say str ch</code> is equivalent to <code>send_message ~content:str ch</code>.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Channel_id_t/index.html b/docs/disml/Disml__/Channel_id_t/index.html new file mode 100644 index 0000000..883015f --- /dev/null +++ b/docs/disml/Disml__/Channel_id_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Channel_id_t (disml.Disml__.Channel_id_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Channel_id_t</nav><h1>Module <code>Disml__.Channel_id_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Channel_id" class="anchored"><td class="def constructor"><a href="#type-t.Channel_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Channel_id<span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Channel_t/index.html b/docs/disml/Disml__/Channel_t/index.html new file mode 100644 index 0000000..57a68d9 --- /dev/null +++ b/docs/disml/Disml__/Channel_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Channel_t (disml.Disml__.Channel_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Channel_t</nav><h1>Module <code>Disml__.Channel_t</code></h1></header><dl><dt class="spec exception" id="exception-Invalid_channel"><a href="#exception-Invalid_channel" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_channel</span><span class="keyword"> of </span>Yojson.Safe.json</code></dt></dl><dl><dt class="spec type" id="type-group"><a href="#type-group" class="anchor"></a><code><span class="keyword">type </span>group</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-group.id" class="anchored"><td class="def field"><a href="#type-group.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-group.last_message_id" class="anchored"><td class="def field"><a href="#type-group.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-group.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-group.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-group.icon" class="anchored"><td class="def field"><a href="#type-group.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-group.name" class="anchored"><td class="def field"><a href="#type-group.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-group.owner_id" class="anchored"><td class="def field"><a href="#type-group.owner_id" class="anchor"></a><code>owner_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-group.recipients" class="anchored"><td class="def field"><a href="#type-group.recipients" class="anchor"></a><code>recipients : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> list;</code></td></tr></table><code>}</code></dt><dd><p>Represents a Group channel object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-group_of_sexp"><a href="#val-group_of_sexp" class="anchor"></a><code><span class="keyword">val </span>group_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-sexp_of_group"><a href="#val-sexp_of_group" class="anchor"></a><code><span class="keyword">val </span>sexp_of_group : <a href="index.html#type-group">group</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-group_to_yojson"><a href="#val-group_to_yojson" class="anchor"></a><code><span class="keyword">val </span>group_to_yojson : <a href="index.html#type-group">group</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-group_of_yojson"><a href="#val-group_of_yojson" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-group_of_yojson_exn"><a href="#val-group_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a></code></dt></dl><dl><dt class="spec type" id="type-dm"><a href="#type-dm" class="anchor"></a><code><span class="keyword">type </span>dm</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-dm.id" class="anchored"><td class="def field"><a href="#type-dm.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-dm.last_message_id" class="anchored"><td class="def field"><a href="#type-dm.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-dm.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-dm.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a private channel with a single user.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-dm_of_sexp"><a href="#val-dm_of_sexp" class="anchor"></a><code><span class="keyword">val </span>dm_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-sexp_of_dm"><a href="#val-sexp_of_dm" class="anchor"></a><code><span class="keyword">val </span>sexp_of_dm : <a href="index.html#type-dm">dm</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-dm_to_yojson"><a href="#val-dm_to_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_to_yojson : <a href="index.html#type-dm">dm</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-dm_of_yojson"><a href="#val-dm_of_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-dm_of_yojson_exn"><a href="#val-dm_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a></code></dt></dl><dl><dt class="spec type" id="type-guild_text"><a href="#type-guild_text" class="anchor"></a><code><span class="keyword">type </span>guild_text</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_text.id" class="anchored"><td class="def field"><a href="#type-guild_text.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-guild_text.last_message_id" class="anchored"><td class="def field"><a href="#type-guild_text.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-guild_text.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-guild_text.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-guild_text.category_id" class="anchored"><td class="def field"><a href="#type-guild_text.category_id" class="anchor"></a><code>category_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-guild_text.guild_id" class="anchored"><td class="def field"><a href="#type-guild_text.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-guild_text.name" class="anchored"><td class="def field"><a href="#type-guild_text.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_text.position" class="anchored"><td class="def field"><a href="#type-guild_text.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_text.topic" class="anchored"><td class="def field"><a href="#type-guild_text.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-guild_text.nsfw" class="anchored"><td class="def field"><a href="#type-guild_text.nsfw" class="anchor"></a><code>nsfw : bool;</code></td></tr><tr id="type-guild_text.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-guild_text.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a text channel in a guild.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_text_of_sexp"><a href="#val-guild_text_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-sexp_of_guild_text"><a href="#val-sexp_of_guild_text" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_text : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_text_to_yojson"><a href="#val-guild_text_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_to_yojson : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_text_of_yojson"><a href="#val-guild_text_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_text_of_yojson_exn"><a href="#val-guild_text_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt></dl><dl><dt class="spec type" id="type-guild_voice"><a href="#type-guild_voice" class="anchor"></a><code><span class="keyword">type </span>guild_voice</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_voice.id" class="anchored"><td class="def field"><a href="#type-guild_voice.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-guild_voice.category_id" class="anchored"><td class="def field"><a href="#type-guild_voice.category_id" class="anchor"></a><code>category_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-guild_voice.guild_id" class="anchored"><td class="def field"><a href="#type-guild_voice.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-guild_voice.name" class="anchored"><td class="def field"><a href="#type-guild_voice.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_voice.position" class="anchored"><td class="def field"><a href="#type-guild_voice.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_voice.user_limit" class="anchored"><td class="def field"><a href="#type-guild_voice.user_limit" class="anchor"></a><code>user_limit : int;</code></td></tr><tr id="type-guild_voice.bitrate" class="anchored"><td class="def field"><a href="#type-guild_voice.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a voice channel in a guild.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_voice_of_sexp"><a href="#val-guild_voice_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-sexp_of_guild_voice"><a href="#val-sexp_of_guild_voice" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_voice : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_voice_to_yojson"><a href="#val-guild_voice_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_to_yojson : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_voice_of_yojson"><a href="#val-guild_voice_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_voice_of_yojson_exn"><a href="#val-guild_voice_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt></dl><dl><dt class="spec type" id="type-category"><a href="#type-category" class="anchor"></a><code><span class="keyword">type </span>category</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-category.id" class="anchored"><td class="def field"><a href="#type-category.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-category.guild_id" class="anchored"><td class="def field"><a href="#type-category.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-category.position" class="anchored"><td class="def field"><a href="#type-category.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-category.name" class="anchored"><td class="def field"><a href="#type-category.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt><dd><p>Represents a guild category.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-category_of_sexp"><a href="#val-category_of_sexp" class="anchor"></a><code><span class="keyword">val </span>category_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-sexp_of_category"><a href="#val-sexp_of_category" class="anchor"></a><code><span class="keyword">val </span>sexp_of_category : <a href="index.html#type-category">category</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-category_to_yojson"><a href="#val-category_to_yojson" class="anchor"></a><code><span class="keyword">val </span>category_to_yojson : <a href="index.html#type-category">category</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-category_of_yojson"><a href="#val-category_of_yojson" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-category_of_yojson_exn"><a href="#val-category_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.Group" class="anchored"><td class="def constructor"><a href="#type-t.Group" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Group</span><span class="keyword"> of </span><a href="index.html#type-group">group</a></code></td></tr><tr id="type-t.Private" class="anchored"><td class="def constructor"><a href="#type-t.Private" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Private</span><span class="keyword"> of </span><a href="index.html#type-dm">dm</a></code></td></tr><tr id="type-t.GuildText" class="anchored"><td class="def constructor"><a href="#type-t.GuildText" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildText</span><span class="keyword"> of </span><a href="index.html#type-guild_text">guild_text</a></code></td></tr><tr id="type-t.GuildVoice" class="anchored"><td class="def constructor"><a href="#type-t.GuildVoice" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildVoice</span><span class="keyword"> of </span><a href="index.html#type-guild_voice">guild_voice</a></code></td></tr><tr id="type-t.Category" class="anchored"><td class="def constructor"><a href="#type-t.Category" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Category</span><span class="keyword"> of </span><a href="index.html#type-category">category</a></code></td></tr></table></dt><dd><p>Wrapper variant for all channel types.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl><dl><dt class="spec type" id="type-channel_wrapper"><a href="#type-channel_wrapper" class="anchor"></a><code><span class="keyword">type </span>channel_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-channel_wrapper.id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.id" class="anchor"></a><code>id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-channel_wrapper.kind" class="anchored"><td class="def field"><a href="#type-channel_wrapper.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-channel_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.position" class="anchored"><td class="def field"><a href="#type-channel_wrapper.position" class="anchor"></a><code>position : int option;</code></td></tr><tr id="type-channel_wrapper.name" class="anchored"><td class="def field"><a href="#type-channel_wrapper.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-channel_wrapper.topic" class="anchored"><td class="def field"><a href="#type-channel_wrapper.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-channel_wrapper.nsfw" class="anchored"><td class="def field"><a href="#type-channel_wrapper.nsfw" class="anchor"></a><code>nsfw : bool option;</code></td></tr><tr id="type-channel_wrapper.last_message_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-channel_wrapper.bitrate" class="anchored"><td class="def field"><a href="#type-channel_wrapper.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr><tr id="type-channel_wrapper.user_limit" class="anchored"><td class="def field"><a href="#type-channel_wrapper.user_limit" class="anchor"></a><code>user_limit : int option;</code></td></tr><tr id="type-channel_wrapper.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-channel_wrapper.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr><tr id="type-channel_wrapper.recipients" class="anchored"><td class="def field"><a href="#type-channel_wrapper.recipients" class="anchor"></a><code>recipients : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> list option;</code></td></tr><tr id="type-channel_wrapper.icon" class="anchored"><td class="def field"><a href="#type-channel_wrapper.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-channel_wrapper.owner_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.owner_id" class="anchor"></a><code>owner_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.application_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.category_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.category_id" class="anchor"></a><code>category_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt><dd><p>Intermediate used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-channel_wrapper_of_sexp"><a href="#val-channel_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_channel_wrapper"><a href="#val-sexp_of_channel_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_channel_wrapper : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-channel_wrapper_to_yojson"><a href="#val-channel_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_to_yojson : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson"><a href="#val-channel_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson_exn"><a href="#val-channel_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_text"><a href="#val-unwrap_as_guild_text" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_text : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_voice"><a href="#val-unwrap_as_guild_voice" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_voice : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-unwrap_as_dm"><a href="#val-unwrap_as_dm" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_dm : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-unwrap_as_group"><a href="#val-unwrap_as_group" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_group : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-unwrap_as_category"><a href="#val-unwrap_as_category" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_category : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Client/index.html b/docs/disml/Disml__/Client/index.html new file mode 100644 index 0000000..709079d --- /dev/null +++ b/docs/disml/Disml__/Client/index.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Client (disml.Disml__.Client)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Client</nav><h1>Module <code>Disml__.Client</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Client_options">Disml__.Client_options</a></code></span></summary><aside></aside><dl><dt class="spec value" id="val-token"><a href="#val-token" class="anchor"></a><code><span class="keyword">val </span>token : string Stdlib.ref</code></dt><dd><p>Token that is set when using <a href="index.html#val-start"><code>Client.start</code></a></p></dd></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Dispatch">Disml__.Dispatch</a></code></span></summary><aside></aside><aside><p>Used to store dispatch callbacks. Each event can only have one callback registered at a time. These should be accessed through their re-export in <a href="index.html"><code>Client</code></a>.</p></aside><section><header><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><p><code>Client.ready := (fun _ -> print_endline "Shard is Ready!")</code></p><p><code>Client.guild_create := (fun guild -> print_endline guild.name)</code></p><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!ping" msg.content then
+ Message.reply msg "Pong!" >>> ignore
+
+ Client.message_create := check_command</code></pre></header><dl><dt class="spec value" id="val-ready"><a href="#val-ready" class="anchor"></a><code><span class="keyword">val </span>ready : (<a href="../../Disml__Event_models/Ready/index.html#type-t">Disml__.Event_models.Ready.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this.</p></dd></dl><dl><dt class="spec value" id="val-resumed"><a href="#val-resumed" class="anchor"></a><code><span class="keyword">val </span>resumed : (<a href="../../Disml__Event_models/Resumed/index.html#type-t">Disml__.Event_models.Resumed.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when successfully reconnecting to the gateway.</p></dd></dl><dl><dt class="spec value" id="val-channel_create"><a href="#val-channel_create" class="anchor"></a><code><span class="keyword">val </span>channel_create : (<a href="../../Disml__Event_models/ChannelCreate/index.html#type-t">Disml__.Event_models.ChannelCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel is created which is visible to the bot.</p></dd></dl><dl><dt class="spec value" id="val-channel_update"><a href="#val-channel_update" class="anchor"></a><code><span class="keyword">val </span>channel_update : (<a href="../../Disml__Event_models/ChannelUpdate/index.html#type-t">Disml__.Event_models.ChannelUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is changed.</p></dd></dl><dl><dt class="spec value" id="val-channel_delete"><a href="#val-channel_delete" class="anchor"></a><code><span class="keyword">val </span>channel_delete : (<a href="../../Disml__Event_models/ChannelDelete/index.html#type-t">Disml__.Event_models.ChannelDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is deleted.</p></dd></dl><dl><dt class="spec value" id="val-channel_pins_update"><a href="#val-channel_pins_update" class="anchor"></a><code><span class="keyword">val </span>channel_pins_update : (<a href="../../Disml__Event_models/ChannelPinsUpdate/index.html#type-t">Disml__.Event_models.ChannelPinsUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are pinned or unpinned from a a channel.</p></dd></dl><dl><dt class="spec value" id="val-guild_create"><a href="#val-guild_create" class="anchor"></a><code><span class="keyword">val </span>guild_create : (<a href="../../Disml__Event_models/GuildCreate/index.html#type-t">Disml__.Event_models.GuildCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot joins a guild, and during startup.</p></dd></dl><dl><dt class="spec value" id="val-guild_update"><a href="#val-guild_update" class="anchor"></a><code><span class="keyword">val </span>guild_update : (<a href="../../Disml__Event_models/GuildUpdate/index.html#type-t">Disml__.Event_models.GuildUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild the bot is in is edited.</p></dd></dl><dl><dt class="spec value" id="val-guild_delete"><a href="#val-guild_delete" class="anchor"></a><code><span class="keyword">val </span>guild_delete : (<a href="../../Disml__Event_models/GuildDelete/index.html#type-t">Disml__.Event_models.GuildDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot is removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_ban"><a href="#val-member_ban" class="anchor"></a><code><span class="keyword">val </span>member_ban : (<a href="../../Disml__Event_models/GuildBanAdd/index.html#type-t">Disml__.Event_models.GuildBanAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_unban"><a href="#val-member_unban" class="anchor"></a><code><span class="keyword">val </span>member_unban : (<a href="../../Disml__Event_models/GuildBanRemove/index.html#type-t">Disml__.Event_models.GuildBanRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is unbanned.</p></dd></dl><dl><dt class="spec value" id="val-guild_emojis_update"><a href="#val-guild_emojis_update" class="anchor"></a><code><span class="keyword">val </span>guild_emojis_update : (<a href="../../Disml__Event_models/GuildEmojisUpdate/index.html#type-t">Disml__.Event_models.GuildEmojisUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when emojis are added or removed from a guild.</p></dd></dl><aside><p>Dispatched when a guild's integrations are updated.</p></aside><dl><dt class="spec value" id="val-member_join"><a href="#val-member_join" class="anchor"></a><code><span class="keyword">val </span>member_join : (<a href="../../Disml__Event_models/GuildMemberAdd/index.html#type-t">Disml__.Event_models.GuildMemberAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member joins a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_leave"><a href="#val-member_leave" class="anchor"></a><code><span class="keyword">val </span>member_leave : (<a href="../../Disml__Event_models/GuildMemberRemove/index.html#type-t">Disml__.Event_models.GuildMemberRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member leaves a guild. Is Dispatched alongside <a href="index.html#val-member_ban"><code>Client.member_ban</code></a> when a user is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_update"><a href="#val-member_update" class="anchor"></a><code><span class="keyword">val </span>member_update : (<a href="../../Disml__Event_models/GuildMemberUpdate/index.html#type-t">Disml__.Event_models.GuildMemberUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member object is updated.</p></dd></dl><dl><dt class="spec value" id="val-members_chunk"><a href="#val-members_chunk" class="anchor"></a><code><span class="keyword">val </span>members_chunk : (<a href="../../Disml__Event_models/GuildMembersChunk/index.html#type-t">Disml__.Event_models.GuildMembersChunk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when requesting guild members through <a href="index.html#val-request_guild_members"><code>Client.request_guild_members</code></a></p></dd></dl><dl><dt class="spec value" id="val-role_create"><a href="#val-role_create" class="anchor"></a><code><span class="keyword">val </span>role_create : (<a href="../../Disml__Event_models/GuildRoleCreate/index.html#type-t">Disml__.Event_models.GuildRoleCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is created.</p></dd></dl><dl><dt class="spec value" id="val-role_update"><a href="#val-role_update" class="anchor"></a><code><span class="keyword">val </span>role_update : (<a href="../../Disml__Event_models/GuildRoleUpdate/index.html#type-t">Disml__.Event_models.GuildRoleUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is edited.</p></dd></dl><dl><dt class="spec value" id="val-role_delete"><a href="#val-role_delete" class="anchor"></a><code><span class="keyword">val </span>role_delete : (<a href="../../Disml__Event_models/GuildRoleDelete/index.html#type-t">Disml__.Event_models.GuildRoleDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_create"><a href="#val-message_create" class="anchor"></a><code><span class="keyword">val </span>message_create : (<a href="../../Disml__Event_models/MessageCreate/index.html#type-t">Disml__.Event_models.MessageCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is sent.</p></dd></dl><dl><dt class="spec value" id="val-message_update"><a href="#val-message_update" class="anchor"></a><code><span class="keyword">val </span>message_update : (<a href="../../Disml__Event_models/MessageUpdate/index.html#type-t">Disml__.Event_models.MessageUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is edited. This does not necessarily mean the content changed.</p></dd></dl><dl><dt class="spec value" id="val-message_delete"><a href="#val-message_delete" class="anchor"></a><code><span class="keyword">val </span>message_delete : (<a href="../../Disml__Event_models/MessageDelete/index.html#type-t">Disml__.Event_models.MessageDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_delete_bulk"><a href="#val-message_delete_bulk" class="anchor"></a><code><span class="keyword">val </span>message_delete_bulk : (<a href="../../Disml__Event_models/MessageDeleteBulk/index.html#type-t">Disml__.Event_models.MessageDeleteBulk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are bulk deleted.</p></dd></dl><dl><dt class="spec value" id="val-reaction_add"><a href="#val-reaction_add" class="anchor"></a><code><span class="keyword">val </span>reaction_add : (<a href="../../Disml__Event_models/ReactionAdd/index.html#type-t">Disml__.Event_models.ReactionAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a rection is added to a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove"><a href="#val-reaction_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_remove : (<a href="../../Disml__Event_models/ReactionRemove/index.html#type-t">Disml__.Event_models.ReactionRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a reaction is removed from a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove_all"><a href="#val-reaction_remove_all" class="anchor"></a><code><span class="keyword">val </span>reaction_remove_all : (<a href="../../Disml__Event_models/ReactionRemoveAll/index.html#type-t">Disml__.Event_models.ReactionRemoveAll.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when all reactions are cleared from a message.</p></dd></dl><dl><dt class="spec value" id="val-presence_update"><a href="#val-presence_update" class="anchor"></a><code><span class="keyword">val </span>presence_update : (<a href="../../Disml__Event_models/PresenceUpdate/index.html#type-t">Disml__.Event_models.PresenceUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a user updates their presence.</p></dd></dl><dl><dt class="spec value" id="val-typing_start"><a href="#val-typing_start" class="anchor"></a><code><span class="keyword">val </span>typing_start : (<a href="../../Disml__Event_models/TypingStart/index.html#type-t">Disml__.Event_models.TypingStart.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a typing indicator is displayed.</p></dd></dl><dl><dt class="spec value" id="val-user_update"><a href="#val-user_update" class="anchor"></a><code><span class="keyword">val </span>user_update : (<a href="../../Disml__Event_models/UserUpdate/index.html#type-t">Disml__.Event_models.UserUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the current user is updated. You most likely want <a href="index.html#val-member_update"><code>Client.member_update</code></a> or <a href="index.html#val-presence_update"><code>Client.presence_update</code></a> instead.</p></dd></dl><dl><dt class="spec value" id="val-webhook_update"><a href="#val-webhook_update" class="anchor"></a><code><span class="keyword">val </span>webhook_update : (<a href="../../Disml__Event_models/WebhookUpdate/index.html#type-t">Disml__.Event_models.WebhookUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a webhook is updated.</p></dd></dl><dl><dt class="spec value" id="val-unknown"><a href="#val-unknown" class="anchor"></a><code><span class="keyword">val </span>unknown : (<a href="../../Disml__Event_models/Unknown/index.html#type-t">Disml__.Event_models.Unknown.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched as a fallback for unknown events.</p></dd></dl></section></details></div></div></div><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.sharder" class="anchored"><td class="def field"><a href="#type-t.sharder" class="anchor"></a><code>sharder : <a href="../../Disml/Sharder/index.html#type-t">Disml.Sharder.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>Type of the Client, it isn't recommended to access the fields directly.</p></dd></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Client. This begins shard connections to Discord and event handlers should be registered prior to calling this.</p><h3 id="example"><a href="#example" class="anchor"></a>Example</h3><pre><code class="ml"> open Async
+ open Disml
+
+ let main () =
+ let token = "a valid bot token" in
+ Client.start ~count:5 token >>> print_endline "Client launched"
+
+ let _ =
+ Scheduler.go_main ~main ()</code></pre><dl><dt>parameter ?count</dt><dd><p>Optional amount of shards to launch. Defaults to autosharding</p></dd></dl><dl><dt>parameter string</dt><dd><p>The token used for authentication</p></dd></dl><dl><dt>returns</dt><dd><p>A deferred client object</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <a href="../Sharder/index.html#val-set_status"><code>Sharder.set_status</code></a> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="../../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <a href="../Sharder/index.html#val-set_status_with"><code>Sharder.set_status_with</code></a> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : guild:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <a href="../Sharder/index.html#val-request_guild_members"><code>Sharder.request_guild_members</code></a> where <code>client.sharder</code> is passed.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Client_options/index.html b/docs/disml/Disml__/Client_options/index.html new file mode 100644 index 0000000..f1b1045 --- /dev/null +++ b/docs/disml/Disml__/Client_options/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Client_options (disml.Disml__.Client_options)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Client_options</nav><h1>Module <code>Disml__.Client_options</code></h1></header><dl><dt class="spec value" id="val-token"><a href="#val-token" class="anchor"></a><code><span class="keyword">val </span>token : string Stdlib.ref</code></dt><dd><p>Token that is set when using <a href="../Client/index.html#val-start"><code>Client.start</code></a></p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Dispatch/index.html b/docs/disml/Disml__/Dispatch/index.html new file mode 100644 index 0000000..d4aa6fa --- /dev/null +++ b/docs/disml/Disml__/Dispatch/index.html @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Dispatch (disml.Disml__.Dispatch)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Dispatch</nav><h1>Module <code>Disml__.Dispatch</code></h1></header><aside><p>Used to store dispatch callbacks. Each event can only have one callback registered at a time. These should be accessed through their re-export in <a href="../Client/index.html"><code>Client</code></a>.</p></aside><section><header><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><p><code>Client.ready := (fun _ -> print_endline "Shard is Ready!")</code></p><p><code>Client.guild_create := (fun guild -> print_endline guild.name)</code></p><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!ping" msg.content then
+ Message.reply msg "Pong!" >>> ignore
+
+ Client.message_create := check_command</code></pre></header><dl><dt class="spec value" id="val-ready"><a href="#val-ready" class="anchor"></a><code><span class="keyword">val </span>ready : (<a href="../../Disml__Event_models/Ready/index.html#type-t">Disml__.Event_models.Ready.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this.</p></dd></dl><dl><dt class="spec value" id="val-resumed"><a href="#val-resumed" class="anchor"></a><code><span class="keyword">val </span>resumed : (<a href="../../Disml__Event_models/Resumed/index.html#type-t">Disml__.Event_models.Resumed.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when successfully reconnecting to the gateway.</p></dd></dl><dl><dt class="spec value" id="val-channel_create"><a href="#val-channel_create" class="anchor"></a><code><span class="keyword">val </span>channel_create : (<a href="../../Disml__Event_models/ChannelCreate/index.html#type-t">Disml__.Event_models.ChannelCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel is created which is visible to the bot.</p></dd></dl><dl><dt class="spec value" id="val-channel_update"><a href="#val-channel_update" class="anchor"></a><code><span class="keyword">val </span>channel_update : (<a href="../../Disml__Event_models/ChannelUpdate/index.html#type-t">Disml__.Event_models.ChannelUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is changed.</p></dd></dl><dl><dt class="spec value" id="val-channel_delete"><a href="#val-channel_delete" class="anchor"></a><code><span class="keyword">val </span>channel_delete : (<a href="../../Disml__Event_models/ChannelDelete/index.html#type-t">Disml__.Event_models.ChannelDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is deleted.</p></dd></dl><dl><dt class="spec value" id="val-channel_pins_update"><a href="#val-channel_pins_update" class="anchor"></a><code><span class="keyword">val </span>channel_pins_update : (<a href="../../Disml__Event_models/ChannelPinsUpdate/index.html#type-t">Disml__.Event_models.ChannelPinsUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are pinned or unpinned from a a channel.</p></dd></dl><dl><dt class="spec value" id="val-guild_create"><a href="#val-guild_create" class="anchor"></a><code><span class="keyword">val </span>guild_create : (<a href="../../Disml__Event_models/GuildCreate/index.html#type-t">Disml__.Event_models.GuildCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot joins a guild, and during startup.</p></dd></dl><dl><dt class="spec value" id="val-guild_update"><a href="#val-guild_update" class="anchor"></a><code><span class="keyword">val </span>guild_update : (<a href="../../Disml__Event_models/GuildUpdate/index.html#type-t">Disml__.Event_models.GuildUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild the bot is in is edited.</p></dd></dl><dl><dt class="spec value" id="val-guild_delete"><a href="#val-guild_delete" class="anchor"></a><code><span class="keyword">val </span>guild_delete : (<a href="../../Disml__Event_models/GuildDelete/index.html#type-t">Disml__.Event_models.GuildDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot is removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_ban"><a href="#val-member_ban" class="anchor"></a><code><span class="keyword">val </span>member_ban : (<a href="../../Disml__Event_models/GuildBanAdd/index.html#type-t">Disml__.Event_models.GuildBanAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_unban"><a href="#val-member_unban" class="anchor"></a><code><span class="keyword">val </span>member_unban : (<a href="../../Disml__Event_models/GuildBanRemove/index.html#type-t">Disml__.Event_models.GuildBanRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is unbanned.</p></dd></dl><dl><dt class="spec value" id="val-guild_emojis_update"><a href="#val-guild_emojis_update" class="anchor"></a><code><span class="keyword">val </span>guild_emojis_update : (<a href="../../Disml__Event_models/GuildEmojisUpdate/index.html#type-t">Disml__.Event_models.GuildEmojisUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when emojis are added or removed from a guild.</p></dd></dl><aside><p>Dispatched when a guild's integrations are updated.</p></aside><dl><dt class="spec value" id="val-member_join"><a href="#val-member_join" class="anchor"></a><code><span class="keyword">val </span>member_join : (<a href="../../Disml__Event_models/GuildMemberAdd/index.html#type-t">Disml__.Event_models.GuildMemberAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member joins a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_leave"><a href="#val-member_leave" class="anchor"></a><code><span class="keyword">val </span>member_leave : (<a href="../../Disml__Event_models/GuildMemberRemove/index.html#type-t">Disml__.Event_models.GuildMemberRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member leaves a guild. Is Dispatched alongside <a href="../Client/index.html#val-member_ban"><code>Client.member_ban</code></a> when a user is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_update"><a href="#val-member_update" class="anchor"></a><code><span class="keyword">val </span>member_update : (<a href="../../Disml__Event_models/GuildMemberUpdate/index.html#type-t">Disml__.Event_models.GuildMemberUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member object is updated.</p></dd></dl><dl><dt class="spec value" id="val-members_chunk"><a href="#val-members_chunk" class="anchor"></a><code><span class="keyword">val </span>members_chunk : (<a href="../../Disml__Event_models/GuildMembersChunk/index.html#type-t">Disml__.Event_models.GuildMembersChunk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when requesting guild members through <a href="../Client/index.html#val-request_guild_members"><code>Client.request_guild_members</code></a></p></dd></dl><dl><dt class="spec value" id="val-role_create"><a href="#val-role_create" class="anchor"></a><code><span class="keyword">val </span>role_create : (<a href="../../Disml__Event_models/GuildRoleCreate/index.html#type-t">Disml__.Event_models.GuildRoleCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is created.</p></dd></dl><dl><dt class="spec value" id="val-role_update"><a href="#val-role_update" class="anchor"></a><code><span class="keyword">val </span>role_update : (<a href="../../Disml__Event_models/GuildRoleUpdate/index.html#type-t">Disml__.Event_models.GuildRoleUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is edited.</p></dd></dl><dl><dt class="spec value" id="val-role_delete"><a href="#val-role_delete" class="anchor"></a><code><span class="keyword">val </span>role_delete : (<a href="../../Disml__Event_models/GuildRoleDelete/index.html#type-t">Disml__.Event_models.GuildRoleDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_create"><a href="#val-message_create" class="anchor"></a><code><span class="keyword">val </span>message_create : (<a href="../../Disml__Event_models/MessageCreate/index.html#type-t">Disml__.Event_models.MessageCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is sent.</p></dd></dl><dl><dt class="spec value" id="val-message_update"><a href="#val-message_update" class="anchor"></a><code><span class="keyword">val </span>message_update : (<a href="../../Disml__Event_models/MessageUpdate/index.html#type-t">Disml__.Event_models.MessageUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is edited. This does not necessarily mean the content changed.</p></dd></dl><dl><dt class="spec value" id="val-message_delete"><a href="#val-message_delete" class="anchor"></a><code><span class="keyword">val </span>message_delete : (<a href="../../Disml__Event_models/MessageDelete/index.html#type-t">Disml__.Event_models.MessageDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_delete_bulk"><a href="#val-message_delete_bulk" class="anchor"></a><code><span class="keyword">val </span>message_delete_bulk : (<a href="../../Disml__Event_models/MessageDeleteBulk/index.html#type-t">Disml__.Event_models.MessageDeleteBulk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are bulk deleted.</p></dd></dl><dl><dt class="spec value" id="val-reaction_add"><a href="#val-reaction_add" class="anchor"></a><code><span class="keyword">val </span>reaction_add : (<a href="../../Disml__Event_models/ReactionAdd/index.html#type-t">Disml__.Event_models.ReactionAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a rection is added to a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove"><a href="#val-reaction_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_remove : (<a href="../../Disml__Event_models/ReactionRemove/index.html#type-t">Disml__.Event_models.ReactionRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a reaction is removed from a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove_all"><a href="#val-reaction_remove_all" class="anchor"></a><code><span class="keyword">val </span>reaction_remove_all : (<a href="../../Disml__Event_models/ReactionRemoveAll/index.html#type-t">Disml__.Event_models.ReactionRemoveAll.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when all reactions are cleared from a message.</p></dd></dl><dl><dt class="spec value" id="val-presence_update"><a href="#val-presence_update" class="anchor"></a><code><span class="keyword">val </span>presence_update : (<a href="../../Disml__Event_models/PresenceUpdate/index.html#type-t">Disml__.Event_models.PresenceUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a user updates their presence.</p></dd></dl><dl><dt class="spec value" id="val-typing_start"><a href="#val-typing_start" class="anchor"></a><code><span class="keyword">val </span>typing_start : (<a href="../../Disml__Event_models/TypingStart/index.html#type-t">Disml__.Event_models.TypingStart.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a typing indicator is displayed.</p></dd></dl><dl><dt class="spec value" id="val-user_update"><a href="#val-user_update" class="anchor"></a><code><span class="keyword">val </span>user_update : (<a href="../../Disml__Event_models/UserUpdate/index.html#type-t">Disml__.Event_models.UserUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the current user is updated. You most likely want <a href="../Client/index.html#val-member_update"><code>Client.member_update</code></a> or <a href="../Client/index.html#val-presence_update"><code>Client.presence_update</code></a> instead.</p></dd></dl><dl><dt class="spec value" id="val-webhook_update"><a href="#val-webhook_update" class="anchor"></a><code><span class="keyword">val </span>webhook_update : (<a href="../../Disml__Event_models/WebhookUpdate/index.html#type-t">Disml__.Event_models.WebhookUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a webhook is updated.</p></dd></dl><dl><dt class="spec value" id="val-unknown"><a href="#val-unknown" class="anchor"></a><code><span class="keyword">val </span>unknown : (<a href="../../Disml__Event_models/Unknown/index.html#type-t">Disml__.Event_models.Unknown.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched as a fallback for unknown events.</p></dd></dl></section></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Embed/index.html b/docs/disml/Disml__/Embed/index.html new file mode 100644 index 0000000..40c0989 --- /dev/null +++ b/docs/disml/Disml__/Embed/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Embed (disml.Disml__.Embed)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Embed</nav><h1>Module <code>Disml__.Embed</code></h1></header><dl><dt class="spec type" id="type-footer"><a href="#type-footer" class="anchor"></a><code><span class="keyword">type </span>footer</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-footer.text" class="anchored"><td class="def field"><a href="#type-footer.text" class="anchor"></a><code>text : string;</code></td></tr><tr id="type-footer.icon_url" class="anchored"><td class="def field"><a href="#type-footer.icon_url" class="anchor"></a><code>icon_url : string option;</code></td></tr><tr id="type-footer.proxy_icon_url" class="anchored"><td class="def field"><a href="#type-footer.proxy_icon_url" class="anchor"></a><code>proxy_icon_url : string option;</code></td></tr></table><code>}</code></dt><dd><p>A footer object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-footer_of_sexp"><a href="#val-footer_of_sexp" class="anchor"></a><code><span class="keyword">val </span>footer_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-sexp_of_footer"><a href="#val-sexp_of_footer" class="anchor"></a><code><span class="keyword">val </span>sexp_of_footer : <a href="index.html#type-footer">footer</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-footer_to_yojson"><a href="#val-footer_to_yojson" class="anchor"></a><code><span class="keyword">val </span>footer_to_yojson : <a href="index.html#type-footer">footer</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-footer_of_yojson"><a href="#val-footer_of_yojson" class="anchor"></a><code><span class="keyword">val </span>footer_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-footer">footer</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-footer_of_yojson_exn"><a href="#val-footer_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>footer_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-footer">footer</a></code></dt></dl><dl><dt class="spec type" id="type-image"><a href="#type-image" class="anchor"></a><code><span class="keyword">type </span>image</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-image.url" class="anchored"><td class="def field"><a href="#type-image.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-image.proxy_url" class="anchored"><td class="def field"><a href="#type-image.proxy_url" class="anchor"></a><code>proxy_url : string option;</code></td></tr><tr id="type-image.height" class="anchored"><td class="def field"><a href="#type-image.height" class="anchor"></a><code>height : int option;</code></td></tr><tr id="type-image.width" class="anchored"><td class="def field"><a href="#type-image.width" class="anchor"></a><code>width : int option;</code></td></tr></table><code>}</code></dt><dd><p>An image object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-image_of_sexp"><a href="#val-image_of_sexp" class="anchor"></a><code><span class="keyword">val </span>image_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-image">image</a></code></dt><dt class="spec value" id="val-sexp_of_image"><a href="#val-sexp_of_image" class="anchor"></a><code><span class="keyword">val </span>sexp_of_image : <a href="index.html#type-image">image</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-image_to_yojson"><a href="#val-image_to_yojson" class="anchor"></a><code><span class="keyword">val </span>image_to_yojson : <a href="index.html#type-image">image</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-image_of_yojson"><a href="#val-image_of_yojson" class="anchor"></a><code><span class="keyword">val </span>image_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-image">image</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-image_of_yojson_exn"><a href="#val-image_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>image_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-image">image</a></code></dt></dl><dl><dt class="spec type" id="type-video"><a href="#type-video" class="anchor"></a><code><span class="keyword">type </span>video</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-video.url" class="anchored"><td class="def field"><a href="#type-video.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-video.height" class="anchored"><td class="def field"><a href="#type-video.height" class="anchor"></a><code>height : int option;</code></td></tr><tr id="type-video.width" class="anchored"><td class="def field"><a href="#type-video.width" class="anchor"></a><code>width : int option;</code></td></tr></table><code>}</code></dt><dd><p>A video object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-video_of_sexp"><a href="#val-video_of_sexp" class="anchor"></a><code><span class="keyword">val </span>video_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-video">video</a></code></dt><dt class="spec value" id="val-sexp_of_video"><a href="#val-sexp_of_video" class="anchor"></a><code><span class="keyword">val </span>sexp_of_video : <a href="index.html#type-video">video</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-video_to_yojson"><a href="#val-video_to_yojson" class="anchor"></a><code><span class="keyword">val </span>video_to_yojson : <a href="index.html#type-video">video</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-video_of_yojson"><a href="#val-video_of_yojson" class="anchor"></a><code><span class="keyword">val </span>video_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-video">video</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-video_of_yojson_exn"><a href="#val-video_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>video_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-video">video</a></code></dt></dl><dl><dt class="spec type" id="type-provider"><a href="#type-provider" class="anchor"></a><code><span class="keyword">type </span>provider</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-provider.name" class="anchored"><td class="def field"><a href="#type-provider.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-provider.url" class="anchored"><td class="def field"><a href="#type-provider.url" class="anchor"></a><code>url : string option;</code></td></tr></table><code>}</code></dt><dd><p>A provider object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-provider_of_sexp"><a href="#val-provider_of_sexp" class="anchor"></a><code><span class="keyword">val </span>provider_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-provider">provider</a></code></dt><dt class="spec value" id="val-sexp_of_provider"><a href="#val-sexp_of_provider" class="anchor"></a><code><span class="keyword">val </span>sexp_of_provider : <a href="index.html#type-provider">provider</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-provider_to_yojson"><a href="#val-provider_to_yojson" class="anchor"></a><code><span class="keyword">val </span>provider_to_yojson : <a href="index.html#type-provider">provider</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-provider_of_yojson"><a href="#val-provider_of_yojson" class="anchor"></a><code><span class="keyword">val </span>provider_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-provider">provider</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-provider_of_yojson_exn"><a href="#val-provider_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>provider_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-provider">provider</a></code></dt></dl><dl><dt class="spec type" id="type-author"><a href="#type-author" class="anchor"></a><code><span class="keyword">type </span>author</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-author.name" class="anchored"><td class="def field"><a href="#type-author.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-author.url" class="anchored"><td class="def field"><a href="#type-author.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-author.icon_url" class="anchored"><td class="def field"><a href="#type-author.icon_url" class="anchor"></a><code>icon_url : string option;</code></td></tr><tr id="type-author.proxy_icon_url" class="anchored"><td class="def field"><a href="#type-author.proxy_icon_url" class="anchor"></a><code>proxy_icon_url : string option;</code></td></tr></table><code>}</code></dt><dd><p>An author object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-author_of_sexp"><a href="#val-author_of_sexp" class="anchor"></a><code><span class="keyword">val </span>author_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-sexp_of_author"><a href="#val-sexp_of_author" class="anchor"></a><code><span class="keyword">val </span>sexp_of_author : <a href="index.html#type-author">author</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-author_to_yojson"><a href="#val-author_to_yojson" class="anchor"></a><code><span class="keyword">val </span>author_to_yojson : <a href="index.html#type-author">author</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-author_of_yojson"><a href="#val-author_of_yojson" class="anchor"></a><code><span class="keyword">val </span>author_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-author">author</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-author_of_yojson_exn"><a href="#val-author_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>author_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-author">author</a></code></dt></dl><dl><dt class="spec type" id="type-field"><a href="#type-field" class="anchor"></a><code><span class="keyword">type </span>field</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-field.name" class="anchored"><td class="def field"><a href="#type-field.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-field.value" class="anchored"><td class="def field"><a href="#type-field.value" class="anchor"></a><code>value : string;</code></td></tr><tr id="type-field.inline" class="anchored"><td class="def field"><a href="#type-field.inline" class="anchor"></a><code>inline : bool;</code></td></tr></table><code>}</code></dt><dd><p>A field object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-field_of_sexp"><a href="#val-field_of_sexp" class="anchor"></a><code><span class="keyword">val </span>field_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-field">field</a></code></dt><dt class="spec value" id="val-sexp_of_field"><a href="#val-sexp_of_field" class="anchor"></a><code><span class="keyword">val </span>sexp_of_field : <a href="index.html#type-field">field</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-field_to_yojson"><a href="#val-field_to_yojson" class="anchor"></a><code><span class="keyword">val </span>field_to_yojson : <a href="index.html#type-field">field</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-field_of_yojson"><a href="#val-field_of_yojson" class="anchor"></a><code><span class="keyword">val </span>field_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-field">field</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-field_of_yojson_exn"><a href="#val-field_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>field_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-field">field</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.title" class="anchored"><td class="def field"><a href="#type-t.title" class="anchor"></a><code>title : string option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : string option;</code></td></tr><tr id="type-t.description" class="anchored"><td class="def field"><a href="#type-t.description" class="anchor"></a><code>description : string option;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int option;</code></td></tr><tr id="type-t.footer" class="anchored"><td class="def field"><a href="#type-t.footer" class="anchor"></a><code>footer : <a href="index.html#type-footer">footer</a> option;</code></td></tr><tr id="type-t.image" class="anchored"><td class="def field"><a href="#type-t.image" class="anchor"></a><code>image : <a href="index.html#type-image">image</a> option;</code></td></tr><tr id="type-t.thumbnail" class="anchored"><td class="def field"><a href="#type-t.thumbnail" class="anchor"></a><code>thumbnail : <a href="index.html#type-image">image</a> option;</code></td></tr><tr id="type-t.video" class="anchored"><td class="def field"><a href="#type-t.video" class="anchor"></a><code>video : <a href="index.html#type-video">video</a> option;</code></td></tr><tr id="type-t.provider" class="anchored"><td class="def field"><a href="#type-t.provider" class="anchor"></a><code>provider : <a href="index.html#type-provider">provider</a> option;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="index.html#type-author">author</a> option;</code></td></tr><tr id="type-t.fields" class="anchored"><td class="def field"><a href="#type-t.fields" class="anchor"></a><code>fields : <a href="index.html#type-field">field</a> list;</code></td></tr></table><code>}</code></dt><dd><p>An embed object. See this <a href="https://leovoel.github.io/embed-visualizer/">embed visualiser</a> if you need help understanding each component.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-default"><a href="#val-default" class="anchor"></a><code><span class="keyword">val </span>default : <a href="index.html#type-t">t</a></code></dt><dd><p>An embed where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_footer"><a href="#val-default_footer" class="anchor"></a><code><span class="keyword">val </span>default_footer : <a href="index.html#type-footer">footer</a></code></dt><dd><p>A footer where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_image"><a href="#val-default_image" class="anchor"></a><code><span class="keyword">val </span>default_image : <a href="index.html#type-image">image</a></code></dt><dd><p>An image where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_video"><a href="#val-default_video" class="anchor"></a><code><span class="keyword">val </span>default_video : <a href="index.html#type-video">video</a></code></dt><dd><p>A video where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_provider"><a href="#val-default_provider" class="anchor"></a><code><span class="keyword">val </span>default_provider : <a href="index.html#type-provider">provider</a></code></dt><dd><p>A provider where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_author"><a href="#val-default_author" class="anchor"></a><code><span class="keyword">val </span>default_author : <a href="index.html#type-author">author</a></code></dt><dd><p>An author where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-title"><a href="#val-title" class="anchor"></a><code><span class="keyword">val </span>title : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the title of an embed.</p></dd></dl><dl><dt class="spec value" id="val-description"><a href="#val-description" class="anchor"></a><code><span class="keyword">val </span>description : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the description of an embed.</p></dd></dl><dl><dt class="spec value" id="val-url"><a href="#val-url" class="anchor"></a><code><span class="keyword">val </span>url : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the URL of an embed.</p></dd></dl><dl><dt class="spec value" id="val-timestamp"><a href="#val-timestamp" class="anchor"></a><code><span class="keyword">val </span>timestamp : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the timestamp of an embed.</p></dd></dl><dl><dt class="spec value" id="val-colour"><a href="#val-colour" class="anchor"></a><code><span class="keyword">val </span>colour : int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the colour of an embed.</p></dd></dl><dl><dt class="spec value" id="val-color"><a href="#val-color" class="anchor"></a><code><span class="keyword">val </span>color : int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Identical to <a href="index.html#type-t.colour"><code>colour</code></a> but with US English spelling.</p></dd></dl><dl><dt class="spec value" id="val-footer"><a href="#val-footer" class="anchor"></a><code><span class="keyword">val </span>footer : (<a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a>) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the footer of an embed. The function passes <a href="index.html#val-default_footer"><code>default_footer</code></a> and must return a footer.</p></dd></dl><dl><dt class="spec value" id="val-image"><a href="#val-image" class="anchor"></a><code><span class="keyword">val </span>image : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the image URL of an embed.</p></dd></dl><dl><dt class="spec value" id="val-thumbnail"><a href="#val-thumbnail" class="anchor"></a><code><span class="keyword">val </span>thumbnail : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the thumbnail URL of an embed.</p></dd></dl><dl><dt class="spec value" id="val-author"><a href="#val-author" class="anchor"></a><code><span class="keyword">val </span>author : (<a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a>) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the author of an embed. The function passes <a href="index.html#val-default_author"><code>default_author</code></a> and must return an author.</p></dd></dl><dl><dt class="spec value" id="val-field"><a href="#val-field" class="anchor"></a><code><span class="keyword">val </span>field : (string<span class="keyword"> * </span>string<span class="keyword"> * </span>bool) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Add a field to an embed. Takes a tuple in <code>(name, value, inline)</code> order. <b>Fields added this way will appear in reverse order in the embed.</b></p></dd></dl><dl><dt class="spec value" id="val-fields"><a href="#val-fields" class="anchor"></a><code><span class="keyword">val </span>fields : (string<span class="keyword"> * </span>string<span class="keyword"> * </span>bool) list <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the fields of an embed. Similar to <a href="index.html#type-field"><code>field</code></a>, but because a complete list is passed, fields preserve order.</p></dd></dl><dl><dt class="spec value" id="val-footer_text"><a href="#val-footer_text" class="anchor"></a><code><span class="keyword">val </span>footer_text : string <span>-></span> <a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dd><p>Set the footer text. Typically used in the closure passed to <a href="index.html#type-footer"><code>footer</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-footer_icon"><a href="#val-footer_icon" class="anchor"></a><code><span class="keyword">val </span>footer_icon : string <span>-></span> <a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dd><p>Set the footer icon URL. Typically used in the closure passed to <a href="index.html#type-footer"><code>footer</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-author_name"><a href="#val-author_name" class="anchor"></a><code><span class="keyword">val </span>author_name : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dd><p>Set the author name. Typically used in the closure passed to <a href="index.html#type-author"><code>author</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-author_url"><a href="#val-author_url" class="anchor"></a><code><span class="keyword">val </span>author_url : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dd><p>Set the author URL. Typically used in the closure passed to <a href="index.html#type-author"><code>author</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-author_icon"><a href="#val-author_icon" class="anchor"></a><code><span class="keyword">val </span>author_icon : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dd><p>Set the author icon URL. Typically used in the closure passed to <a href="index.html#type-author"><code>author</code></a>.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Emoji/index.html b/docs/disml/Disml__/Emoji/index.html new file mode 100644 index 0000000..5359ada --- /dev/null +++ b/docs/disml/Disml__/Emoji/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Emoji (disml.Disml__.Emoji)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Emoji</nav><h1>Module <code>Disml__.Emoji</code></h1></header><dl><dt class="spec type" id="type-partial_emoji"><a href="#type-partial_emoji" class="anchor"></a><code><span class="keyword">type </span>partial_emoji</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_emoji.id" class="anchored"><td class="def field"><a href="#type-partial_emoji.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-partial_emoji.name" class="anchored"><td class="def field"><a href="#type-partial_emoji.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt><dd><p>A partial emoji, used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_emoji_of_sexp"><a href="#val-partial_emoji_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a></code></dt><dt class="spec value" id="val-sexp_of_partial_emoji"><a href="#val-sexp_of_partial_emoji" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_emoji : <a href="index.html#type-partial_emoji">partial_emoji</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_emoji_to_yojson"><a href="#val-partial_emoji_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_to_yojson : <a href="index.html#type-partial_emoji">partial_emoji</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_emoji_of_yojson"><a href="#val-partial_emoji_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_emoji_of_yojson_exn"><a href="#val-partial_emoji_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Snowflake ID of the emoji. Only exists for custom emojis.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>Name of the emoji. Either the emoji custom name or a unicode character.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>List of roles required to use this emoji. Is only non-empty on some integration emojis.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> option;</code></td><td class="doc"><p>User object of the person who uploaded the emoji. Only exists for custom emojis.</p></td></tr><tr id="type-t.require_colons" class="anchored"><td class="def field"><a href="#type-t.require_colons" class="anchor"></a><code>require_colons : bool;</code></td><td class="doc"><p>Whether the emoji must be wrapped in colons. Is false for unicode emojis.</p></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td><td class="doc"><p>Whether the emoji is managed by an integration.</p></td></tr><tr id="type-t.animated" class="anchored"><td class="def field"><a href="#type-t.animated" class="anchor"></a><code>animated : bool;</code></td><td class="doc"><p>Whether the emoji is animated.</p></td></tr></table><code>}</code></dt><dd><p>A full emoji object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Endpoints/index.html b/docs/disml/Disml__/Endpoints/index.html new file mode 100644 index 0000000..a995988 --- /dev/null +++ b/docs/disml/Disml__/Endpoints/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Endpoints (disml.Disml__.Endpoints)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Endpoints</nav><h1>Module <code>Disml__.Endpoints</code></h1></header><aside><p>Endpoint formatters used internally.</p></aside><dl><dt class="spec value" id="val-gateway"><a href="#val-gateway" class="anchor"></a><code><span class="keyword">val </span>gateway : string</code></dt><dt class="spec value" id="val-gateway_bot"><a href="#val-gateway_bot" class="anchor"></a><code><span class="keyword">val </span>gateway_bot : string</code></dt><dt class="spec value" id="val-channel"><a href="#val-channel" class="anchor"></a><code><span class="keyword">val </span>channel : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_messages"><a href="#val-channel_messages" class="anchor"></a><code><span class="keyword">val </span>channel_messages : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_message"><a href="#val-channel_message" class="anchor"></a><code><span class="keyword">val </span>channel_message : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_reaction_me"><a href="#val-channel_reaction_me" class="anchor"></a><code><span class="keyword">val </span>channel_reaction_me : int <span>-></span> int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-channel_reaction"><a href="#val-channel_reaction" class="anchor"></a><code><span class="keyword">val </span>channel_reaction : int <span>-></span> int <span>-></span> string <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_reactions_get"><a href="#val-channel_reactions_get" class="anchor"></a><code><span class="keyword">val </span>channel_reactions_get : int <span>-></span> int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-channel_reactions_delete"><a href="#val-channel_reactions_delete" class="anchor"></a><code><span class="keyword">val </span>channel_reactions_delete : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_bulk_delete"><a href="#val-channel_bulk_delete" class="anchor"></a><code><span class="keyword">val </span>channel_bulk_delete : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_permission"><a href="#val-channel_permission" class="anchor"></a><code><span class="keyword">val </span>channel_permission : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_permissions"><a href="#val-channel_permissions" class="anchor"></a><code><span class="keyword">val </span>channel_permissions : int <span>-></span> string</code></dt><dt class="spec value" id="val-channels"><a href="#val-channels" class="anchor"></a><code><span class="keyword">val </span>channels : string</code></dt><dt class="spec value" id="val-channel_call_ring"><a href="#val-channel_call_ring" class="anchor"></a><code><span class="keyword">val </span>channel_call_ring : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_invites"><a href="#val-channel_invites" class="anchor"></a><code><span class="keyword">val </span>channel_invites : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_typing"><a href="#val-channel_typing" class="anchor"></a><code><span class="keyword">val </span>channel_typing : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_pins"><a href="#val-channel_pins" class="anchor"></a><code><span class="keyword">val </span>channel_pins : int <span>-></span> string</code></dt><dt class="spec value" id="val-channel_pin"><a href="#val-channel_pin" class="anchor"></a><code><span class="keyword">val </span>channel_pin : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guilds"><a href="#val-guilds" class="anchor"></a><code><span class="keyword">val </span>guilds : string</code></dt><dt class="spec value" id="val-guild"><a href="#val-guild" class="anchor"></a><code><span class="keyword">val </span>guild : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_channels"><a href="#val-guild_channels" class="anchor"></a><code><span class="keyword">val </span>guild_channels : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_members"><a href="#val-guild_members" class="anchor"></a><code><span class="keyword">val </span>guild_members : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_member"><a href="#val-guild_member" class="anchor"></a><code><span class="keyword">val </span>guild_member : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_member_role"><a href="#val-guild_member_role" class="anchor"></a><code><span class="keyword">val </span>guild_member_role : int <span>-></span> int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_bans"><a href="#val-guild_bans" class="anchor"></a><code><span class="keyword">val </span>guild_bans : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_ban"><a href="#val-guild_ban" class="anchor"></a><code><span class="keyword">val </span>guild_ban : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_roles"><a href="#val-guild_roles" class="anchor"></a><code><span class="keyword">val </span>guild_roles : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_role"><a href="#val-guild_role" class="anchor"></a><code><span class="keyword">val </span>guild_role : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_prune"><a href="#val-guild_prune" class="anchor"></a><code><span class="keyword">val </span>guild_prune : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_voice_regions"><a href="#val-guild_voice_regions" class="anchor"></a><code><span class="keyword">val </span>guild_voice_regions : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_invites"><a href="#val-guild_invites" class="anchor"></a><code><span class="keyword">val </span>guild_invites : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_integrations"><a href="#val-guild_integrations" class="anchor"></a><code><span class="keyword">val </span>guild_integrations : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_integration"><a href="#val-guild_integration" class="anchor"></a><code><span class="keyword">val </span>guild_integration : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_integration_sync"><a href="#val-guild_integration_sync" class="anchor"></a><code><span class="keyword">val </span>guild_integration_sync : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_embed"><a href="#val-guild_embed" class="anchor"></a><code><span class="keyword">val </span>guild_embed : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_emojis"><a href="#val-guild_emojis" class="anchor"></a><code><span class="keyword">val </span>guild_emojis : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_emoji"><a href="#val-guild_emoji" class="anchor"></a><code><span class="keyword">val </span>guild_emoji : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-webhooks_guild"><a href="#val-webhooks_guild" class="anchor"></a><code><span class="keyword">val </span>webhooks_guild : int <span>-></span> string</code></dt><dt class="spec value" id="val-webhooks_channel"><a href="#val-webhooks_channel" class="anchor"></a><code><span class="keyword">val </span>webhooks_channel : int <span>-></span> string</code></dt><dt class="spec value" id="val-webhook"><a href="#val-webhook" class="anchor"></a><code><span class="keyword">val </span>webhook : int <span>-></span> string</code></dt><dt class="spec value" id="val-webhook_token"><a href="#val-webhook_token" class="anchor"></a><code><span class="keyword">val </span>webhook_token : int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-webhook_git"><a href="#val-webhook_git" class="anchor"></a><code><span class="keyword">val </span>webhook_git : int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-webhook_slack"><a href="#val-webhook_slack" class="anchor"></a><code><span class="keyword">val </span>webhook_slack : int <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-user"><a href="#val-user" class="anchor"></a><code><span class="keyword">val </span>user : int <span>-></span> string</code></dt><dt class="spec value" id="val-me"><a href="#val-me" class="anchor"></a><code><span class="keyword">val </span>me : string</code></dt><dt class="spec value" id="val-me_guilds"><a href="#val-me_guilds" class="anchor"></a><code><span class="keyword">val </span>me_guilds : string</code></dt><dt class="spec value" id="val-me_guild"><a href="#val-me_guild" class="anchor"></a><code><span class="keyword">val </span>me_guild : int <span>-></span> string</code></dt><dt class="spec value" id="val-me_channels"><a href="#val-me_channels" class="anchor"></a><code><span class="keyword">val </span>me_channels : string</code></dt><dt class="spec value" id="val-me_connections"><a href="#val-me_connections" class="anchor"></a><code><span class="keyword">val </span>me_connections : string</code></dt><dt class="spec value" id="val-invite"><a href="#val-invite" class="anchor"></a><code><span class="keyword">val </span>invite : string <span>-></span> string</code></dt><dt class="spec value" id="val-regions"><a href="#val-regions" class="anchor"></a><code><span class="keyword">val </span>regions : string</code></dt><dt class="spec value" id="val-application_information"><a href="#val-application_information" class="anchor"></a><code><span class="keyword">val </span>application_information : string</code></dt><dt class="spec value" id="val-group_recipient"><a href="#val-group_recipient" class="anchor"></a><code><span class="keyword">val </span>group_recipient : int <span>-></span> int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_me_nick"><a href="#val-guild_me_nick" class="anchor"></a><code><span class="keyword">val </span>guild_me_nick : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_vanity_url"><a href="#val-guild_vanity_url" class="anchor"></a><code><span class="keyword">val </span>guild_vanity_url : int <span>-></span> string</code></dt><dt class="spec value" id="val-guild_audit_logs"><a href="#val-guild_audit_logs" class="anchor"></a><code><span class="keyword">val </span>guild_audit_logs : int <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_embed_avatar"><a href="#val-cdn_embed_avatar" class="anchor"></a><code><span class="keyword">val </span>cdn_embed_avatar : string <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_emoji"><a href="#val-cdn_emoji" class="anchor"></a><code><span class="keyword">val </span>cdn_emoji : string <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_icon"><a href="#val-cdn_icon" class="anchor"></a><code><span class="keyword">val </span>cdn_icon : int <span>-></span> string <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_avatar"><a href="#val-cdn_avatar" class="anchor"></a><code><span class="keyword">val </span>cdn_avatar : int <span>-></span> string <span>-></span> string <span>-></span> string</code></dt><dt class="spec value" id="val-cdn_default_avatar"><a href="#val-cdn_default_avatar" class="anchor"></a><code><span class="keyword">val </span>cdn_default_avatar : int <span>-></span> string</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event/index.html b/docs/disml/Disml__/Event/index.html new file mode 100644 index 0000000..ab623c0 --- /dev/null +++ b/docs/disml/Disml__/Event/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Event (disml.Disml__.Event)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Event</nav><h1>Module <code>Disml__.Event</code></h1></header><aside><p>Barebones of event dispatching. Most users will have no reason to look here.</p></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.READY" class="anchored"><td class="def constructor"><a href="#type-t.READY" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">READY</span><span class="keyword"> of </span><a href="../../Disml__Event_models/Ready/index.html#type-t">Disml__.Event_models.Ready.t</a></code></td></tr><tr id="type-t.RESUMED" class="anchored"><td class="def constructor"><a href="#type-t.RESUMED" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">RESUMED</span><span class="keyword"> of </span><a href="../../Disml__Event_models/Resumed/index.html#type-t">Disml__.Event_models.Resumed.t</a></code></td></tr><tr id="type-t.CHANNEL_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_CREATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/ChannelCreate/index.html#type-t">Disml__.Event_models.ChannelCreate.t</a></code></td></tr><tr id="type-t.CHANNEL_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/ChannelUpdate/index.html#type-t">Disml__.Event_models.ChannelUpdate.t</a></code></td></tr><tr id="type-t.CHANNEL_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_DELETE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/ChannelDelete/index.html#type-t">Disml__.Event_models.ChannelDelete.t</a></code></td></tr><tr id="type-t.CHANNEL_PINS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_PINS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_PINS_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/ChannelPinsUpdate/index.html#type-t">Disml__.Event_models.ChannelPinsUpdate.t</a></code></td></tr><tr id="type-t.GUILD_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_CREATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildCreate/index.html#type-t">Disml__.Event_models.GuildCreate.t</a></code></td></tr><tr id="type-t.GUILD_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildUpdate/index.html#type-t">Disml__.Event_models.GuildUpdate.t</a></code></td></tr><tr id="type-t.GUILD_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_DELETE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildDelete/index.html#type-t">Disml__.Event_models.GuildDelete.t</a></code></td></tr><tr id="type-t.GUILD_BAN_ADD" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_BAN_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_BAN_ADD</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildBanAdd/index.html#type-t">Disml__.Event_models.GuildBanAdd.t</a></code></td></tr><tr id="type-t.GUILD_BAN_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_BAN_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_BAN_REMOVE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildBanRemove/index.html#type-t">Disml__.Event_models.GuildBanRemove.t</a></code></td></tr><tr id="type-t.GUILD_EMOJIS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_EMOJIS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_EMOJIS_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildEmojisUpdate/index.html#type-t">Disml__.Event_models.GuildEmojisUpdate.t</a></code></td></tr><tr id="type-t.GUILD_MEMBER_ADD" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_ADD</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildMemberAdd/index.html#type-t">Disml__.Event_models.GuildMemberAdd.t</a></code></td></tr><tr id="type-t.GUILD_MEMBER_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_REMOVE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildMemberRemove/index.html#type-t">Disml__.Event_models.GuildMemberRemove.t</a></code></td></tr><tr id="type-t.GUILD_MEMBER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildMemberUpdate/index.html#type-t">Disml__.Event_models.GuildMemberUpdate.t</a></code></td></tr><tr id="type-t.GUILD_MEMBERS_CHUNK" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBERS_CHUNK" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBERS_CHUNK</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildMembersChunk/index.html#type-t">Disml__.Event_models.GuildMembersChunk.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_CREATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildRoleCreate/index.html#type-t">Disml__.Event_models.GuildRoleCreate.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildRoleUpdate/index.html#type-t">Disml__.Event_models.GuildRoleUpdate.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_DELETE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/GuildRoleDelete/index.html#type-t">Disml__.Event_models.GuildRoleDelete.t</a></code></td></tr><tr id="type-t.MESSAGE_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_CREATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/MessageCreate/index.html#type-t">Disml__.Event_models.MessageCreate.t</a></code></td></tr><tr id="type-t.MESSAGE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/MessageUpdate/index.html#type-t">Disml__.Event_models.MessageUpdate.t</a></code></td></tr><tr id="type-t.MESSAGE_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_DELETE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/MessageDelete/index.html#type-t">Disml__.Event_models.MessageDelete.t</a></code></td></tr><tr id="type-t.MESSAGE_DELETE_BULK" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_DELETE_BULK" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_DELETE_BULK</span><span class="keyword"> of </span><a href="../../Disml__Event_models/MessageDeleteBulk/index.html#type-t">Disml__.Event_models.MessageDeleteBulk.t</a></code></td></tr><tr id="type-t.REACTION_ADD" class="anchored"><td class="def constructor"><a href="#type-t.REACTION_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">REACTION_ADD</span><span class="keyword"> of </span><a href="../../Disml__Event_models/ReactionAdd/index.html#type-t">Disml__.Event_models.ReactionAdd.t</a></code></td></tr><tr id="type-t.REACTION_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.REACTION_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">REACTION_REMOVE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/ReactionRemove/index.html#type-t">Disml__.Event_models.ReactionRemove.t</a></code></td></tr><tr id="type-t.REACTION_REMOVE_ALL" class="anchored"><td class="def constructor"><a href="#type-t.REACTION_REMOVE_ALL" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">REACTION_REMOVE_ALL</span><span class="keyword"> of </span><a href="../../Disml__Event_models/ReactionRemoveAll/index.html#type-t">Disml__.Event_models.ReactionRemoveAll.t</a></code></td></tr><tr id="type-t.PRESENCE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.PRESENCE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">PRESENCE_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/PresenceUpdate/index.html#type-t">Disml__.Event_models.PresenceUpdate.t</a></code></td></tr><tr id="type-t.TYPING_START" class="anchored"><td class="def constructor"><a href="#type-t.TYPING_START" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">TYPING_START</span><span class="keyword"> of </span><a href="../../Disml__Event_models/TypingStart/index.html#type-t">Disml__.Event_models.TypingStart.t</a></code></td></tr><tr id="type-t.USER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.USER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">USER_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/UserUpdate/index.html#type-t">Disml__.Event_models.UserUpdate.t</a></code></td></tr><tr id="type-t.WEBHOOK_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.WEBHOOK_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">WEBHOOK_UPDATE</span><span class="keyword"> of </span><a href="../../Disml__Event_models/WebhookUpdate/index.html#type-t">Disml__.Event_models.WebhookUpdate.t</a></code></td></tr><tr id="type-t.UNKNOWN" class="anchored"><td class="def constructor"><a href="#type-t.UNKNOWN" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">UNKNOWN</span><span class="keyword"> of </span><a href="../../Disml__Event_models/Unknown/index.html#type-t">Disml__.Event_models.Unknown.t</a></code></td></tr></table></dt><dd><p>Event dispatch type wrapper. Used internally.</p></dd></dl><dl><dt class="spec value" id="val-event_of_yojson"><a href="#val-event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>event_of_yojson : contents:Yojson.Safe.json <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Used to convert an event string and payload into a t wrapper type.</p></dd></dl><dl><dt class="spec value" id="val-dispatch"><a href="#val-dispatch" class="anchor"></a><code><span class="keyword">val </span>dispatch : <a href="index.html#type-t">t</a> <span>-></span> unit</code></dt><dd><p>Sends the event to the registered handler.</p></dd></dl><dl><dt class="spec value" id="val-handle_event"><a href="#val-handle_event" class="anchor"></a><code><span class="keyword">val </span>handle_event : ev:string <span>-></span> Yojson.Safe.json <span>-></span> unit</code></dt><dd><p>Wrapper to other functions. This is called from the shards.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/ChannelCreate/index.html b/docs/disml/Disml__/Event_models/ChannelCreate/index.html new file mode 100644 index 0000000..8685599 --- /dev/null +++ b/docs/disml/Disml__/Event_models/ChannelCreate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelCreate (disml.Disml__.Event_models.ChannelCreate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » ChannelCreate</nav><h1>Module <code>Event_models.ChannelCreate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel" class="anchored"><td class="def field"><a href="#type-t.channel" class="anchor"></a><code>channel : <a href="../../Channel_t/index.html#type-t">Disml__.Channel_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/ChannelDelete/index.html b/docs/disml/Disml__/Event_models/ChannelDelete/index.html new file mode 100644 index 0000000..c76170b --- /dev/null +++ b/docs/disml/Disml__/Event_models/ChannelDelete/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelDelete (disml.Disml__.Event_models.ChannelDelete)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » ChannelDelete</nav><h1>Module <code>Event_models.ChannelDelete</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel" class="anchored"><td class="def field"><a href="#type-t.channel" class="anchor"></a><code>channel : <a href="../../Channel_t/index.html#type-t">Disml__.Channel_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/ChannelPinsUpdate/index.html b/docs/disml/Disml__/Event_models/ChannelPinsUpdate/index.html new file mode 100644 index 0000000..caa10f1 --- /dev/null +++ b/docs/disml/Disml__/Event_models/ChannelPinsUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelPinsUpdate (disml.Disml__.Event_models.ChannelPinsUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » ChannelPinsUpdate</nav><h1>Module <code>Event_models.ChannelPinsUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-t.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/ChannelRecipientAdd/index.html b/docs/disml/Disml__/Event_models/ChannelRecipientAdd/index.html new file mode 100644 index 0000000..15c7fc6 --- /dev/null +++ b/docs/disml/Disml__/Event_models/ChannelRecipientAdd/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelRecipientAdd (disml.Disml__.Event_models.ChannelRecipientAdd)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » ChannelRecipientAdd</nav><h1>Module <code>Event_models.ChannelRecipientAdd</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/ChannelRecipientRemove/index.html b/docs/disml/Disml__/Event_models/ChannelRecipientRemove/index.html new file mode 100644 index 0000000..f380a9d --- /dev/null +++ b/docs/disml/Disml__/Event_models/ChannelRecipientRemove/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelRecipientRemove (disml.Disml__.Event_models.ChannelRecipientRemove)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » ChannelRecipientRemove</nav><h1>Module <code>Event_models.ChannelRecipientRemove</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/ChannelUpdate/index.html b/docs/disml/Disml__/Event_models/ChannelUpdate/index.html new file mode 100644 index 0000000..bafc695 --- /dev/null +++ b/docs/disml/Disml__/Event_models/ChannelUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelUpdate (disml.Disml__.Event_models.ChannelUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » ChannelUpdate</nav><h1>Module <code>Event_models.ChannelUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel" class="anchored"><td class="def field"><a href="#type-t.channel" class="anchor"></a><code>channel : <a href="../../Channel_t/index.html#type-t">Disml__.Channel_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildBanAdd/index.html b/docs/disml/Disml__/Event_models/GuildBanAdd/index.html new file mode 100644 index 0000000..8fcf8ed --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildBanAdd/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildBanAdd (disml.Disml__.Event_models.GuildBanAdd)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildBanAdd</nav><h1>Module <code>Event_models.GuildBanAdd</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildBanRemove/index.html b/docs/disml/Disml__/Event_models/GuildBanRemove/index.html new file mode 100644 index 0000000..d0e69d1 --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildBanRemove/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildBanRemove (disml.Disml__.Event_models.GuildBanRemove)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildBanRemove</nav><h1>Module <code>Event_models.GuildBanRemove</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildCreate/index.html b/docs/disml/Disml__/Event_models/GuildCreate/index.html new file mode 100644 index 0000000..951c3ec --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildCreate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildCreate (disml.Disml__.Event_models.GuildCreate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildCreate</nav><h1>Module <code>Event_models.GuildCreate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild" class="anchored"><td class="def field"><a href="#type-t.guild" class="anchor"></a><code>guild : <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildDelete/index.html b/docs/disml/Disml__/Event_models/GuildDelete/index.html new file mode 100644 index 0000000..b98695a --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildDelete/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildDelete (disml.Disml__.Event_models.GuildDelete)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildDelete</nav><h1>Module <code>Event_models.GuildDelete</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildEmojisUpdate/index.html b/docs/disml/Disml__/Event_models/GuildEmojisUpdate/index.html new file mode 100644 index 0000000..bd7b384 --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildEmojisUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildEmojisUpdate (disml.Disml__.Event_models.GuildEmojisUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildEmojisUpdate</nav><h1>Module <code>Event_models.GuildEmojisUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../../Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildMemberAdd/index.html b/docs/disml/Disml__/Event_models/GuildMemberAdd/index.html new file mode 100644 index 0000000..0f29752 --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildMemberAdd/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildMemberAdd (disml.Disml__.Event_models.GuildMemberAdd)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildMemberAdd</nav><h1>Module <code>Event_models.GuildMemberAdd</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../../index.html#module-Member_t">Disml__.Member_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td><td class="doc"><p>The nickname of the member, if they have one set.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>The roles the member has.</p></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td><td class="doc"><p>An ISO8601 timestamp of when the user joined.</p></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td><td class="doc"><p>Whether the user is deafened.</p></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td><td class="doc"><p>Whether the user is muted.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The underlying user object for the member.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which the member exists.</p></td></tr></table><code>}</code></dt><dd><p>A member object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildMemberRemove/index.html b/docs/disml/Disml__/Event_models/GuildMemberRemove/index.html new file mode 100644 index 0000000..aa13b12 --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildMemberRemove/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildMemberRemove (disml.Disml__.Event_models.GuildMemberRemove)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildMemberRemove</nav><h1>Module <code>Event_models.GuildMemberRemove</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildMemberUpdate/index.html b/docs/disml/Disml__/Event_models/GuildMemberUpdate/index.html new file mode 100644 index 0000000..8e1ae90 --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildMemberUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildMemberUpdate (disml.Disml__.Event_models.GuildMemberUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildMemberUpdate</nav><h1>Module <code>Event_models.GuildMemberUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildMembersChunk/index.html b/docs/disml/Disml__/Event_models/GuildMembersChunk/index.html new file mode 100644 index 0000000..2f7d270 --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildMembersChunk/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildMembersChunk (disml.Disml__.Event_models.GuildMembersChunk)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildMembersChunk</nav><h1>Module <code>Event_models.GuildMembersChunk</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : (<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a><span class="keyword"> * </span><a href="../../Member_t/index.html#type-t">Disml__.Member_t.t</a>) list;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildRoleCreate/index.html b/docs/disml/Disml__/Event_models/GuildRoleCreate/index.html new file mode 100644 index 0000000..95ee619 --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildRoleCreate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildRoleCreate (disml.Disml__.Event_models.GuildRoleCreate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildRoleCreate</nav><h1>Module <code>Event_models.GuildRoleCreate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.role" class="anchored"><td class="def field"><a href="#type-t.role" class="anchor"></a><code>role : <a href="../../Role_t/index.html#type-role">Disml__.Role_t.role</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildRoleDelete/index.html b/docs/disml/Disml__/Event_models/GuildRoleDelete/index.html new file mode 100644 index 0000000..7072ee2 --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildRoleDelete/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildRoleDelete (disml.Disml__.Event_models.GuildRoleDelete)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildRoleDelete</nav><h1>Module <code>Event_models.GuildRoleDelete</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.role_id" class="anchored"><td class="def field"><a href="#type-t.role_id" class="anchor"></a><code>role_id : <a href="../../Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildRoleUpdate/index.html b/docs/disml/Disml__/Event_models/GuildRoleUpdate/index.html new file mode 100644 index 0000000..ab767ca --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildRoleUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildRoleUpdate (disml.Disml__.Event_models.GuildRoleUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildRoleUpdate</nav><h1>Module <code>Event_models.GuildRoleUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.role" class="anchored"><td class="def field"><a href="#type-t.role" class="anchor"></a><code>role : <a href="../../Role_t/index.html#type-role">Disml__.Role_t.role</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildUnavailable/index.html b/docs/disml/Disml__/Event_models/GuildUnavailable/index.html new file mode 100644 index 0000000..99ef3db --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildUnavailable/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildUnavailable (disml.Disml__.Event_models.GuildUnavailable)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildUnavailable</nav><h1>Module <code>Event_models.GuildUnavailable</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/GuildUpdate/index.html b/docs/disml/Disml__/Event_models/GuildUpdate/index.html new file mode 100644 index 0000000..6d84622 --- /dev/null +++ b/docs/disml/Disml__/Event_models/GuildUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildUpdate (disml.Disml__.Event_models.GuildUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » GuildUpdate</nav><h1>Module <code>Event_models.GuildUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild" class="anchored"><td class="def field"><a href="#type-t.guild" class="anchor"></a><code>guild : <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/MessageCreate/index.html b/docs/disml/Disml__/Event_models/MessageCreate/index.html new file mode 100644 index 0000000..a49e634 --- /dev/null +++ b/docs/disml/Disml__/Event_models/MessageCreate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>MessageCreate (disml.Disml__.Event_models.MessageCreate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » MessageCreate</nav><h1>Module <code>Event_models.MessageCreate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.message" class="anchored"><td class="def field"><a href="#type-t.message" class="anchor"></a><code>message : <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/MessageDelete/index.html b/docs/disml/Disml__/Event_models/MessageDelete/index.html new file mode 100644 index 0000000..35524db --- /dev/null +++ b/docs/disml/Disml__/Event_models/MessageDelete/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>MessageDelete (disml.Disml__.Event_models.MessageDelete)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » MessageDelete</nav><h1>Module <code>Event_models.MessageDelete</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../../Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/MessageDeleteBulk/index.html b/docs/disml/Disml__/Event_models/MessageDeleteBulk/index.html new file mode 100644 index 0000000..deb789b --- /dev/null +++ b/docs/disml/Disml__/Event_models/MessageDeleteBulk/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>MessageDeleteBulk (disml.Disml__.Event_models.MessageDeleteBulk)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » MessageDeleteBulk</nav><h1>Module <code>Event_models.MessageDeleteBulk</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.ids" class="anchored"><td class="def field"><a href="#type-t.ids" class="anchor"></a><code>ids : <a href="../../Message_id/index.html#type-t">Disml__.Message_id.t</a> list;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/MessageUpdate/index.html b/docs/disml/Disml__/Event_models/MessageUpdate/index.html new file mode 100644 index 0000000..fc59e8b --- /dev/null +++ b/docs/disml/Disml__/Event_models/MessageUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>MessageUpdate (disml.Disml__.Event_models.MessageUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » MessageUpdate</nav><h1>Module <code>Event_models.MessageUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../../Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a> option;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../../Member_t/index.html#type-partial_member">Disml__.Member_t.partial_member</a> option;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string option;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-t.editedimestamp" class="anchored"><td class="def field"><a href="#type-t.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool option;</code></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool option;</code></td></tr><tr id="type-t.mentions" class="anchored"><td class="def field"><a href="#type-t.mentions" class="anchor"></a><code>mentions : <a href="../../User_id/index.html#type-t">Disml__.User_id.t</a> list;</code></td></tr><tr id="type-t.role_mentions" class="anchored"><td class="def field"><a href="#type-t.role_mentions" class="anchor"></a><code>role_mentions : <a href="../../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../../Attachment/index.html#type-t">Disml__.Attachment.t</a> list;</code></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../../Embed/index.html#type-t">Disml__.Embed.t</a> list;</code></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> list;</code></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool option;</code></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int option;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/PresenceUpdate/index.html b/docs/disml/Disml__/Event_models/PresenceUpdate/index.html new file mode 100644 index 0000000..90a7bf0 --- /dev/null +++ b/docs/disml/Disml__/Event_models/PresenceUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>PresenceUpdate (disml.Disml__.Event_models.PresenceUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » PresenceUpdate</nav><h1>Module <code>Event_models.PresenceUpdate</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../../index.html#module-Presence">Disml__.Presence</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-partial_user">Disml__.User_t.partial_user</a>;</code></td><td class="doc"><p>A partial user that this presence belongs to.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>A list of roles that the user has.</p></td></tr><tr id="type-t.game" class="anchored"><td class="def field"><a href="#type-t.game" class="anchor"></a><code>game : <a href="../../Activity/index.html#type-t">Disml__.Activity.t</a> option;</code></td><td class="doc"><p>The current activity of the user, if any.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which this presence exists.</p></td></tr><tr id="type-t.status" class="anchored"><td class="def field"><a href="#type-t.status" class="anchor"></a><code>status : string;</code></td><td class="doc"><p>One of <code>online</code>, <code>idle</code>, <code>offline</code>, or <code>dnd</code>.</p></td></tr><tr id="type-t.activities" class="anchored"><td class="def field"><a href="#type-t.activities" class="anchor"></a><code>activities : <a href="../../Activity/index.html#type-t">Disml__.Activity.t</a> list;</code></td><td class="doc"><p>A list of all of the user's current activities.</p></td></tr></table><code>}</code></dt><dd><p>A user presence.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/ReactionAdd/index.html b/docs/disml/Disml__/Event_models/ReactionAdd/index.html new file mode 100644 index 0000000..9eb5990 --- /dev/null +++ b/docs/disml/Disml__/Event_models/ReactionAdd/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ReactionAdd (disml.Disml__.Event_models.ReactionAdd)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » ReactionAdd</nav><h1>Module <code>Event_models.ReactionAdd</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user_id" class="anchored"><td class="def field"><a href="#type-t.user_id" class="anchor"></a><code>user_id : <a href="../../User_id/index.html#type-t">Disml__.User_id.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.message_id" class="anchored"><td class="def field"><a href="#type-t.message_id" class="anchor"></a><code>message_id : <a href="../../Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../../Emoji/index.html#type-partial_emoji">Disml__.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/ReactionRemove/index.html b/docs/disml/Disml__/Event_models/ReactionRemove/index.html new file mode 100644 index 0000000..bc63e42 --- /dev/null +++ b/docs/disml/Disml__/Event_models/ReactionRemove/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ReactionRemove (disml.Disml__.Event_models.ReactionRemove)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » ReactionRemove</nav><h1>Module <code>Event_models.ReactionRemove</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user_id" class="anchored"><td class="def field"><a href="#type-t.user_id" class="anchor"></a><code>user_id : <a href="../../User_id/index.html#type-t">Disml__.User_id.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.message_id" class="anchored"><td class="def field"><a href="#type-t.message_id" class="anchor"></a><code>message_id : <a href="../../Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../../Emoji/index.html#type-partial_emoji">Disml__.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/ReactionRemoveAll/index.html b/docs/disml/Disml__/Event_models/ReactionRemoveAll/index.html new file mode 100644 index 0000000..80cfeb8 --- /dev/null +++ b/docs/disml/Disml__/Event_models/ReactionRemoveAll/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ReactionRemoveAll (disml.Disml__.Event_models.ReactionRemoveAll)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » ReactionRemoveAll</nav><h1>Module <code>Event_models.ReactionRemoveAll</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.message_id" class="anchored"><td class="def field"><a href="#type-t.message_id" class="anchor"></a><code>message_id : <a href="../../Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/Ready/index.html b/docs/disml/Disml__/Event_models/Ready/index.html new file mode 100644 index 0000000..499b267 --- /dev/null +++ b/docs/disml/Disml__/Event_models/Ready/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Ready (disml.Disml__.Event_models.Ready)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » Ready</nav><h1>Module <code>Event_models.Ready</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.version" class="anchored"><td class="def field"><a href="#type-t.version" class="anchor"></a><code>version : int;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr><tr id="type-t.private_channels" class="anchored"><td class="def field"><a href="#type-t.private_channels" class="anchor"></a><code>private_channels : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a> list;</code></td></tr><tr id="type-t.guilds" class="anchored"><td class="def field"><a href="#type-t.guilds" class="anchor"></a><code>guilds : <a href="../../Guild_t/index.html#type-unavailable">Disml__.Guild_t.unavailable</a> list;</code></td></tr><tr id="type-t.session_id" class="anchored"><td class="def field"><a href="#type-t.session_id" class="anchor"></a><code>session_id : string;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/Resumed/index.html b/docs/disml/Disml__/Event_models/Resumed/index.html new file mode 100644 index 0000000..852b80e --- /dev/null +++ b/docs/disml/Disml__/Event_models/Resumed/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Resumed (disml.Disml__.Event_models.Resumed)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » Resumed</nav><h1>Module <code>Event_models.Resumed</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.trace" class="anchored"><td class="def field"><a href="#type-t.trace" class="anchor"></a><code>trace : string option list;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/TypingStart/index.html b/docs/disml/Disml__/Event_models/TypingStart/index.html new file mode 100644 index 0000000..2341868 --- /dev/null +++ b/docs/disml/Disml__/Event_models/TypingStart/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>TypingStart (disml.Disml__.Event_models.TypingStart)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » TypingStart</nav><h1>Module <code>Event_models.TypingStart</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : int;</code></td></tr><tr id="type-t.user_id" class="anchored"><td class="def field"><a href="#type-t.user_id" class="anchor"></a><code>user_id : <a href="../../User_id/index.html#type-t">Disml__.User_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/Unknown/index.html b/docs/disml/Disml__/Event_models/Unknown/index.html new file mode 100644 index 0000000..4f89f65 --- /dev/null +++ b/docs/disml/Disml__/Event_models/Unknown/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Unknown (disml.Disml__.Event_models.Unknown)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » Unknown</nav><h1>Module <code>Event_models.Unknown</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : string;</code></td></tr><tr id="type-t.value" class="anchored"><td class="def field"><a href="#type-t.value" class="anchor"></a><code>value : Yojson.Safe.json;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : string <span>-></span> Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/UserUpdate/index.html b/docs/disml/Disml__/Event_models/UserUpdate/index.html new file mode 100644 index 0000000..e54d5f7 --- /dev/null +++ b/docs/disml/Disml__/Event_models/UserUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>UserUpdate (disml.Disml__.Event_models.UserUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » UserUpdate</nav><h1>Module <code>Event_models.UserUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/WebhookUpdate/index.html b/docs/disml/Disml__/Event_models/WebhookUpdate/index.html new file mode 100644 index 0000000..f2d6032 --- /dev/null +++ b/docs/disml/Disml__/Event_models/WebhookUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>WebhookUpdate (disml.Disml__.Event_models.WebhookUpdate)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Event_models</a> » WebhookUpdate</nav><h1>Module <code>Event_models.WebhookUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Event_models/index.html b/docs/disml/Disml__/Event_models/index.html new file mode 100644 index 0000000..45e0087 --- /dev/null +++ b/docs/disml/Disml__/Event_models/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Event_models (disml.Disml__.Event_models)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Event_models</nav><h1>Module <code>Disml__.Event_models</code></h1></header><div class="spec module" id="module-ChannelCreate"><a href="#module-ChannelCreate" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelCreate/index.html">ChannelCreate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelDelete"><a href="#module-ChannelDelete" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelDelete/index.html">ChannelDelete</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelUpdate"><a href="#module-ChannelUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelUpdate/index.html">ChannelUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelPinsUpdate"><a href="#module-ChannelPinsUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelPinsUpdate/index.html">ChannelPinsUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelRecipientAdd"><a href="#module-ChannelRecipientAdd" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelRecipientAdd/index.html">ChannelRecipientAdd</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelRecipientRemove"><a href="#module-ChannelRecipientRemove" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelRecipientRemove/index.html">ChannelRecipientRemove</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildBanAdd"><a href="#module-GuildBanAdd" class="anchor"></a><code><span class="keyword">module </span><a href="GuildBanAdd/index.html">GuildBanAdd</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildBanRemove"><a href="#module-GuildBanRemove" class="anchor"></a><code><span class="keyword">module </span><a href="GuildBanRemove/index.html">GuildBanRemove</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildCreate"><a href="#module-GuildCreate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildCreate/index.html">GuildCreate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildDelete"><a href="#module-GuildDelete" class="anchor"></a><code><span class="keyword">module </span><a href="GuildDelete/index.html">GuildDelete</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildUpdate"><a href="#module-GuildUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildUpdate/index.html">GuildUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildEmojisUpdate"><a href="#module-GuildEmojisUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildEmojisUpdate/index.html">GuildEmojisUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildMemberAdd"><a href="#module-GuildMemberAdd" class="anchor"></a><code><span class="keyword">module </span><a href="GuildMemberAdd/index.html">GuildMemberAdd</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildMemberRemove"><a href="#module-GuildMemberRemove" class="anchor"></a><code><span class="keyword">module </span><a href="GuildMemberRemove/index.html">GuildMemberRemove</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildMemberUpdate"><a href="#module-GuildMemberUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildMemberUpdate/index.html">GuildMemberUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildMembersChunk"><a href="#module-GuildMembersChunk" class="anchor"></a><code><span class="keyword">module </span><a href="GuildMembersChunk/index.html">GuildMembersChunk</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildRoleCreate"><a href="#module-GuildRoleCreate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildRoleCreate/index.html">GuildRoleCreate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildRoleDelete"><a href="#module-GuildRoleDelete" class="anchor"></a><code><span class="keyword">module </span><a href="GuildRoleDelete/index.html">GuildRoleDelete</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildRoleUpdate"><a href="#module-GuildRoleUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildRoleUpdate/index.html">GuildRoleUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildUnavailable"><a href="#module-GuildUnavailable" class="anchor"></a><code><span class="keyword">module </span><a href="GuildUnavailable/index.html">GuildUnavailable</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-MessageCreate"><a href="#module-MessageCreate" class="anchor"></a><code><span class="keyword">module </span><a href="MessageCreate/index.html">MessageCreate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-MessageDelete"><a href="#module-MessageDelete" class="anchor"></a><code><span class="keyword">module </span><a href="MessageDelete/index.html">MessageDelete</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-MessageUpdate"><a href="#module-MessageUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="MessageUpdate/index.html">MessageUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-MessageDeleteBulk"><a href="#module-MessageDeleteBulk" class="anchor"></a><code><span class="keyword">module </span><a href="MessageDeleteBulk/index.html">MessageDeleteBulk</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-PresenceUpdate"><a href="#module-PresenceUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="PresenceUpdate/index.html">PresenceUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ReactionAdd"><a href="#module-ReactionAdd" class="anchor"></a><code><span class="keyword">module </span><a href="ReactionAdd/index.html">ReactionAdd</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ReactionRemove"><a href="#module-ReactionRemove" class="anchor"></a><code><span class="keyword">module </span><a href="ReactionRemove/index.html">ReactionRemove</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ReactionRemoveAll"><a href="#module-ReactionRemoveAll" class="anchor"></a><code><span class="keyword">module </span><a href="ReactionRemoveAll/index.html">ReactionRemoveAll</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Ready"><a href="#module-Ready" class="anchor"></a><code><span class="keyword">module </span><a href="Ready/index.html">Ready</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Resumed"><a href="#module-Resumed" class="anchor"></a><code><span class="keyword">module </span><a href="Resumed/index.html">Resumed</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-TypingStart"><a href="#module-TypingStart" class="anchor"></a><code><span class="keyword">module </span><a href="TypingStart/index.html">TypingStart</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-UserUpdate"><a href="#module-UserUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="UserUpdate/index.html">UserUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-WebhookUpdate"><a href="#module-WebhookUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="WebhookUpdate/index.html">WebhookUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Unknown"><a href="#module-Unknown" class="anchor"></a><code><span class="keyword">module </span><a href="Unknown/index.html">Unknown</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Guild/index.html b/docs/disml/Disml__/Guild/index.html new file mode 100644 index 0000000..13c60e1 --- /dev/null +++ b/docs/disml/Disml__/Guild/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Guild (disml.Disml__.Guild)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Guild</nav><h1>Module <code>Disml__.Guild</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Guild_t">Disml__.Guild_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-unavailable"><a href="#type-unavailable" class="anchor"></a><code><span class="keyword">type </span>unavailable</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-unavailable.id" class="anchored"><td class="def field"><a href="#type-unavailable.id" class="anchor"></a><code>id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-unavailable_of_sexp"><a href="#val-unavailable_of_sexp" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-unavailable">unavailable</a></code></dt><dt class="spec value" id="val-sexp_of_unavailable"><a href="#val-sexp_of_unavailable" class="anchor"></a><code><span class="keyword">val </span>sexp_of_unavailable : <a href="index.html#type-unavailable">unavailable</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-unavailable_to_yojson"><a href="#val-unavailable_to_yojson" class="anchor"></a><code><span class="keyword">val </span>unavailable_to_yojson : <a href="index.html#type-unavailable">unavailable</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-unavailable_of_yojson"><a href="#val-unavailable_of_yojson" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-unavailable">unavailable</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-unavailable_of_yojson_exn"><a href="#val-unavailable_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-unavailable">unavailable</a></code></dt></dl><dl><dt class="spec type" id="type-pre"><a href="#type-pre" class="anchor"></a><code><span class="keyword">type </span>pre</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-pre.id" class="anchored"><td class="def field"><a href="#type-pre.id" class="anchor"></a><code>id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-pre.name" class="anchored"><td class="def field"><a href="#type-pre.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-pre.icon" class="anchored"><td class="def field"><a href="#type-pre.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-pre.splash" class="anchored"><td class="def field"><a href="#type-pre.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-pre.owner_id" class="anchored"><td class="def field"><a href="#type-pre.owner_id" class="anchor"></a><code>owner_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-pre.region" class="anchored"><td class="def field"><a href="#type-pre.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-pre.afk_channel_id" class="anchored"><td class="def field"><a href="#type-pre.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.afk_timeout" class="anchored"><td class="def field"><a href="#type-pre.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-pre.embed_enabled" class="anchored"><td class="def field"><a href="#type-pre.embed_enabled" class="anchor"></a><code>embed_enabled : bool;</code></td></tr><tr id="type-pre.embed_channel_id" class="anchored"><td class="def field"><a href="#type-pre.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.verification_level" class="anchored"><td class="def field"><a href="#type-pre.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-pre.default_message_notifications" class="anchored"><td class="def field"><a href="#type-pre.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-pre.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-pre.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-pre.roles" class="anchored"><td class="def field"><a href="#type-pre.roles" class="anchor"></a><code>roles : <a href="../Role_t/index.html#type-role">Disml__.Role_t.role</a> list;</code></td></tr><tr id="type-pre.emojis" class="anchored"><td class="def field"><a href="#type-pre.emojis" class="anchor"></a><code>emojis : <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td></tr><tr id="type-pre.features" class="anchored"><td class="def field"><a href="#type-pre.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-pre.mfa_level" class="anchored"><td class="def field"><a href="#type-pre.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-pre.application_id" class="anchored"><td class="def field"><a href="#type-pre.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.widget_enabled" class="anchored"><td class="def field"><a href="#type-pre.widget_enabled" class="anchor"></a><code>widget_enabled : bool;</code></td></tr><tr id="type-pre.widget_channel_id" class="anchored"><td class="def field"><a href="#type-pre.widget_channel_id" class="anchor"></a><code>widget_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.system_channel_id" class="anchored"><td class="def field"><a href="#type-pre.system_channel_id" class="anchor"></a><code>system_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.large" class="anchored"><td class="def field"><a href="#type-pre.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-pre.unavailable" class="anchored"><td class="def field"><a href="#type-pre.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-pre.member_count" class="anchored"><td class="def field"><a href="#type-pre.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-pre.members" class="anchored"><td class="def field"><a href="#type-pre.members" class="anchor"></a><code>members : <a href="../Member_t/index.html#type-member">Disml__.Member_t.member</a> list;</code></td></tr><tr id="type-pre.channels" class="anchored"><td class="def field"><a href="#type-pre.channels" class="anchor"></a><code>channels : <a href="../Channel_t/index.html#type-channel_wrapper">Disml__.Channel_t.channel_wrapper</a> list;</code></td></tr></table><code>}</code></dt><dd><p>Used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-pre_of_sexp"><a href="#val-pre_of_sexp" class="anchor"></a><code><span class="keyword">val </span>pre_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-pre">pre</a></code></dt><dt class="spec value" id="val-sexp_of_pre"><a href="#val-sexp_of_pre" class="anchor"></a><code><span class="keyword">val </span>sexp_of_pre : <a href="index.html#type-pre">pre</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-pre_to_yojson"><a href="#val-pre_to_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_to_yojson : <a href="index.html#type-pre">pre</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-pre_of_yojson"><a href="#val-pre_of_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-pre_of_yojson_exn"><a href="#val-pre_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild's snowflake ID.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The guild name.</p></td></tr><tr id="type-t.icon" class="anchored"><td class="def field"><a href="#type-t.icon" class="anchor"></a><code>icon : string option;</code></td><td class="doc"><p>The guild icon hash, if one is set.</p></td></tr><tr id="type-t.splash" class="anchored"><td class="def field"><a href="#type-t.splash" class="anchor"></a><code>splash : string option;</code></td><td class="doc"><p>The guild splash hash, if one is set.</p></td></tr><tr id="type-t.owner_id" class="anchored"><td class="def field"><a href="#type-t.owner_id" class="anchor"></a><code>owner_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td><td class="doc"><p>The user ID of the owner.</p></td></tr><tr id="type-t.region" class="anchored"><td class="def field"><a href="#type-t.region" class="anchor"></a><code>region : string;</code></td><td class="doc"><p>The region the guild is in.</p></td></tr><tr id="type-t.afk_channel_id" class="anchored"><td class="def field"><a href="#type-t.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The AFK channel ID, if one is set.</p></td></tr><tr id="type-t.afk_timeout" class="anchored"><td class="def field"><a href="#type-t.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td><td class="doc"><p>The time before a user is moved to the AFK channel.</p></td></tr><tr id="type-t.embed_enabled" class="anchored"><td class="def field"><a href="#type-t.embed_enabled" class="anchor"></a><code>embed_enabled : bool;</code></td><td class="doc"><p>Whether the embed is enabled.</p></td></tr><tr id="type-t.embed_channel_id" class="anchored"><td class="def field"><a href="#type-t.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID of the embed channel, if it is enabled.</p></td></tr><tr id="type-t.verification_level" class="anchored"><td class="def field"><a href="#type-t.verification_level" class="anchor"></a><code>verification_level : int;</code></td><td class="doc"><p>See <a href="https://discordapp.com/developers/docs/resources/guild#guild-object-verification-level">the discord docs</a> for details.</p></td></tr><tr id="type-t.default_message_notifications" class="anchored"><td class="def field"><a href="#type-t.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td><td class="doc"><p>0 = All messages, 1 = Only mentions</p></td></tr><tr id="type-t.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-t.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td><td class="doc"><p>0 = Disabled, 1 = For members with no roles, 2 = All members</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> list;</code></td><td class="doc"><p>List of roles in the guild.</p></td></tr><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td><td class="doc"><p>List of custom emojis in the guild.</p></td></tr><tr id="type-t.features" class="anchored"><td class="def field"><a href="#type-t.features" class="anchor"></a><code>features : string list;</code></td><td class="doc"><p>A List of features enabled for the guild.</p></td></tr><tr id="type-t.mfa_level" class="anchored"><td class="def field"><a href="#type-t.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td><td class="doc"><p>0 = None, 1 = Elevated</p></td></tr><tr id="type-t.application_id" class="anchored"><td class="def field"><a href="#type-t.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Snowflake ID if the guild is bot-created.</p></td></tr><tr id="type-t.widget_enabled" class="anchored"><td class="def field"><a href="#type-t.widget_enabled" class="anchor"></a><code>widget_enabled : bool;</code></td><td class="doc"><p>Whether the widget is enabled.</p></td></tr><tr id="type-t.widget_channel_id" class="anchored"><td class="def field"><a href="#type-t.widget_channel_id" class="anchor"></a><code>widget_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID for the widget, if enabled.</p></td></tr><tr id="type-t.system_channel_id" class="anchored"><td class="def field"><a href="#type-t.system_channel_id" class="anchor"></a><code>system_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID where system messages are sent.</p></td></tr><tr id="type-t.large" class="anchored"><td class="def field"><a href="#type-t.large" class="anchor"></a><code>large : bool;</code></td><td class="doc"><p>Whether the guild exceeds the configured large threshold.</p></td></tr><tr id="type-t.unavailable" class="anchored"><td class="def field"><a href="#type-t.unavailable" class="anchor"></a><code>unavailable : bool;</code></td><td class="doc"><p>Whether the guild is unavailable or not.</p></td></tr><tr id="type-t.member_count" class="anchored"><td class="def field"><a href="#type-t.member_count" class="anchor"></a><code>member_count : int option;</code></td><td class="doc"><p>Total number of members in the guild.</p></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> list;</code></td><td class="doc"><p>List of guild members.</p></td></tr><tr id="type-t.channels" class="anchored"><td class="def field"><a href="#type-t.channels" class="anchor"></a><code>channels : <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> list;</code></td><td class="doc"><p>List of guild channels.</p></td></tr></table><code>}</code></dt><dd><p>A Guild object</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-pre">pre</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../S/index.html#module-type-GuildImpl">Disml__.S.GuildImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../S/module-type-GuildImpl/index.html#type-t">t</a> := <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Ban_t/index.html#type-t">Disml__.Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Ban_t/index.html#type-t">Disml__.Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-get_channel"><a href="#val-get_channel" class="anchor"></a><code><span class="keyword">val </span>get_channel : id:<a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Get a channel belonging to this guild. This does not make an HTTP request.</p></dd></dl><dl><dt class="spec value" id="val-get_member"><a href="#val-get_member" class="anchor"></a><code><span class="keyword">val </span>get_member : id:<a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Get a member belonging to this guild. This does not make an HTTP request.</p></dd></dl><dl><dt class="spec value" id="val-get_role"><a href="#val-get_role" class="anchor"></a><code><span class="keyword">val </span>get_role : id:<a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> option</code></dt><dd><p>Get a role belonging to this guild. This does not make an HTTP request.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Guild_id/index.html b/docs/disml/Disml__/Guild_id/index.html new file mode 100644 index 0000000..88ac2aa --- /dev/null +++ b/docs/disml/Disml__/Guild_id/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Guild_id (disml.Disml__.Guild_id)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Guild_id</nav><h1>Module <code>Disml__.Guild_id</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Guild_id_t">Disml__.Guild_id_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Guild_id" class="anchored"><td class="def constructor"><a href="#type-t.Guild_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Guild_id<span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../S/index.html#module-type-GuildImpl">Disml__.S.GuildImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../S/module-type-GuildImpl/index.html#type-t">t</a> := <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Ban_t/index.html#type-t">Disml__.Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Ban_t/index.html#type-t">Disml__.Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Guild_id_t/index.html b/docs/disml/Disml__/Guild_id_t/index.html new file mode 100644 index 0000000..b35e401 --- /dev/null +++ b/docs/disml/Disml__/Guild_id_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Guild_id_t (disml.Disml__.Guild_id_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Guild_id_t</nav><h1>Module <code>Disml__.Guild_id_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Guild_id" class="anchored"><td class="def constructor"><a href="#type-t.Guild_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Guild_id<span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Guild_t/index.html b/docs/disml/Disml__/Guild_t/index.html new file mode 100644 index 0000000..83386d4 --- /dev/null +++ b/docs/disml/Disml__/Guild_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Guild_t (disml.Disml__.Guild_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Guild_t</nav><h1>Module <code>Disml__.Guild_t</code></h1></header><dl><dt class="spec type" id="type-unavailable"><a href="#type-unavailable" class="anchor"></a><code><span class="keyword">type </span>unavailable</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-unavailable.id" class="anchored"><td class="def field"><a href="#type-unavailable.id" class="anchor"></a><code>id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-unavailable_of_sexp"><a href="#val-unavailable_of_sexp" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-unavailable">unavailable</a></code></dt><dt class="spec value" id="val-sexp_of_unavailable"><a href="#val-sexp_of_unavailable" class="anchor"></a><code><span class="keyword">val </span>sexp_of_unavailable : <a href="index.html#type-unavailable">unavailable</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-unavailable_to_yojson"><a href="#val-unavailable_to_yojson" class="anchor"></a><code><span class="keyword">val </span>unavailable_to_yojson : <a href="index.html#type-unavailable">unavailable</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-unavailable_of_yojson"><a href="#val-unavailable_of_yojson" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-unavailable">unavailable</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-unavailable_of_yojson_exn"><a href="#val-unavailable_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-unavailable">unavailable</a></code></dt></dl><dl><dt class="spec type" id="type-pre"><a href="#type-pre" class="anchor"></a><code><span class="keyword">type </span>pre</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-pre.id" class="anchored"><td class="def field"><a href="#type-pre.id" class="anchor"></a><code>id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-pre.name" class="anchored"><td class="def field"><a href="#type-pre.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-pre.icon" class="anchored"><td class="def field"><a href="#type-pre.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-pre.splash" class="anchored"><td class="def field"><a href="#type-pre.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-pre.owner_id" class="anchored"><td class="def field"><a href="#type-pre.owner_id" class="anchor"></a><code>owner_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-pre.region" class="anchored"><td class="def field"><a href="#type-pre.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-pre.afk_channel_id" class="anchored"><td class="def field"><a href="#type-pre.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.afk_timeout" class="anchored"><td class="def field"><a href="#type-pre.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-pre.embed_enabled" class="anchored"><td class="def field"><a href="#type-pre.embed_enabled" class="anchor"></a><code>embed_enabled : bool;</code></td></tr><tr id="type-pre.embed_channel_id" class="anchored"><td class="def field"><a href="#type-pre.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.verification_level" class="anchored"><td class="def field"><a href="#type-pre.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-pre.default_message_notifications" class="anchored"><td class="def field"><a href="#type-pre.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-pre.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-pre.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-pre.roles" class="anchored"><td class="def field"><a href="#type-pre.roles" class="anchor"></a><code>roles : <a href="../Role_t/index.html#type-role">Disml__.Role_t.role</a> list;</code></td></tr><tr id="type-pre.emojis" class="anchored"><td class="def field"><a href="#type-pre.emojis" class="anchor"></a><code>emojis : <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td></tr><tr id="type-pre.features" class="anchored"><td class="def field"><a href="#type-pre.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-pre.mfa_level" class="anchored"><td class="def field"><a href="#type-pre.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-pre.application_id" class="anchored"><td class="def field"><a href="#type-pre.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.widget_enabled" class="anchored"><td class="def field"><a href="#type-pre.widget_enabled" class="anchor"></a><code>widget_enabled : bool;</code></td></tr><tr id="type-pre.widget_channel_id" class="anchored"><td class="def field"><a href="#type-pre.widget_channel_id" class="anchor"></a><code>widget_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.system_channel_id" class="anchored"><td class="def field"><a href="#type-pre.system_channel_id" class="anchor"></a><code>system_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.large" class="anchored"><td class="def field"><a href="#type-pre.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-pre.unavailable" class="anchored"><td class="def field"><a href="#type-pre.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-pre.member_count" class="anchored"><td class="def field"><a href="#type-pre.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-pre.members" class="anchored"><td class="def field"><a href="#type-pre.members" class="anchor"></a><code>members : <a href="../Member_t/index.html#type-member">Disml__.Member_t.member</a> list;</code></td></tr><tr id="type-pre.channels" class="anchored"><td class="def field"><a href="#type-pre.channels" class="anchor"></a><code>channels : <a href="../Channel_t/index.html#type-channel_wrapper">Disml__.Channel_t.channel_wrapper</a> list;</code></td></tr></table><code>}</code></dt><dd><p>Used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-pre_of_sexp"><a href="#val-pre_of_sexp" class="anchor"></a><code><span class="keyword">val </span>pre_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-pre">pre</a></code></dt><dt class="spec value" id="val-sexp_of_pre"><a href="#val-sexp_of_pre" class="anchor"></a><code><span class="keyword">val </span>sexp_of_pre : <a href="index.html#type-pre">pre</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-pre_to_yojson"><a href="#val-pre_to_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_to_yojson : <a href="index.html#type-pre">pre</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-pre_of_yojson"><a href="#val-pre_of_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-pre_of_yojson_exn"><a href="#val-pre_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild's snowflake ID.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The guild name.</p></td></tr><tr id="type-t.icon" class="anchored"><td class="def field"><a href="#type-t.icon" class="anchor"></a><code>icon : string option;</code></td><td class="doc"><p>The guild icon hash, if one is set.</p></td></tr><tr id="type-t.splash" class="anchored"><td class="def field"><a href="#type-t.splash" class="anchor"></a><code>splash : string option;</code></td><td class="doc"><p>The guild splash hash, if one is set.</p></td></tr><tr id="type-t.owner_id" class="anchored"><td class="def field"><a href="#type-t.owner_id" class="anchor"></a><code>owner_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td><td class="doc"><p>The user ID of the owner.</p></td></tr><tr id="type-t.region" class="anchored"><td class="def field"><a href="#type-t.region" class="anchor"></a><code>region : string;</code></td><td class="doc"><p>The region the guild is in.</p></td></tr><tr id="type-t.afk_channel_id" class="anchored"><td class="def field"><a href="#type-t.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The AFK channel ID, if one is set.</p></td></tr><tr id="type-t.afk_timeout" class="anchored"><td class="def field"><a href="#type-t.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td><td class="doc"><p>The time before a user is moved to the AFK channel.</p></td></tr><tr id="type-t.embed_enabled" class="anchored"><td class="def field"><a href="#type-t.embed_enabled" class="anchor"></a><code>embed_enabled : bool;</code></td><td class="doc"><p>Whether the embed is enabled.</p></td></tr><tr id="type-t.embed_channel_id" class="anchored"><td class="def field"><a href="#type-t.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID of the embed channel, if it is enabled.</p></td></tr><tr id="type-t.verification_level" class="anchored"><td class="def field"><a href="#type-t.verification_level" class="anchor"></a><code>verification_level : int;</code></td><td class="doc"><p>See <a href="https://discordapp.com/developers/docs/resources/guild#guild-object-verification-level">the discord docs</a> for details.</p></td></tr><tr id="type-t.default_message_notifications" class="anchored"><td class="def field"><a href="#type-t.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td><td class="doc"><p>0 = All messages, 1 = Only mentions</p></td></tr><tr id="type-t.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-t.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td><td class="doc"><p>0 = Disabled, 1 = For members with no roles, 2 = All members</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> list;</code></td><td class="doc"><p>List of roles in the guild.</p></td></tr><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td><td class="doc"><p>List of custom emojis in the guild.</p></td></tr><tr id="type-t.features" class="anchored"><td class="def field"><a href="#type-t.features" class="anchor"></a><code>features : string list;</code></td><td class="doc"><p>A List of features enabled for the guild.</p></td></tr><tr id="type-t.mfa_level" class="anchored"><td class="def field"><a href="#type-t.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td><td class="doc"><p>0 = None, 1 = Elevated</p></td></tr><tr id="type-t.application_id" class="anchored"><td class="def field"><a href="#type-t.application_id" class="anchor"></a><code>application_id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Snowflake ID if the guild is bot-created.</p></td></tr><tr id="type-t.widget_enabled" class="anchored"><td class="def field"><a href="#type-t.widget_enabled" class="anchor"></a><code>widget_enabled : bool;</code></td><td class="doc"><p>Whether the widget is enabled.</p></td></tr><tr id="type-t.widget_channel_id" class="anchored"><td class="def field"><a href="#type-t.widget_channel_id" class="anchor"></a><code>widget_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID for the widget, if enabled.</p></td></tr><tr id="type-t.system_channel_id" class="anchored"><td class="def field"><a href="#type-t.system_channel_id" class="anchor"></a><code>system_channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID where system messages are sent.</p></td></tr><tr id="type-t.large" class="anchored"><td class="def field"><a href="#type-t.large" class="anchor"></a><code>large : bool;</code></td><td class="doc"><p>Whether the guild exceeds the configured large threshold.</p></td></tr><tr id="type-t.unavailable" class="anchored"><td class="def field"><a href="#type-t.unavailable" class="anchor"></a><code>unavailable : bool;</code></td><td class="doc"><p>Whether the guild is unavailable or not.</p></td></tr><tr id="type-t.member_count" class="anchored"><td class="def field"><a href="#type-t.member_count" class="anchor"></a><code>member_count : int option;</code></td><td class="doc"><p>Total number of members in the guild.</p></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> list;</code></td><td class="doc"><p>List of guild members.</p></td></tr><tr id="type-t.channels" class="anchored"><td class="def field"><a href="#type-t.channels" class="anchor"></a><code>channels : <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> list;</code></td><td class="doc"><p>List of guild channels.</p></td></tr></table><code>}</code></dt><dd><p>A Guild object</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-pre">pre</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Http/Base/index.html b/docs/disml/Disml__/Http/Base/index.html new file mode 100644 index 0000000..10a6df1 --- /dev/null +++ b/docs/disml/Disml__/Http/Base/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Base (disml.Disml__.Http.Base)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Http</a> » Base</nav><h1>Module <code>Http.Base</code></h1></header><dl><dt class="spec exception" id="exception-Invalid_Method"><a href="#exception-Invalid_Method" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_Method</span></code></dt></dl><dl><dt class="spec value" id="val-base_url"><a href="#val-base_url" class="anchor"></a><code><span class="keyword">val </span>base_url : string</code></dt><dt class="spec value" id="val-process_url"><a href="#val-process_url" class="anchor"></a><code><span class="keyword">val </span>process_url : string <span>-></span> Uri.t</code></dt><dt class="spec value" id="val-process_request_body"><a href="#val-process_request_body" class="anchor"></a><code><span class="keyword">val </span>process_request_body : Yojson.Safe.json <span>-></span> Cohttp_async.Body.t</code></dt><dt class="spec value" id="val-process_request_headers"><a href="#val-process_request_headers" class="anchor"></a><code><span class="keyword">val </span>process_request_headers : unit <span>-></span> Cohttp.Header.t</code></dt><dt class="spec value" id="val-process_response"><a href="#val-process_response" class="anchor"></a><code><span class="keyword">val </span>process_response : string <span>-></span> (Cohttp_async.Response.t<span class="keyword"> * </span>Cohttp_async.Body.t) <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request"><a href="#val-request" class="anchor"></a><code><span class="keyword">val </span>request : ?⁠body:Yojson.Safe.json <span>-></span> ?⁠query:(string<span class="keyword"> * </span>string) list <span>-></span> [> `DELETE<span class="keyword"> | </span>`GET<span class="keyword"> | </span>`PATCH<span class="keyword"> | </span>`POST<span class="keyword"> | </span>`PUT ] <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Http/index.html b/docs/disml/Disml__/Http/index.html new file mode 100644 index 0000000..6ade635 --- /dev/null +++ b/docs/disml/Disml__/Http/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Http (disml.Disml__.Http)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Http</nav><h1>Module <code>Disml__.Http</code></h1></header><div class="spec module" id="module-Base"><a href="#module-Base" class="anchor"></a><code><span class="keyword">module </span><a href="Base/index.html">Base</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-get_gateway"><a href="#val-get_gateway" class="anchor"></a><code><span class="keyword">val </span>get_gateway : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_gateway_bot"><a href="#val-get_gateway_bot" class="anchor"></a><code><span class="keyword">val </span>get_gateway_bot : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel"><a href="#val-get_channel" class="anchor"></a><code><span class="keyword">val </span>get_channel : int <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_channel"><a href="#val-modify_channel" class="anchor"></a><code><span class="keyword">val </span>modify_channel : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel"><a href="#val-delete_channel" class="anchor"></a><code><span class="keyword">val </span>delete_channel : int <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : int <span>-></span> int <span>-></span> (string<span class="keyword"> * </span>int) <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : int <span>-></span> int <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_message"><a href="#val-create_message" class="anchor"></a><code><span class="keyword">val </span>create_message : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_reaction"><a href="#val-create_reaction" class="anchor"></a><code><span class="keyword">val </span>create_reaction : int <span>-></span> int <span>-></span> string <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_own_reaction"><a href="#val-delete_own_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_own_reaction : int <span>-></span> int <span>-></span> string <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reaction"><a href="#val-delete_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_reaction : int <span>-></span> int <span>-></span> string <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_reactions"><a href="#val-get_reactions" class="anchor"></a><code><span class="keyword">val </span>get_reactions : int <span>-></span> int <span>-></span> string <span>-></span> <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reactions"><a href="#val-delete_reactions" class="anchor"></a><code><span class="keyword">val </span>delete_reactions : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_message"><a href="#val-edit_message" class="anchor"></a><code><span class="keyword">val </span>edit_message : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_message"><a href="#val-delete_message" class="anchor"></a><code><span class="keyword">val </span>delete_message : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-bulk_delete"><a href="#val-bulk_delete" class="anchor"></a><code><span class="keyword">val </span>bulk_delete : int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_channel_permissions"><a href="#val-edit_channel_permissions" class="anchor"></a><code><span class="keyword">val </span>edit_channel_permissions : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_invites"><a href="#val-get_channel_invites" class="anchor"></a><code><span class="keyword">val </span>get_channel_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel_invite"><a href="#val-create_channel_invite" class="anchor"></a><code><span class="keyword">val </span>create_channel_invite : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel_permission"><a href="#val-delete_channel_permission" class="anchor"></a><code><span class="keyword">val </span>delete_channel_permission : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pinned_messages"><a href="#val-get_pinned_messages" class="anchor"></a><code><span class="keyword">val </span>get_pinned_messages : int <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-pin_message"><a href="#val-pin_message" class="anchor"></a><code><span class="keyword">val </span>pin_message : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unpin_message"><a href="#val-unpin_message" class="anchor"></a><code><span class="keyword">val </span>unpin_message : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_add"><a href="#val-group_recipient_add" class="anchor"></a><code><span class="keyword">val </span>group_recipient_add : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_remove"><a href="#val-group_recipient_remove" class="anchor"></a><code><span class="keyword">val </span>group_recipient_remove : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emojis"><a href="#val-get_emojis" class="anchor"></a><code><span class="keyword">val </span>get_emojis : int <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : int <span>-></span> int <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_emoji"><a href="#val-edit_emoji" class="anchor"></a><code><span class="keyword">val </span>edit_emoji : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_emoji"><a href="#val-delete_emoji" class="anchor"></a><code><span class="keyword">val </span>delete_emoji : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild"><a href="#val-create_guild" class="anchor"></a><code><span class="keyword">val </span>create_guild : Yojson.Safe.json <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild"><a href="#val-get_guild" class="anchor"></a><code><span class="keyword">val </span>get_guild : int <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild"><a href="#val-edit_guild" class="anchor"></a><code><span class="keyword">val </span>edit_guild : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_guild"><a href="#val-delete_guild" class="anchor"></a><code><span class="keyword">val </span>delete_guild : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_channels"><a href="#val-get_guild_channels" class="anchor"></a><code><span class="keyword">val </span>get_guild_channels : int <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild_channel"><a href="#val-create_guild_channel" class="anchor"></a><code><span class="keyword">val </span>create_guild_channel : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_guild_channel_positions"><a href="#val-modify_guild_channel_positions" class="anchor"></a><code><span class="keyword">val </span>modify_guild_channel_positions : int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_member"><a href="#val-get_member" class="anchor"></a><code><span class="keyword">val </span>get_member : int <span>-></span> int <span>-></span> <a href="../Member/index.html#type-t">Disml__.Member.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_members"><a href="#val-get_members" class="anchor"></a><code><span class="keyword">val </span>get_members : int <span>-></span> <a href="../Member/index.html#type-t">Disml__.Member.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member"><a href="#val-add_member" class="anchor"></a><code><span class="keyword">val </span>add_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Member/index.html#type-t">Disml__.Member.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_member"><a href="#val-edit_member" class="anchor"></a><code><span class="keyword">val </span>edit_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member"><a href="#val-remove_member" class="anchor"></a><code><span class="keyword">val </span>remove_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-change_nickname"><a href="#val-change_nickname" class="anchor"></a><code><span class="keyword">val </span>change_nickname : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member_role"><a href="#val-add_member_role" class="anchor"></a><code><span class="keyword">val </span>add_member_role : int <span>-></span> int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member_role"><a href="#val-remove_member_role" class="anchor"></a><code><span class="keyword">val </span>remove_member_role : int <span>-></span> int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : int <span>-></span> <a href="../Ban/index.html#type-t">Disml__.Ban.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : int <span>-></span> int <span>-></span> <a href="../Ban/index.html#type-t">Disml__.Ban.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_add"><a href="#val-guild_ban_add" class="anchor"></a><code><span class="keyword">val </span>guild_ban_add : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_remove"><a href="#val-guild_ban_remove" class="anchor"></a><code><span class="keyword">val </span>guild_ban_remove : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_roles"><a href="#val-get_roles" class="anchor"></a><code><span class="keyword">val </span>get_roles : int <span>-></span> <a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_add"><a href="#val-guild_role_add" class="anchor"></a><code><span class="keyword">val </span>guild_role_add : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_roles_edit"><a href="#val-guild_roles_edit" class="anchor"></a><code><span class="keyword">val </span>guild_roles_edit : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_edit"><a href="#val-guild_role_edit" class="anchor"></a><code><span class="keyword">val </span>guild_role_edit : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_remove"><a href="#val-guild_role_remove" class="anchor"></a><code><span class="keyword">val </span>guild_role_remove : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_count"><a href="#val-guild_prune_count" class="anchor"></a><code><span class="keyword">val </span>guild_prune_count : int <span>-></span> int <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_start"><a href="#val-guild_prune_start" class="anchor"></a><code><span class="keyword">val </span>guild_prune_start : int <span>-></span> int <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_voice_regions"><a href="#val-get_guild_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_guild_voice_regions : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_invites"><a href="#val-get_guild_invites" class="anchor"></a><code><span class="keyword">val </span>get_guild_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_integrations"><a href="#val-get_integrations" class="anchor"></a><code><span class="keyword">val </span>get_integrations : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_integration"><a href="#val-add_integration" class="anchor"></a><code><span class="keyword">val </span>add_integration : int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_integration"><a href="#val-edit_integration" class="anchor"></a><code><span class="keyword">val </span>edit_integration : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_integration"><a href="#val-delete_integration" class="anchor"></a><code><span class="keyword">val </span>delete_integration : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-sync_integration"><a href="#val-sync_integration" class="anchor"></a><code><span class="keyword">val </span>sync_integration : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_embed"><a href="#val-get_guild_embed" class="anchor"></a><code><span class="keyword">val </span>get_guild_embed : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild_embed"><a href="#val-edit_guild_embed" class="anchor"></a><code><span class="keyword">val </span>edit_guild_embed : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_vanity_url"><a href="#val-get_vanity_url" class="anchor"></a><code><span class="keyword">val </span>get_vanity_url : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invite"><a href="#val-get_invite" class="anchor"></a><code><span class="keyword">val </span>get_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_invite"><a href="#val-delete_invite" class="anchor"></a><code><span class="keyword">val </span>delete_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_current_user"><a href="#val-get_current_user" class="anchor"></a><code><span class="keyword">val </span>get_current_user : unit <span>-></span> <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_current_user"><a href="#val-edit_current_user" class="anchor"></a><code><span class="keyword">val </span>edit_current_user : Yojson.Safe.json <span>-></span> <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guilds"><a href="#val-get_guilds" class="anchor"></a><code><span class="keyword">val </span>get_guilds : unit <span>-></span> <a href="../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave_guild"><a href="#val-leave_guild" class="anchor"></a><code><span class="keyword">val </span>leave_guild : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_private_channels"><a href="#val-get_private_channels" class="anchor"></a><code><span class="keyword">val </span>get_private_channels : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_dm"><a href="#val-create_dm" class="anchor"></a><code><span class="keyword">val </span>create_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_group_dm"><a href="#val-create_group_dm" class="anchor"></a><code><span class="keyword">val </span>create_group_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_connections"><a href="#val-get_connections" class="anchor"></a><code><span class="keyword">val </span>get_connections : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_user"><a href="#val-get_user" class="anchor"></a><code><span class="keyword">val </span>get_user : int <span>-></span> <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_voice_regions"><a href="#val-get_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_voice_regions : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_webhook"><a href="#val-create_webhook" class="anchor"></a><code><span class="keyword">val </span>create_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_webhooks"><a href="#val-get_channel_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_channel_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_webhooks"><a href="#val-get_guild_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_guild_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook"><a href="#val-get_webhook" class="anchor"></a><code><span class="keyword">val </span>get_webhook : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook_with_token"><a href="#val-get_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>get_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook"><a href="#val-edit_webhook" class="anchor"></a><code><span class="keyword">val </span>edit_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook_with_token"><a href="#val-edit_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>edit_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook"><a href="#val-delete_webhook" class="anchor"></a><code><span class="keyword">val </span>delete_webhook : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook_with_token"><a href="#val-delete_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>delete_webhook_with_token : int <span>-></span> string <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_webhook"><a href="#val-execute_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_slack_webhook"><a href="#val-execute_slack_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_slack_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_git_webhook"><a href="#val-execute_git_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_git_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_audit_logs"><a href="#val-get_audit_logs" class="anchor"></a><code><span class="keyword">val </span>get_audit_logs : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_application_info"><a href="#val-get_application_info" class="anchor"></a><code><span class="keyword">val </span>get_application_info : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Impl/Channel/argument-1-T/index.html b/docs/disml/Disml__/Impl/Channel/argument-1-T/index.html new file mode 100644 index 0000000..46485b1 --- /dev/null +++ b/docs/disml/Disml__/Impl/Channel/argument-1-T/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-T (disml.Disml__.Impl.Channel.1-T)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml__</a> » <a href="../../index.html">Impl</a> » <a href="../index.html">Channel</a> » 1-T</nav><h1>Parameter <code>Channel.1-T</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Impl/Channel/index.html b/docs/disml/Disml__/Impl/Channel/index.html new file mode 100644 index 0000000..b9effaf --- /dev/null +++ b/docs/disml/Disml__/Impl/Channel/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Channel (disml.Disml__.Impl.Channel)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Impl</a> » Channel</nav><h1>Module <code>Impl.Channel</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-T/index.html">T</a> : <a href="../../S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../../Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <a href="index.html#exception-Invalid_message"><code>Invalid_message</code></a> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!hello" msg.content then
+ let embed = Embed.(default |> title "Hello World!") in
+ Channel_id.send_message ~embed msg.channel_id >>> ignore
+
+ Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p><code>say str ch</code> is equivalent to <code>send_message ~content:str ch</code>.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Impl/Guild/argument-1-T/index.html b/docs/disml/Disml__/Impl/Guild/argument-1-T/index.html new file mode 100644 index 0000000..cdff3b0 --- /dev/null +++ b/docs/disml/Disml__/Impl/Guild/argument-1-T/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-T (disml.Disml__.Impl.Guild.1-T)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml__</a> » <a href="../../index.html">Impl</a> » <a href="../index.html">Guild</a> » 1-T</nav><h1>Parameter <code>Guild.1-T</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Impl/Guild/index.html b/docs/disml/Disml__/Impl/Guild/index.html new file mode 100644 index 0000000..ea4f168 --- /dev/null +++ b/docs/disml/Disml__/Impl/Guild/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Guild (disml.Disml__.Impl.Guild)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Impl</a> » Guild</nav><h1>Module <code>Impl.Guild</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-T/index.html">T</a> : <a href="../../S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Ban_t/index.html#type-t">Disml__.Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Ban_t/index.html#type-t">Disml__.Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Member_t/index.html#type-t">Disml__.Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Impl/User/argument-1-T/index.html b/docs/disml/Disml__/Impl/User/argument-1-T/index.html new file mode 100644 index 0000000..7661077 --- /dev/null +++ b/docs/disml/Disml__/Impl/User/argument-1-T/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-T (disml.Disml__.Impl.User.1-T)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml__</a> » <a href="../../index.html">Impl</a> » <a href="../index.html">User</a> » 1-T</nav><h1>Parameter <code>User.1-T</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Impl/User/index.html b/docs/disml/Disml__/Impl/User/index.html new file mode 100644 index 0000000..586823c --- /dev/null +++ b/docs/disml/Disml__/Impl/User/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>User (disml.Disml__.Impl.User)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Impl</a> » User</nav><h1>Module <code>Impl.User</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-T/index.html">T</a> : <a href="../../S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Impl/index.html b/docs/disml/Disml__/Impl/index.html new file mode 100644 index 0000000..9df75c2 --- /dev/null +++ b/docs/disml/Disml__/Impl/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Impl (disml.Disml__.Impl)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Impl</nav><h1>Module <code>Disml__.Impl</code></h1></header><div class="spec module" id="module-Channel"><a href="#module-Channel" class="anchor"></a><code><span class="keyword">module </span><a href="Channel/index.html">Channel</a> : <span class="keyword">functor</span> (<a href="Channel/argument-1-T/index.html">T</a> : <a href="../S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a>) <span>-></span> <a href="../S/index.html#module-type-ChannelImpl">Disml__.S.ChannelImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="Channel/index.html#type-t">t</a> := <a href="Channel/argument-1-T/index.html#type-t">T.t</a></code></div><div class="spec module" id="module-Guild"><a href="#module-Guild" class="anchor"></a><code><span class="keyword">module </span><a href="Guild/index.html">Guild</a> : <span class="keyword">functor</span> (<a href="Guild/argument-1-T/index.html">T</a> : <a href="../S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a>) <span>-></span> <a href="../S/index.html#module-type-GuildImpl">Disml__.S.GuildImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="Guild/index.html#type-t">t</a> := <a href="Guild/argument-1-T/index.html#type-t">T.t</a></code></div><div class="spec module" id="module-User"><a href="#module-User" class="anchor"></a><code><span class="keyword">module </span><a href="User/index.html">User</a> : <span class="keyword">functor</span> (<a href="User/argument-1-T/index.html">T</a> : <a href="../S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a>) <span>-></span> <a href="../S/index.html#module-type-UserImpl">Disml__.S.UserImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="User/index.html#type-t">t</a> := <a href="User/argument-1-T/index.html#type-t">T.t</a></code></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Member/index.html b/docs/disml/Disml__/Member/index.html new file mode 100644 index 0000000..81b8e4d --- /dev/null +++ b/docs/disml/Disml__/Member/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Member (disml.Disml__.Member)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Member</nav><h1>Module <code>Disml__.Member</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Member_t">Disml__.Member_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td><td class="doc"><p>The nickname of the member, if they have one set.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>The roles the member has.</p></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td><td class="doc"><p>An ISO8601 timestamp of when the user joined.</p></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td><td class="doc"><p>Whether the user is deafened.</p></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td><td class="doc"><p>Whether the user is muted.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The underlying user object for the member.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which the member exists.</p></td></tr></table><code>}</code></dt><dd><p>A member object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-add_role"><a href="#val-add_role" class="anchor"></a><code><span class="keyword">val </span>add_role : role:<a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> <span>-></span> <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Adds a role to the member.</p></dd></dl><dl><dt class="spec value" id="val-remove_role"><a href="#val-remove_role" class="anchor"></a><code><span class="keyword">val </span>remove_role : role:<a href="../Role_t/index.html#type-t">Disml__.Role_t.t</a> <span>-></span> <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Removes a role from the member.</p></dd></dl><dl><dt class="spec value" id="val-ban"><a href="#val-ban" class="anchor"></a><code><span class="keyword">val </span>ban : ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Bans the member with optional reason and days of messages to delete.</p></dd></dl><dl><dt class="spec value" id="val-kick"><a href="#val-kick" class="anchor"></a><code><span class="keyword">val </span>kick : ?⁠reason:string <span>-></span> <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Kicks the member with the optional reason.</p></dd></dl><dl><dt class="spec value" id="val-mute"><a href="#val-mute" class="anchor"></a><code><span class="keyword">val </span>mute : <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Mutes the member, preventing them from speaking in voice chats.</p></dd></dl><dl><dt class="spec value" id="val-deafen"><a href="#val-deafen" class="anchor"></a><code><span class="keyword">val </span>deafen : <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Deafens the member, preventing them from hearing others in voice chats.</p></dd></dl><dl><dt class="spec value" id="val-unmute"><a href="#val-unmute" class="anchor"></a><code><span class="keyword">val </span>unmute : <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Opposite of <a href="index.html#type-partial_member.mute"><code>mute</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-undeafen"><a href="#val-undeafen" class="anchor"></a><code><span class="keyword">val </span>undeafen : <a href="../Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Opposite of <a href="index.html#val-deafen"><code>deafen</code></a>.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Member_t/index.html b/docs/disml/Disml__/Member_t/index.html new file mode 100644 index 0000000..89e4e7d --- /dev/null +++ b/docs/disml/Disml__/Member_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Member_t (disml.Disml__.Member_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Member_t</nav><h1>Module <code>Disml__.Member_t</code></h1></header><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td><td class="doc"><p>The nickname of the member, if they have one set.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>The roles the member has.</p></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td><td class="doc"><p>An ISO8601 timestamp of when the user joined.</p></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td><td class="doc"><p>Whether the user is deafened.</p></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td><td class="doc"><p>Whether the user is muted.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The underlying user object for the member.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which the member exists.</p></td></tr></table><code>}</code></dt><dd><p>A member object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Message/index.html b/docs/disml/Disml__/Message/index.html new file mode 100644 index 0000000..b56fe33 --- /dev/null +++ b/docs/disml/Disml__/Message/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Message (disml.Disml__.Message)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Message</nav><h1>Module <code>Disml__.Message</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Message_t">Disml__.Message_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td><td class="doc"><p>Snowflake ID of the message.</p></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>User that authored the message.</p></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td><td class="doc"><p>Channel ID the message exists in.</p></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../Member_t/index.html#type-partial_member">Disml__.Member_t.partial_member</a> option;</code></td><td class="doc"><p>A partial member if the message was sent in a guild.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td><td class="doc"><p>Guild ID if the message was sent in a guild.</p></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string;</code></td><td class="doc"><p>Content of the message.</p></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string;</code></td><td class="doc"><p>ISO8601 timestamp of when the message was created.</p></td></tr><tr id="type-t.edited_timestamp" class="anchored"><td class="def field"><a href="#type-t.edited_timestamp" class="anchor"></a><code>edited_timestamp : string option;</code></td><td class="doc"><p>Like timestamp, but for last edit, if any.</p></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool;</code></td><td class="doc"><p>Whether the message used text-to-speech.</p></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool;</code></td><td class="doc"><p>Whether the message mentioned <code>@everyone</code> or <code>@here</code></p></td></tr><tr id="type-t.mentions" class="anchored"><td class="def field"><a href="#type-t.mentions" class="anchor"></a><code>mentions : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> list;</code></td><td class="doc"><p>A List of users that were mentioned in the message.</p></td></tr><tr id="type-t.mention_roles" class="anchored"><td class="def field"><a href="#type-t.mention_roles" class="anchor"></a><code>mention_roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>A list of roles that were mentioned in the message.</p></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../Attachment/index.html#type-t">Disml__.Attachment.t</a> list;</code></td><td class="doc"><p>A list of attachments.</p></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../Embed/index.html#type-t">Disml__.Embed.t</a> list;</code></td><td class="doc"><p>A List of embeds on the message.</p></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> list;</code></td><td class="doc"><p>A list of reactions.</p></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Used in verification, safe to ignore.</p></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool;</code></td><td class="doc"><p>Whether the message is pinned.</p></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>The webhook ID, if the message was sent by a webhook.</p></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td><td class="doc"><p>See <a href="https://discordapp.com/developers/docs/resources/channel#message-object-message-types">the discord docs</a> for message type enumeration.</p></td></tr></table><code>}</code></dt><dd><p>Represents a message object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-add_reaction"><a href="#val-add_reaction" class="anchor"></a><code><span class="keyword">val </span>add_reaction : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Add the given emoji as a reaction.</p></dd></dl><dl><dt class="spec value" id="val-remove_reaction"><a href="#val-remove_reaction" class="anchor"></a><code><span class="keyword">val </span>remove_reaction : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a> <span>-></span> <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Remove the reaction. Must also specify the user.</p></dd></dl><dl><dt class="spec value" id="val-clear_reactions"><a href="#val-clear_reactions" class="anchor"></a><code><span class="keyword">val </span>clear_reactions : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Remove all reactions from the message.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Delete the message.</p></dd></dl><dl><dt class="spec value" id="val-pin"><a href="#val-pin" class="anchor"></a><code><span class="keyword">val </span>pin : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Pin the message.</p></dd></dl><dl><dt class="spec value" id="val-unpin"><a href="#val-unpin" class="anchor"></a><code><span class="keyword">val </span>unpin : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Unping the message.</p></dd></dl><dl><dt class="spec value" id="val-reply"><a href="#val-reply" class="anchor"></a><code><span class="keyword">val </span>reply : <a href="index.html#type-t">t</a> <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Sugar for <code>Channel_id.say msg.channel_id content</code>.</p></dd></dl><dl><dt class="spec value" id="val-reply_with"><a href="#val-reply_with" class="anchor"></a><code><span class="keyword">val </span>reply_with : ?⁠embed:<a href="../Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Sugar for <code>Channel_id.send_message ?embed ?content ?file ?tts msg.channel_id</code>.</p></dd></dl><dl><dt class="spec value" id="val-set_content"><a href="#val-set_content" class="anchor"></a><code><span class="keyword">val </span>set_content : <a href="index.html#type-t">t</a> <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Set the content of the message.</p></dd></dl><dl><dt class="spec value" id="val-set_embed"><a href="#val-set_embed" class="anchor"></a><code><span class="keyword">val </span>set_embed : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Set the embed of the message.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Message_id/index.html b/docs/disml/Disml__/Message_id/index.html new file mode 100644 index 0000000..4e406eb --- /dev/null +++ b/docs/disml/Disml__/Message_id/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Message_id (disml.Disml__.Message_id)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Message_id</nav><h1>Module <code>Disml__.Message_id</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Message_id" class="anchored"><td class="def constructor"><a href="#type-t.Message_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Message_id<span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Message_t/index.html b/docs/disml/Disml__/Message_t/index.html new file mode 100644 index 0000000..c78dd27 --- /dev/null +++ b/docs/disml/Disml__/Message_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Message_t (disml.Disml__.Message_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Message_t</nav><h1>Module <code>Disml__.Message_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td><td class="doc"><p>Snowflake ID of the message.</p></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>User that authored the message.</p></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td><td class="doc"><p>Channel ID the message exists in.</p></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../Member_t/index.html#type-partial_member">Disml__.Member_t.partial_member</a> option;</code></td><td class="doc"><p>A partial member if the message was sent in a guild.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td><td class="doc"><p>Guild ID if the message was sent in a guild.</p></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string;</code></td><td class="doc"><p>Content of the message.</p></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string;</code></td><td class="doc"><p>ISO8601 timestamp of when the message was created.</p></td></tr><tr id="type-t.edited_timestamp" class="anchored"><td class="def field"><a href="#type-t.edited_timestamp" class="anchor"></a><code>edited_timestamp : string option;</code></td><td class="doc"><p>Like timestamp, but for last edit, if any.</p></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool;</code></td><td class="doc"><p>Whether the message used text-to-speech.</p></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool;</code></td><td class="doc"><p>Whether the message mentioned <code>@everyone</code> or <code>@here</code></p></td></tr><tr id="type-t.mentions" class="anchored"><td class="def field"><a href="#type-t.mentions" class="anchor"></a><code>mentions : <a href="../User_t/index.html#type-t">Disml__.User_t.t</a> list;</code></td><td class="doc"><p>A List of users that were mentioned in the message.</p></td></tr><tr id="type-t.mention_roles" class="anchored"><td class="def field"><a href="#type-t.mention_roles" class="anchor"></a><code>mention_roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>A list of roles that were mentioned in the message.</p></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../Attachment/index.html#type-t">Disml__.Attachment.t</a> list;</code></td><td class="doc"><p>A list of attachments.</p></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../Embed/index.html#type-t">Disml__.Embed.t</a> list;</code></td><td class="doc"><p>A List of embeds on the message.</p></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> list;</code></td><td class="doc"><p>A list of reactions.</p></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Used in verification, safe to ignore.</p></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool;</code></td><td class="doc"><p>Whether the message is pinned.</p></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>The webhook ID, if the message was sent by a webhook.</p></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td><td class="doc"><p>See <a href="https://discordapp.com/developers/docs/resources/channel#message-object-message-types">the discord docs</a> for message type enumeration.</p></td></tr></table><code>}</code></dt><dd><p>Represents a message object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Opcode/index.html b/docs/disml/Disml__/Opcode/index.html new file mode 100644 index 0000000..c1b2f02 --- /dev/null +++ b/docs/disml/Disml__/Opcode/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Opcode (disml.Disml__.Opcode)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Opcode</nav><h1>Module <code>Disml__.Opcode</code></h1></header><aside><p>Internal Opcode abstractions.</p></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.DISPATCH" class="anchored"><td class="def constructor"><a href="#type-t.DISPATCH" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">DISPATCH</span></code></td></tr><tr id="type-t.HEARTBEAT" class="anchored"><td class="def constructor"><a href="#type-t.HEARTBEAT" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">HEARTBEAT</span></code></td></tr><tr id="type-t.IDENTIFY" class="anchored"><td class="def constructor"><a href="#type-t.IDENTIFY" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">IDENTIFY</span></code></td></tr><tr id="type-t.STATUS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.STATUS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">STATUS_UPDATE</span></code></td></tr><tr id="type-t.VOICE_STATE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.VOICE_STATE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">VOICE_STATE_UPDATE</span></code></td></tr><tr id="type-t.RESUME" class="anchored"><td class="def constructor"><a href="#type-t.RESUME" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">RESUME</span></code></td></tr><tr id="type-t.RECONNECT" class="anchored"><td class="def constructor"><a href="#type-t.RECONNECT" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">RECONNECT</span></code></td></tr><tr id="type-t.REQUEST_GUILD_MEMBERS" class="anchored"><td class="def constructor"><a href="#type-t.REQUEST_GUILD_MEMBERS" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">REQUEST_GUILD_MEMBERS</span></code></td></tr><tr id="type-t.INVALID_SESSION" class="anchored"><td class="def constructor"><a href="#type-t.INVALID_SESSION" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">INVALID_SESSION</span></code></td></tr><tr id="type-t.HELLO" class="anchored"><td class="def constructor"><a href="#type-t.HELLO" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">HELLO</span></code></td></tr><tr id="type-t.HEARTBEAT_ACK" class="anchored"><td class="def constructor"><a href="#type-t.HEARTBEAT_ACK" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">HEARTBEAT_ACK</span></code></td></tr></table></dt><dd><p>Type of known opcodes.</p></dd></dl><dl><dt class="spec exception" id="exception-Invalid_Opcode"><a href="#exception-Invalid_Opcode" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_Opcode</span><span class="keyword"> of </span>int</code></dt><dd><p>Raised when receiving an invalid opcode. This should never occur.</p></dd></dl><dl><dt class="spec value" id="val-to_int"><a href="#val-to_int" class="anchor"></a><code><span class="keyword">val </span>to_int : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><p>Converts an opcode to its integer form for outgoing frames.</p></dd></dl><dl><dt class="spec value" id="val-from_int"><a href="#val-from_int" class="anchor"></a><code><span class="keyword">val </span>from_int : int <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Converts an integer to an opcode for incoming frames. Raise <a href="index.html#exception-Invalid_Opcode"><code>Invalid_Opcode</code></a> Raised when an unkown opcode is received.</p></dd></dl><dl><dt class="spec value" id="val-to_string"><a href="#val-to_string" class="anchor"></a><code><span class="keyword">val </span>to_string : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>Converts and opcode to a human-readable string. Used for logging purposes.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Presence/index.html b/docs/disml/Disml__/Presence/index.html new file mode 100644 index 0000000..176f478 --- /dev/null +++ b/docs/disml/Disml__/Presence/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Presence (disml.Disml__.Presence)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Presence</nav><h1>Module <code>Disml__.Presence</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../User_t/index.html#type-partial_user">Disml__.User_t.partial_user</a>;</code></td><td class="doc"><p>A partial user that this presence belongs to.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>A list of roles that the user has.</p></td></tr><tr id="type-t.game" class="anchored"><td class="def field"><a href="#type-t.game" class="anchor"></a><code>game : <a href="../Activity/index.html#type-t">Disml__.Activity.t</a> option;</code></td><td class="doc"><p>The current activity of the user, if any.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which this presence exists.</p></td></tr><tr id="type-t.status" class="anchored"><td class="def field"><a href="#type-t.status" class="anchor"></a><code>status : string;</code></td><td class="doc"><p>One of <code>online</code>, <code>idle</code>, <code>offline</code>, or <code>dnd</code>.</p></td></tr><tr id="type-t.activities" class="anchored"><td class="def field"><a href="#type-t.activities" class="anchor"></a><code>activities : <a href="../Activity/index.html#type-t">Disml__.Activity.t</a> list;</code></td><td class="doc"><p>A list of all of the user's current activities.</p></td></tr></table><code>}</code></dt><dd><p>A user presence.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Reaction/index.html b/docs/disml/Disml__/Reaction/index.html new file mode 100644 index 0000000..e1393bf --- /dev/null +++ b/docs/disml/Disml__/Reaction/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Reaction (disml.Disml__.Reaction)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Reaction</nav><h1>Module <code>Disml__.Reaction</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Reaction_t">Disml__.Reaction_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-reaction_event"><a href="#type-reaction_event" class="anchor"></a><code><span class="keyword">type </span>reaction_event</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-reaction_event.user_id" class="anchored"><td class="def field"><a href="#type-reaction_event.user_id" class="anchor"></a><code>user_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-reaction_event.channel_id" class="anchored"><td class="def field"><a href="#type-reaction_event.channel_id" class="anchor"></a><code>channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-reaction_event.message_id" class="anchored"><td class="def field"><a href="#type-reaction_event.message_id" class="anchor"></a><code>message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-reaction_event.guild_id" class="anchored"><td class="def field"><a href="#type-reaction_event.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-reaction_event.emoji" class="anchored"><td class="def field"><a href="#type-reaction_event.emoji" class="anchor"></a><code>emoji : <a href="../Emoji/index.html#type-partial_emoji">Disml__.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt><dd><p>Represents a single reaction as received over the gateway.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-reaction_event_of_sexp"><a href="#val-reaction_event_of_sexp" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt><dt class="spec value" id="val-sexp_of_reaction_event"><a href="#val-sexp_of_reaction_event" class="anchor"></a><code><span class="keyword">val </span>sexp_of_reaction_event : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-reaction_event_to_yojson"><a href="#val-reaction_event_to_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_to_yojson : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-reaction_event_of_yojson"><a href="#val-reaction_event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-reaction_event_of_yojson_exn"><a href="#val-reaction_event_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.count" class="anchored"><td class="def field"><a href="#type-t.count" class="anchor"></a><code>count : int;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>Represents a number of emojis used as a reaction on a message.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Reaction_t/index.html b/docs/disml/Disml__/Reaction_t/index.html new file mode 100644 index 0000000..676a724 --- /dev/null +++ b/docs/disml/Disml__/Reaction_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Reaction_t (disml.Disml__.Reaction_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Reaction_t</nav><h1>Module <code>Disml__.Reaction_t</code></h1></header><dl><dt class="spec type" id="type-reaction_event"><a href="#type-reaction_event" class="anchor"></a><code><span class="keyword">type </span>reaction_event</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-reaction_event.user_id" class="anchored"><td class="def field"><a href="#type-reaction_event.user_id" class="anchor"></a><code>user_id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-reaction_event.channel_id" class="anchored"><td class="def field"><a href="#type-reaction_event.channel_id" class="anchor"></a><code>channel_id : <a href="../Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-reaction_event.message_id" class="anchored"><td class="def field"><a href="#type-reaction_event.message_id" class="anchor"></a><code>message_id : <a href="../Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-reaction_event.guild_id" class="anchored"><td class="def field"><a href="#type-reaction_event.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-reaction_event.emoji" class="anchored"><td class="def field"><a href="#type-reaction_event.emoji" class="anchor"></a><code>emoji : <a href="../Emoji/index.html#type-partial_emoji">Disml__.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt><dd><p>Represents a single reaction as received over the gateway.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-reaction_event_of_sexp"><a href="#val-reaction_event_of_sexp" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt><dt class="spec value" id="val-sexp_of_reaction_event"><a href="#val-sexp_of_reaction_event" class="anchor"></a><code><span class="keyword">val </span>sexp_of_reaction_event : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-reaction_event_to_yojson"><a href="#val-reaction_event_to_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_to_yojson : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-reaction_event_of_yojson"><a href="#val-reaction_event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-reaction_event_of_yojson_exn"><a href="#val-reaction_event_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.count" class="anchored"><td class="def field"><a href="#type-t.count" class="anchor"></a><code>count : int;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../Emoji/index.html#type-t">Disml__.Emoji.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>Represents a number of emojis used as a reaction on a message.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Key/index.html b/docs/disml/Disml__/Rl/RouteMap/Key/index.html new file mode 100644 index 0000000..596e980 --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Key/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Key (disml.Disml__.Rl.RouteMap.Key)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml__</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Key</nav><h1>Module <code>RouteMap.Key</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span>Core.String.t</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl><dl><dt class="spec type" id="type-comparator_witness"><a href="#type-comparator_witness" class="anchor"></a><code><span class="keyword">type </span>comparator_witness</code><code><span class="keyword"> = </span>Core_kernel__Map.Make(Core.String).Key.comparator_witness</code></dt></dl><dl><dt class="spec value" id="val-comparator"><a href="#val-comparator" class="anchor"></a><code><span class="keyword">val </span>comparator : (<a href="index.html#type-t">t</a>, <a href="index.html#type-comparator_witness">comparator_witness</a>) Core_kernel__.Comparator.comparator</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Provide_bin_io/argument-1-Key/index.html b/docs/disml/Disml__/Rl/RouteMap/Provide_bin_io/argument-1-Key/index.html new file mode 100644 index 0000000..826c801 --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Provide_bin_io/argument-1-Key/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-Key (disml.Disml__.Rl.RouteMap.Provide_bin_io.1-Key)</title><link rel="stylesheet" href="../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../index.html">disml</a> » <a href="../../../../index.html">Disml__</a> » <a href="../../../index.html">Rl</a> » <a href="../../index.html">RouteMap</a> » <a href="../index.html">Provide_bin_io</a> » 1-Key</nav><h1>Parameter <code>Provide_bin_io.1-Key</code></h1></header><dl><dt class="spec value" id="val-bin_t"><a href="#val-bin_t" class="anchor"></a><code><span class="keyword">val </span>bin_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Type_class.t</code></dt><dt class="spec value" id="val-bin_read_t"><a href="#val-bin_read_t" class="anchor"></a><code><span class="keyword">val </span>bin_read_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Read.reader</code></dt><dt class="spec value" id="val-__bin_read_t__"><a href="#val-__bin_read_t__" class="anchor"></a><code><span class="keyword">val </span>__bin_read_t__ : (Core_kernel__.Import.int <span>-></span> <a href="../../Key/index.html#type-t">Key.t</a>) Bin_prot.Read.reader</code></dt><dt class="spec value" id="val-bin_reader_t"><a href="#val-bin_reader_t" class="anchor"></a><code><span class="keyword">val </span>bin_reader_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Type_class.reader</code></dt><dt class="spec value" id="val-bin_size_t"><a href="#val-bin_size_t" class="anchor"></a><code><span class="keyword">val </span>bin_size_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Size.sizer</code></dt><dt class="spec value" id="val-bin_write_t"><a href="#val-bin_write_t" class="anchor"></a><code><span class="keyword">val </span>bin_write_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Write.writer</code></dt><dt class="spec value" id="val-bin_writer_t"><a href="#val-bin_writer_t" class="anchor"></a><code><span class="keyword">val </span>bin_writer_t : <a href="../../Key/index.html#type-t">Key.t</a> Bin_prot.Type_class.writer</code></dt><dt class="spec value" id="val-bin_shape_t"><a href="#val-bin_shape_t" class="anchor"></a><code><span class="keyword">val </span>bin_shape_t : Bin_prot.Shape.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Provide_bin_io/index.html b/docs/disml/Disml__/Rl/RouteMap/Provide_bin_io/index.html new file mode 100644 index 0000000..4c4a757 --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Provide_bin_io/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Provide_bin_io (disml.Disml__.Rl.RouteMap.Provide_bin_io)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml__</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Provide_bin_io</nav><h1>Module <code>RouteMap.Provide_bin_io</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec value" id="val-bin_shape_t"><a href="#val-bin_shape_t" class="anchor"></a><code><span class="keyword">val </span>bin_shape_t : Bin_prot.Shape.t <span>-></span> Bin_prot.Shape.t</code></dt><dt class="spec value" id="val-bin_size_t"><a href="#val-bin_size_t" class="anchor"></a><code><span class="keyword">val </span>bin_size_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Size.sizer1</code></dt><dt class="spec value" id="val-bin_write_t"><a href="#val-bin_write_t" class="anchor"></a><code><span class="keyword">val </span>bin_write_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Write.writer1</code></dt><dt class="spec value" id="val-bin_read_t"><a href="#val-bin_read_t" class="anchor"></a><code><span class="keyword">val </span>bin_read_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Read.reader1</code></dt><dt class="spec value" id="val-__bin_read_t__"><a href="#val-__bin_read_t__" class="anchor"></a><code><span class="keyword">val </span>__bin_read_t__ : (<span class="type-var">'a</span>, int <span>-></span> <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Read.reader1</code></dt><dt class="spec value" id="val-bin_writer_t"><a href="#val-bin_writer_t" class="anchor"></a><code><span class="keyword">val </span>bin_writer_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Type_class.S1.writer</code></dt><dt class="spec value" id="val-bin_reader_t"><a href="#val-bin_reader_t" class="anchor"></a><code><span class="keyword">val </span>bin_reader_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Type_class.S1.reader</code></dt><dt class="spec value" id="val-bin_t"><a href="#val-bin_t" class="anchor"></a><code><span class="keyword">val </span>bin_t : (<span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="../index.html#type-t">t</a>) Bin_prot.Type_class.S1.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Provide_hash/argument-1-Key/index.html b/docs/disml/Disml__/Rl/RouteMap/Provide_hash/argument-1-Key/index.html new file mode 100644 index 0000000..a31f81e --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Provide_hash/argument-1-Key/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-Key (disml.Disml__.Rl.RouteMap.Provide_hash.1-Key)</title><link rel="stylesheet" href="../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../index.html">disml</a> » <a href="../../../../index.html">Disml__</a> » <a href="../../../index.html">Rl</a> » <a href="../../index.html">RouteMap</a> » <a href="../index.html">Provide_hash</a> » 1-Key</nav><h1>Parameter <code>Provide_hash.1-Key</code></h1></header><dl><dt class="spec value" id="val-hash_fold_t"><a href="#val-hash_fold_t" class="anchor"></a><code><span class="keyword">val </span>hash_fold_t : Base__.Hash.state <span>-></span> <a href="../../Key/index.html#type-t">Key.t</a> <span>-></span> Base__.Hash.state</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Provide_hash/index.html b/docs/disml/Disml__/Rl/RouteMap/Provide_hash/index.html new file mode 100644 index 0000000..ef63e42 --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Provide_hash/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Provide_hash (disml.Disml__.Rl.RouteMap.Provide_hash)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml__</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Provide_hash</nav><h1>Module <code>RouteMap.Provide_hash</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec value" id="val-hash_fold_t"><a href="#val-hash_fold_t" class="anchor"></a><code><span class="keyword">val </span>hash_fold_t : (Ppx_hash_lib.Std.Hash.state <span>-></span> <span class="type-var">'a</span> <span>-></span> Ppx_hash_lib.Std.Hash.state) <span>-></span> Ppx_hash_lib.Std.Hash.state <span>-></span> <span class="type-var">'a</span> <a href="../index.html#type-t">t</a> <span>-></span> Ppx_hash_lib.Std.Hash.state</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Provide_of_sexp/argument-1-Key/index.html b/docs/disml/Disml__/Rl/RouteMap/Provide_of_sexp/argument-1-Key/index.html new file mode 100644 index 0000000..29e405c --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Provide_of_sexp/argument-1-Key/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-Key (disml.Disml__.Rl.RouteMap.Provide_of_sexp.1-Key)</title><link rel="stylesheet" href="../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../index.html">disml</a> » <a href="../../../../index.html">Disml__</a> » <a href="../../../index.html">Rl</a> » <a href="../../index.html">RouteMap</a> » <a href="../index.html">Provide_of_sexp</a> » 1-Key</nav><h1>Parameter <code>Provide_of_sexp.1-Key</code></h1></header><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="../../Key/index.html#type-t">Key.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Provide_of_sexp/index.html b/docs/disml/Disml__/Rl/RouteMap/Provide_of_sexp/index.html new file mode 100644 index 0000000..0607fa8 --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Provide_of_sexp/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Provide_of_sexp (disml.Disml__.Rl.RouteMap.Provide_of_sexp)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml__</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Provide_of_sexp</nav><h1>Module <code>RouteMap.Provide_of_sexp</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : (Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'v_x__018_</span>) <span>-></span> Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'v_x__018_</span> <a href="../index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Tree/Provide_of_sexp/argument-1-K/index.html b/docs/disml/Disml__/Rl/RouteMap/Tree/Provide_of_sexp/argument-1-K/index.html new file mode 100644 index 0000000..f0f1cef --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Tree/Provide_of_sexp/argument-1-K/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-K (disml.Disml__.Rl.RouteMap.Tree.Provide_of_sexp.1-K)</title><link rel="stylesheet" href="../../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../../index.html">disml</a> » <a href="../../../../../index.html">Disml__</a> » <a href="../../../../index.html">Rl</a> » <a href="../../../index.html">RouteMap</a> » <a href="../../index.html">Tree</a> » <a href="../index.html">Provide_of_sexp</a> » 1-K</nav><h1>Parameter <code>Provide_of_sexp.1-K</code></h1></header><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="../../../Key/index.html#type-t">Key.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Tree/Provide_of_sexp/index.html b/docs/disml/Disml__/Rl/RouteMap/Tree/Provide_of_sexp/index.html new file mode 100644 index 0000000..61bbc46 --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Tree/Provide_of_sexp/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Provide_of_sexp (disml.Disml__.Rl.RouteMap.Tree.Provide_of_sexp)</title><link rel="stylesheet" href="../../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../../index.html">disml</a> » <a href="../../../../index.html">Disml__</a> » <a href="../../../index.html">Rl</a> » <a href="../../index.html">RouteMap</a> » <a href="../index.html">Tree</a> » Provide_of_sexp</nav><h1>Module <code>Tree.Provide_of_sexp</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-K/index.html">K</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : (Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'v_x__017_</span>) <span>-></span> Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'v_x__017_</span> <a href="../index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/Tree/index.html b/docs/disml/Disml__/Rl/RouteMap/Tree/index.html new file mode 100644 index 0000000..3724155 --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/Tree/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Tree (disml.Disml__.Rl.RouteMap.Tree)</title><link rel="stylesheet" href="../../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../../index.html">disml</a> » <a href="../../../index.html">Disml__</a> » <a href="../../index.html">Rl</a> » <a href="../index.html">RouteMap</a> » Tree</nav><h1>Module <code>RouteMap.Tree</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>'a t</code><code><span class="keyword"> = </span>(<a href="../Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>, <a href="../Key/index.html#type-comparator_witness">Key.comparator_witness</a>) Core_kernel__.Map_intf.Tree.t</code></dt></dl><dl><dt class="spec value" id="val-empty"><a href="#val-empty" class="anchor"></a><code><span class="keyword">val </span>empty : <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-singleton"><a href="#val-singleton" class="anchor"></a><code><span class="keyword">val </span>singleton : <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist"><a href="#val-of_alist" class="anchor"></a><code><span class="keyword">val </span>of_alist : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> [ `Duplicate_key of <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> | </span>`Ok of <span class="type-var">'a</span> <a href="index.html#type-t">t</a> ]</code></dt><dt class="spec value" id="val-of_alist_or_error"><a href="#val-of_alist_or_error" class="anchor"></a><code><span class="keyword">val </span>of_alist_or_error : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_alist_exn"><a href="#val-of_alist_exn" class="anchor"></a><code><span class="keyword">val </span>of_alist_exn : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_multi"><a href="#val-of_alist_multi" class="anchor"></a><code><span class="keyword">val </span>of_alist_multi : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_fold"><a href="#val-of_alist_fold" class="anchor"></a><code><span class="keyword">val </span>of_alist_fold : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(<span class="type-var">'b</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_reduce"><a href="#val-of_alist_reduce" class="anchor"></a><code><span class="keyword">val </span>of_alist_reduce : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_sorted_array"><a href="#val-of_sorted_array" class="anchor"></a><code><span class="keyword">val </span>of_sorted_array : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) array <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_sorted_array_unchecked"><a href="#val-of_sorted_array_unchecked" class="anchor"></a><code><span class="keyword">val </span>of_sorted_array_unchecked : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) array <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_increasing_iterator_unchecked"><a href="#val-of_increasing_iterator_unchecked" class="anchor"></a><code><span class="keyword">val </span>of_increasing_iterator_unchecked : len:int <span>-></span> f:(int <span>-></span> <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_increasing_sequence"><a href="#val-of_increasing_sequence" class="anchor"></a><code><span class="keyword">val </span>of_increasing_sequence : (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) Base__.Sequence.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_iteri"><a href="#val-of_iteri" class="anchor"></a><code><span class="keyword">val </span>of_iteri : iteri:(f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'v</span> <span>-></span> unit) <span>-></span> unit) <span>-></span> [ `Duplicate_key of <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> | </span>`Ok of <span class="type-var">'v</span> <a href="index.html#type-t">t</a> ]</code></dt><dt class="spec value" id="val-of_tree"><a href="#val-of_tree" class="anchor"></a><code><span class="keyword">val </span>of_tree : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_hashtbl_exn"><a href="#val-of_hashtbl_exn" class="anchor"></a><code><span class="keyword">val </span>of_hashtbl_exn : (<a href="../Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>) Core_kernel__.Hashtbl.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-gen"><a href="#val-gen" class="anchor"></a><code><span class="keyword">val </span>gen : <a href="../Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Generator.t <span>-></span> <span class="type-var">'a</span> Core_kernel__.Quickcheck.Generator.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Generator.t</code></dt><dt class="spec value" id="val-invariants"><a href="#val-invariants" class="anchor"></a><code><span class="keyword">val </span>invariants : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-is_empty"><a href="#val-is_empty" class="anchor"></a><code><span class="keyword">val </span>is_empty : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-length"><a href="#val-length" class="anchor"></a><code><span class="keyword">val </span>length : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-add"><a href="#val-add" class="anchor"></a><code><span class="keyword">val </span>add : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Map_intf.Or_duplicate.t</code></dt><dt class="spec value" id="val-add_exn"><a href="#val-add_exn" class="anchor"></a><code><span class="keyword">val </span>add_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-set"><a href="#val-set" class="anchor"></a><code><span class="keyword">val </span>set : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-add_multi"><a href="#val-add_multi" class="anchor"></a><code><span class="keyword">val </span>add_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-remove_multi"><a href="#val-remove_multi" class="anchor"></a><code><span class="keyword">val </span>remove_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-find_multi"><a href="#val-find_multi" class="anchor"></a><code><span class="keyword">val </span>find_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> list</code></dt><dt class="spec value" id="val-change"><a href="#val-change" class="anchor"></a><code><span class="keyword">val </span>change : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span> option) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-update"><a href="#val-update" class="anchor"></a><code><span class="keyword">val </span>update : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-find"><a href="#val-find" class="anchor"></a><code><span class="keyword">val </span>find : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> option</code></dt><dt class="spec value" id="val-find_exn"><a href="#val-find_exn" class="anchor"></a><code><span class="keyword">val </span>find_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span></code></dt><dt class="spec value" id="val-remove"><a href="#val-remove" class="anchor"></a><code><span class="keyword">val </span>remove : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-mem"><a href="#val-mem" class="anchor"></a><code><span class="keyword">val </span>mem : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-iter_keys"><a href="#val-iter_keys" class="anchor"></a><code><span class="keyword">val </span>iter_keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iter"><a href="#val-iter" class="anchor"></a><code><span class="keyword">val </span>iter : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iteri"><a href="#val-iteri" class="anchor"></a><code><span class="keyword">val </span>iteri : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iter2"><a href="#val-iter2" class="anchor"></a><code><span class="keyword">val </span>iter2 : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:[ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-map"><a href="#val-map" class="anchor"></a><code><span class="keyword">val </span>map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-mapi"><a href="#val-mapi" class="anchor"></a><code><span class="keyword">val </span>mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fold"><a href="#val-fold" class="anchor"></a><code><span class="keyword">val </span>fold : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-fold_right"><a href="#val-fold_right" class="anchor"></a><code><span class="keyword">val </span>fold_right : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-fold2"><a href="#val-fold2" class="anchor"></a><code><span class="keyword">val </span>fold2 : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'c</span> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:[ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> <span class="type-var">'c</span> <span>-></span> <span class="type-var">'c</span>) <span>-></span> <span class="type-var">'c</span></code></dt><dt class="spec value" id="val-filter_keys"><a href="#val-filter_keys" class="anchor"></a><code><span class="keyword">val </span>filter_keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter"><a href="#val-filter" class="anchor"></a><code><span class="keyword">val </span>filter : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filteri"><a href="#val-filteri" class="anchor"></a><code><span class="keyword">val </span>filteri : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter_map"><a href="#val-filter_map" class="anchor"></a><code><span class="keyword">val </span>filter_map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> option) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter_mapi"><a href="#val-filter_mapi" class="anchor"></a><code><span class="keyword">val </span>filter_mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> option) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_mapi"><a href="#val-partition_mapi" class="anchor"></a><code><span class="keyword">val </span>partition_mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> [ `Fst of <span class="type-var">'b</span><span class="keyword"> | </span>`Snd of <span class="type-var">'c</span> ]) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_map"><a href="#val-partition_map" class="anchor"></a><code><span class="keyword">val </span>partition_map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> [ `Fst of <span class="type-var">'b</span><span class="keyword"> | </span>`Snd of <span class="type-var">'c</span> ]) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partitioni_tf"><a href="#val-partitioni_tf" class="anchor"></a><code><span class="keyword">val </span>partitioni_tf : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_tf"><a href="#val-partition_tf" class="anchor"></a><code><span class="keyword">val </span>partition_tf : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-compare_direct"><a href="#val-compare_direct" class="anchor"></a><code><span class="keyword">val </span>compare_direct : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> int) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-equal"><a href="#val-equal" class="anchor"></a><code><span class="keyword">val </span>equal : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-keys"><a href="#val-keys" class="anchor"></a><code><span class="keyword">val </span>keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> list</code></dt><dt class="spec value" id="val-data"><a href="#val-data" class="anchor"></a><code><span class="keyword">val </span>data : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> list</code></dt><dt class="spec value" id="val-to_alist"><a href="#val-to_alist" class="anchor"></a><code><span class="keyword">val </span>to_alist : ?⁠key_order:[ `Decreasing<span class="keyword"> | </span>`Increasing ] <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list</code></dt><dt class="spec value" id="val-validate"><a href="#val-validate" class="anchor"></a><code><span class="keyword">val </span>validate : name:(<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> string) <span>-></span> <span class="type-var">'a</span> Base__.Validate.check <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Validate.check</code></dt><dt class="spec value" id="val-merge"><a href="#val-merge" class="anchor"></a><code><span class="keyword">val </span>merge : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> [ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> <span class="type-var">'c</span> option) <span>-></span> <span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-symmetric_diff"><a href="#val-symmetric_diff" class="anchor"></a><code><span class="keyword">val </span>symmetric_diff : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> data_equal:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> bool) <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>) Base__.Map_intf.Symmetric_diff_element.t Base__.Sequence.t</code></dt><dt class="spec value" id="val-min_elt"><a href="#val-min_elt" class="anchor"></a><code><span class="keyword">val </span>min_elt : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-min_elt_exn"><a href="#val-min_elt_exn" class="anchor"></a><code><span class="keyword">val </span>min_elt_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-max_elt"><a href="#val-max_elt" class="anchor"></a><code><span class="keyword">val </span>max_elt : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-max_elt_exn"><a href="#val-max_elt_exn" class="anchor"></a><code><span class="keyword">val </span>max_elt_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-for_all"><a href="#val-for_all" class="anchor"></a><code><span class="keyword">val </span>for_all : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-for_alli"><a href="#val-for_alli" class="anchor"></a><code><span class="keyword">val </span>for_alli : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-exists"><a href="#val-exists" class="anchor"></a><code><span class="keyword">val </span>exists : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-existsi"><a href="#val-existsi" class="anchor"></a><code><span class="keyword">val </span>existsi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-count"><a href="#val-count" class="anchor"></a><code><span class="keyword">val </span>count : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> int</code></dt><dt class="spec value" id="val-counti"><a href="#val-counti" class="anchor"></a><code><span class="keyword">val </span>counti : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> int</code></dt><dt class="spec value" id="val-split"><a href="#val-split" class="anchor"></a><code><span class="keyword">val </span>split : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span>(<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option<span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-append"><a href="#val-append" class="anchor"></a><code><span class="keyword">val </span>append : lower_part:<span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> upper_part:<span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> [ `Ok of <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> | </span>`Overlapping_key_ranges ]</code></dt><dt class="spec value" id="val-subrange"><a href="#val-subrange" class="anchor"></a><code><span class="keyword">val </span>subrange : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> lower_bound:<a href="../Key/index.html#type-t">Key.t</a> Base__.Maybe_bound.t <span>-></span> upper_bound:<a href="../Key/index.html#type-t">Key.t</a> Base__.Maybe_bound.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fold_range_inclusive"><a href="#val-fold_range_inclusive" class="anchor"></a><code><span class="keyword">val </span>fold_range_inclusive : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> min:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> max:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-range_to_alist"><a href="#val-range_to_alist" class="anchor"></a><code><span class="keyword">val </span>range_to_alist : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> min:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> max:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list</code></dt><dt class="spec value" id="val-closest_key"><a href="#val-closest_key" class="anchor"></a><code><span class="keyword">val </span>closest_key : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> [ `Greater_or_equal_to<span class="keyword"> | </span>`Greater_than<span class="keyword"> | </span>`Less_or_equal_to<span class="keyword"> | </span>`Less_than ] <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-nth"><a href="#val-nth" class="anchor"></a><code><span class="keyword">val </span>nth : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-nth_exn"><a href="#val-nth_exn" class="anchor"></a><code><span class="keyword">val </span>nth_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int <span>-></span> <a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-rank"><a href="#val-rank" class="anchor"></a><code><span class="keyword">val </span>rank : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Key/index.html#type-t">Key.t</a> <span>-></span> int option</code></dt><dt class="spec value" id="val-to_tree"><a href="#val-to_tree" class="anchor"></a><code><span class="keyword">val </span>to_tree : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-to_sequence"><a href="#val-to_sequence" class="anchor"></a><code><span class="keyword">val </span>to_sequence : ?⁠order:[ `Decreasing_key<span class="keyword"> | </span>`Increasing_key ] <span>-></span> ?⁠keys_greater_or_equal_to:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> ?⁠keys_less_or_equal_to:<a href="../Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="../Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) Base__.Sequence.t</code></dt><dt class="spec value" id="val-obs"><a href="#val-obs" class="anchor"></a><code><span class="keyword">val </span>obs : <a href="../Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Observer.t <span>-></span> <span class="type-var">'v</span> Core_kernel__.Quickcheck.Observer.t <span>-></span> <span class="type-var">'v</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Observer.t</code></dt><dt class="spec value" id="val-shrinker"><a href="#val-shrinker" class="anchor"></a><code><span class="keyword">val </span>shrinker : <a href="../Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Shrinker.t <span>-></span> <span class="type-var">'v</span> Core_kernel__.Quickcheck.Shrinker.t <span>-></span> <span class="type-var">'v</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Shrinker.t</code></dt></dl><div class="spec module" id="module-Provide_of_sexp"><a href="#module-Provide_of_sexp" class="anchor"></a><code><span class="keyword">module </span><a href="Provide_of_sexp/index.html">Provide_of_sexp</a> : <span class="keyword">functor</span> (<a href="Provide_of_sexp/argument-1-K/index.html">K</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span>) <span>-></span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : (Base__.Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'a</span>) <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : (<span class="type-var">'a</span> <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/RouteMap/index.html b/docs/disml/Disml__/Rl/RouteMap/index.html new file mode 100644 index 0000000..875e46c --- /dev/null +++ b/docs/disml/Disml__/Rl/RouteMap/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>RouteMap (disml.Disml__.Rl.RouteMap)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Rl</a> » RouteMap</nav><h1>Module <code>Rl.RouteMap</code></h1><p>Type for mapping route -> <a href="../index.html#type-rl"><code>rl</code></a>.</p></header><div class="spec module" id="module-Key"><a href="#module-Key" class="anchor"></a><code><span class="keyword">module </span><a href="Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Tree"><a href="#module-Tree" class="anchor"></a><code><span class="keyword">module </span><a href="Tree/index.html">Tree</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>'a t</code><code><span class="keyword"> = </span>(<a href="Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>, <a href="Key/index.html#type-comparator_witness">Key.comparator_witness</a>) Core_kernel__.Map_intf.Map.t</code></dt></dl><dl><dt class="spec value" id="val-compare"><a href="#val-compare" class="anchor"></a><code><span class="keyword">val </span>compare : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> Core_kernel__.Import.int) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> Core_kernel__.Import.int</code></dt><dt class="spec value" id="val-empty"><a href="#val-empty" class="anchor"></a><code><span class="keyword">val </span>empty : <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-singleton"><a href="#val-singleton" class="anchor"></a><code><span class="keyword">val </span>singleton : <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist"><a href="#val-of_alist" class="anchor"></a><code><span class="keyword">val </span>of_alist : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> [ `Duplicate_key of <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> | </span>`Ok of <span class="type-var">'a</span> <a href="index.html#type-t">t</a> ]</code></dt><dt class="spec value" id="val-of_alist_or_error"><a href="#val-of_alist_or_error" class="anchor"></a><code><span class="keyword">val </span>of_alist_or_error : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_alist_exn"><a href="#val-of_alist_exn" class="anchor"></a><code><span class="keyword">val </span>of_alist_exn : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_multi"><a href="#val-of_alist_multi" class="anchor"></a><code><span class="keyword">val </span>of_alist_multi : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_fold"><a href="#val-of_alist_fold" class="anchor"></a><code><span class="keyword">val </span>of_alist_fold : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(<span class="type-var">'b</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_alist_reduce"><a href="#val-of_alist_reduce" class="anchor"></a><code><span class="keyword">val </span>of_alist_reduce : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_sorted_array"><a href="#val-of_sorted_array" class="anchor"></a><code><span class="keyword">val </span>of_sorted_array : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) array <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_sorted_array_unchecked"><a href="#val-of_sorted_array_unchecked" class="anchor"></a><code><span class="keyword">val </span>of_sorted_array_unchecked : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) array <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_increasing_iterator_unchecked"><a href="#val-of_increasing_iterator_unchecked" class="anchor"></a><code><span class="keyword">val </span>of_increasing_iterator_unchecked : len:int <span>-></span> f:(int <span>-></span> <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_increasing_sequence"><a href="#val-of_increasing_sequence" class="anchor"></a><code><span class="keyword">val </span>of_increasing_sequence : (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) Base__.Sequence.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Or_error.t</code></dt><dt class="spec value" id="val-of_iteri"><a href="#val-of_iteri" class="anchor"></a><code><span class="keyword">val </span>of_iteri : iteri:(f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'v</span> <span>-></span> unit) <span>-></span> unit) <span>-></span> [ `Duplicate_key of <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> | </span>`Ok of <span class="type-var">'v</span> <a href="index.html#type-t">t</a> ]</code></dt><dt class="spec value" id="val-of_tree"><a href="#val-of_tree" class="anchor"></a><code><span class="keyword">val </span>of_tree : <span class="type-var">'a</span> <a href="Tree/index.html#type-t">Tree.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_hashtbl_exn"><a href="#val-of_hashtbl_exn" class="anchor"></a><code><span class="keyword">val </span>of_hashtbl_exn : (<a href="Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>) Core_kernel__.Hashtbl.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-gen"><a href="#val-gen" class="anchor"></a><code><span class="keyword">val </span>gen : <a href="Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Generator.t <span>-></span> <span class="type-var">'a</span> Core_kernel__.Quickcheck.Generator.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Generator.t</code></dt><dt class="spec value" id="val-invariants"><a href="#val-invariants" class="anchor"></a><code><span class="keyword">val </span>invariants : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-is_empty"><a href="#val-is_empty" class="anchor"></a><code><span class="keyword">val </span>is_empty : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-length"><a href="#val-length" class="anchor"></a><code><span class="keyword">val </span>length : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-add"><a href="#val-add" class="anchor"></a><code><span class="keyword">val </span>add : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Map_intf.Or_duplicate.t</code></dt><dt class="spec value" id="val-add_exn"><a href="#val-add_exn" class="anchor"></a><code><span class="keyword">val </span>add_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-set"><a href="#val-set" class="anchor"></a><code><span class="keyword">val </span>set : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-add_multi"><a href="#val-add_multi" class="anchor"></a><code><span class="keyword">val </span>add_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-remove_multi"><a href="#val-remove_multi" class="anchor"></a><code><span class="keyword">val </span>remove_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> list <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-find_multi"><a href="#val-find_multi" class="anchor"></a><code><span class="keyword">val </span>find_multi : <span class="type-var">'a</span> list <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> list</code></dt><dt class="spec value" id="val-change"><a href="#val-change" class="anchor"></a><code><span class="keyword">val </span>change : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span> option) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-update"><a href="#val-update" class="anchor"></a><code><span class="keyword">val </span>update : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-find"><a href="#val-find" class="anchor"></a><code><span class="keyword">val </span>find : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> option</code></dt><dt class="spec value" id="val-find_exn"><a href="#val-find_exn" class="anchor"></a><code><span class="keyword">val </span>find_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span></code></dt><dt class="spec value" id="val-remove"><a href="#val-remove" class="anchor"></a><code><span class="keyword">val </span>remove : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-mem"><a href="#val-mem" class="anchor"></a><code><span class="keyword">val </span>mem : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-iter_keys"><a href="#val-iter_keys" class="anchor"></a><code><span class="keyword">val </span>iter_keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<a href="Key/index.html#type-t">Key.t</a> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iter"><a href="#val-iter" class="anchor"></a><code><span class="keyword">val </span>iter : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iteri"><a href="#val-iteri" class="anchor"></a><code><span class="keyword">val </span>iteri : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-iter2"><a href="#val-iter2" class="anchor"></a><code><span class="keyword">val </span>iter2 : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:[ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> unit) <span>-></span> unit</code></dt><dt class="spec value" id="val-map"><a href="#val-map" class="anchor"></a><code><span class="keyword">val </span>map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-mapi"><a href="#val-mapi" class="anchor"></a><code><span class="keyword">val </span>mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fold"><a href="#val-fold" class="anchor"></a><code><span class="keyword">val </span>fold : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-fold_right"><a href="#val-fold_right" class="anchor"></a><code><span class="keyword">val </span>fold_right : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-fold2"><a href="#val-fold2" class="anchor"></a><code><span class="keyword">val </span>fold2 : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> init:<span class="type-var">'c</span> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:[ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> <span class="type-var">'c</span> <span>-></span> <span class="type-var">'c</span>) <span>-></span> <span class="type-var">'c</span></code></dt><dt class="spec value" id="val-filter_keys"><a href="#val-filter_keys" class="anchor"></a><code><span class="keyword">val </span>filter_keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<a href="Key/index.html#type-t">Key.t</a> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter"><a href="#val-filter" class="anchor"></a><code><span class="keyword">val </span>filter : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filteri"><a href="#val-filteri" class="anchor"></a><code><span class="keyword">val </span>filteri : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter_map"><a href="#val-filter_map" class="anchor"></a><code><span class="keyword">val </span>filter_map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> option) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-filter_mapi"><a href="#val-filter_mapi" class="anchor"></a><code><span class="keyword">val </span>filter_mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> option) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_mapi"><a href="#val-partition_mapi" class="anchor"></a><code><span class="keyword">val </span>partition_mapi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> [ `Fst of <span class="type-var">'b</span><span class="keyword"> | </span>`Snd of <span class="type-var">'c</span> ]) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_map"><a href="#val-partition_map" class="anchor"></a><code><span class="keyword">val </span>partition_map : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> [ `Fst of <span class="type-var">'b</span><span class="keyword"> | </span>`Snd of <span class="type-var">'c</span> ]) <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partitioni_tf"><a href="#val-partitioni_tf" class="anchor"></a><code><span class="keyword">val </span>partitioni_tf : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-partition_tf"><a href="#val-partition_tf" class="anchor"></a><code><span class="keyword">val </span>partition_tf : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-compare_direct"><a href="#val-compare_direct" class="anchor"></a><code><span class="keyword">val </span>compare_direct : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> int) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-equal"><a href="#val-equal" class="anchor"></a><code><span class="keyword">val </span>equal : (<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> bool) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-keys"><a href="#val-keys" class="anchor"></a><code><span class="keyword">val </span>keys : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> list</code></dt><dt class="spec value" id="val-data"><a href="#val-data" class="anchor"></a><code><span class="keyword">val </span>data : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> list</code></dt><dt class="spec value" id="val-to_alist"><a href="#val-to_alist" class="anchor"></a><code><span class="keyword">val </span>to_alist : ?⁠key_order:[ `Decreasing<span class="keyword"> | </span>`Increasing ] <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list</code></dt><dt class="spec value" id="val-validate"><a href="#val-validate" class="anchor"></a><code><span class="keyword">val </span>validate : name:(<a href="Key/index.html#type-t">Key.t</a> <span>-></span> string) <span>-></span> <span class="type-var">'a</span> Base__.Validate.check <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> Base__.Validate.check</code></dt><dt class="spec value" id="val-merge"><a href="#val-merge" class="anchor"></a><code><span class="keyword">val </span>merge : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'b</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> [ `Both of <span class="type-var">'a</span><span class="keyword"> * </span><span class="type-var">'b</span><span class="keyword"> | </span>`Left of <span class="type-var">'a</span><span class="keyword"> | </span>`Right of <span class="type-var">'b</span> ] <span>-></span> <span class="type-var">'c</span> option) <span>-></span> <span class="type-var">'c</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-symmetric_diff"><a href="#val-symmetric_diff" class="anchor"></a><code><span class="keyword">val </span>symmetric_diff : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> data_equal:(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'a</span> <span>-></span> bool) <span>-></span> (<a href="Key/index.html#type-t">Key.t</a>, <span class="type-var">'a</span>) Base__.Map_intf.Symmetric_diff_element.t Base__.Sequence.t</code></dt><dt class="spec value" id="val-min_elt"><a href="#val-min_elt" class="anchor"></a><code><span class="keyword">val </span>min_elt : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-min_elt_exn"><a href="#val-min_elt_exn" class="anchor"></a><code><span class="keyword">val </span>min_elt_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-max_elt"><a href="#val-max_elt" class="anchor"></a><code><span class="keyword">val </span>max_elt : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-max_elt_exn"><a href="#val-max_elt_exn" class="anchor"></a><code><span class="keyword">val </span>max_elt_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-for_all"><a href="#val-for_all" class="anchor"></a><code><span class="keyword">val </span>for_all : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-for_alli"><a href="#val-for_alli" class="anchor"></a><code><span class="keyword">val </span>for_alli : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-exists"><a href="#val-exists" class="anchor"></a><code><span class="keyword">val </span>exists : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-existsi"><a href="#val-existsi" class="anchor"></a><code><span class="keyword">val </span>existsi : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> bool</code></dt><dt class="spec value" id="val-count"><a href="#val-count" class="anchor"></a><code><span class="keyword">val </span>count : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> int</code></dt><dt class="spec value" id="val-counti"><a href="#val-counti" class="anchor"></a><code><span class="keyword">val </span>counti : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> bool) <span>-></span> int</code></dt><dt class="spec value" id="val-split"><a href="#val-split" class="anchor"></a><code><span class="keyword">val </span>split : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> * </span>(<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option<span class="keyword"> * </span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-append"><a href="#val-append" class="anchor"></a><code><span class="keyword">val </span>append : lower_part:<span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> upper_part:<span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> [ `Ok of <span class="type-var">'a</span> <a href="index.html#type-t">t</a><span class="keyword"> | </span>`Overlapping_key_ranges ]</code></dt><dt class="spec value" id="val-subrange"><a href="#val-subrange" class="anchor"></a><code><span class="keyword">val </span>subrange : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> lower_bound:<a href="Key/index.html#type-t">Key.t</a> Base__.Maybe_bound.t <span>-></span> upper_bound:<a href="Key/index.html#type-t">Key.t</a> Base__.Maybe_bound.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fold_range_inclusive"><a href="#val-fold_range_inclusive" class="anchor"></a><code><span class="keyword">val </span>fold_range_inclusive : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> min:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> max:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> init:<span class="type-var">'b</span> <span>-></span> f:(key:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> data:<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span> <span>-></span> <span class="type-var">'b</span>) <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-range_to_alist"><a href="#val-range_to_alist" class="anchor"></a><code><span class="keyword">val </span>range_to_alist : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> min:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> max:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) list</code></dt><dt class="spec value" id="val-closest_key"><a href="#val-closest_key" class="anchor"></a><code><span class="keyword">val </span>closest_key : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> [ `Greater_or_equal_to<span class="keyword"> | </span>`Greater_than<span class="keyword"> | </span>`Less_or_equal_to<span class="keyword"> | </span>`Less_than ] <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-nth"><a href="#val-nth" class="anchor"></a><code><span class="keyword">val </span>nth : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) option</code></dt><dt class="spec value" id="val-nth_exn"><a href="#val-nth_exn" class="anchor"></a><code><span class="keyword">val </span>nth_exn : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> int <span>-></span> <a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span></code></dt><dt class="spec value" id="val-rank"><a href="#val-rank" class="anchor"></a><code><span class="keyword">val </span>rank : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Key/index.html#type-t">Key.t</a> <span>-></span> int option</code></dt><dt class="spec value" id="val-to_tree"><a href="#val-to_tree" class="anchor"></a><code><span class="keyword">val </span>to_tree : <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> <span class="type-var">'a</span> <a href="Tree/index.html#type-t">Tree.t</a></code></dt><dt class="spec value" id="val-to_sequence"><a href="#val-to_sequence" class="anchor"></a><code><span class="keyword">val </span>to_sequence : ?⁠order:[ `Decreasing_key<span class="keyword"> | </span>`Increasing_key ] <span>-></span> ?⁠keys_greater_or_equal_to:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> ?⁠keys_less_or_equal_to:<a href="Key/index.html#type-t">Key.t</a> <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> (<a href="Key/index.html#type-t">Key.t</a><span class="keyword"> * </span><span class="type-var">'a</span>) Base__.Sequence.t</code></dt><dt class="spec value" id="val-obs"><a href="#val-obs" class="anchor"></a><code><span class="keyword">val </span>obs : <a href="Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Observer.t <span>-></span> <span class="type-var">'v</span> Core_kernel__.Quickcheck.Observer.t <span>-></span> <span class="type-var">'v</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Observer.t</code></dt><dt class="spec value" id="val-shrinker"><a href="#val-shrinker" class="anchor"></a><code><span class="keyword">val </span>shrinker : <a href="Key/index.html#type-t">Key.t</a> Core_kernel__.Quickcheck.Shrinker.t <span>-></span> <span class="type-var">'v</span> Core_kernel__.Quickcheck.Shrinker.t <span>-></span> <span class="type-var">'v</span> <a href="index.html#type-t">t</a> Core_kernel__.Quickcheck.Shrinker.t</code></dt></dl><div class="spec module" id="module-Provide_of_sexp"><a href="#module-Provide_of_sexp" class="anchor"></a><code><span class="keyword">module </span><a href="Provide_of_sexp/index.html">Provide_of_sexp</a> : <span class="keyword">functor</span> (<a href="Provide_of_sexp/argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span>) <span>-></span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Provide_bin_io"><a href="#module-Provide_bin_io" class="anchor"></a><code><span class="keyword">module </span><a href="Provide_bin_io/index.html">Provide_bin_io</a> : <span class="keyword">functor</span> (<a href="Provide_bin_io/argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span>) <span>-></span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Provide_hash"><a href="#module-Provide_hash" class="anchor"></a><code><span class="keyword">module </span><a href="Provide_hash/index.html">Provide_hash</a> : <span class="keyword">functor</span> (<a href="Provide_hash/argument-1-Key/index.html">Key</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span>) <span>-></span> <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : (Base__.Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'a</span>) <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : (<span class="type-var">'a</span> <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t) <span>-></span> <span class="type-var">'a</span> <a href="index.html#type-t">t</a> <span>-></span> Base__.Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Rl/index.html b/docs/disml/Disml__/Rl/index.html new file mode 100644 index 0000000..660075d --- /dev/null +++ b/docs/disml/Disml__/Rl/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Rl (disml.Disml__.Rl)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Rl</nav><h1>Module <code>Disml__.Rl</code></h1></header><aside><p>Internal ratelimit route mapping.</p></aside><dl><dt class="spec module" id="module-RouteMap"><a href="#module-RouteMap" class="anchor"></a><code><span class="keyword">module </span><a href="RouteMap/index.html">RouteMap</a> : <span class="keyword">module type of </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Type for mapping route -> <a href="index.html#type-rl"><code>rl</code></a>.</p></dd></dl><dl><dt class="spec type" id="type-rl"><a href="#type-rl" class="anchor"></a><code><span class="keyword">type </span>rl</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-rl.limit" class="anchored"><td class="def field"><a href="#type-rl.limit" class="anchor"></a><code>limit : int;</code></td></tr><tr id="type-rl.remaining" class="anchored"><td class="def field"><a href="#type-rl.remaining" class="anchor"></a><code>remaining : int;</code></td></tr><tr id="type-rl.reset" class="anchored"><td class="def field"><a href="#type-rl.reset" class="anchor"></a><code>reset : int;</code></td></tr></table><code>}</code></dt><dd><p>Type representing ratelimit information.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span>(<a href="index.html#type-rl">rl</a>, Core.read_write) Async.Mvar.t <a href="RouteMap/index.html#type-t">RouteMap.t</a></code></dt><dd><p>Type representing the specific case of <a href="RouteMap/index.html"><code>RouteMap</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-rl_of_header"><a href="#val-rl_of_header" class="anchor"></a><code><span class="keyword">val </span>rl_of_header : Cohttp.Header.t <span>-></span> <a href="index.html#type-rl">rl</a> option</code></dt><dd><p>Converts Cohttp header data into ratelimit information.</p><dl><dt>returns</dt><dd><p>Some of ratelimit information or None on bad headers</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-default"><a href="#val-default" class="anchor"></a><code><span class="keyword">val </span>default : <a href="index.html#type-rl">rl</a></code></dt><dd><p>Default for type rl. Used for prepopulating routes.</p></dd></dl><dl><dt class="spec value" id="val-empty"><a href="#val-empty" class="anchor"></a><code><span class="keyword">val </span>empty : <a href="index.html#type-t">t</a></code></dt><dd><p>Empty ratelimit route map.</p></dd></dl><dl><dt class="spec value" id="val-update"><a href="#val-update" class="anchor"></a><code><span class="keyword">val </span>update : <span class="type-var">'a</span> <a href="RouteMap/index.html#type-t">RouteMap.t</a> <span>-></span> string <span>-></span> f:(<span class="type-var">'a</span> option <span>-></span> <span class="type-var">'a</span>) <span>-></span> <span class="type-var">'a</span> <a href="RouteMap/index.html#type-t">RouteMap.t</a></code></dt><dd><p>Analogous to <a href="RouteMap/index.html#val-update"><code>RouteMap.update</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-find"><a href="#val-find" class="anchor"></a><code><span class="keyword">val </span>find : <span class="type-var">'a</span> <a href="RouteMap/index.html#type-t">RouteMap.t</a> <span>-></span> string <span>-></span> <span class="type-var">'a</span> option</code></dt><dd><p>Analogous to <a href="RouteMap/index.html#val-find"><code>RouteMap.find</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-find_exn"><a href="#val-find_exn" class="anchor"></a><code><span class="keyword">val </span>find_exn : <span class="type-var">'a</span> <a href="RouteMap/index.html#type-t">RouteMap.t</a> <span>-></span> string <span>-></span> <span class="type-var">'a</span></code></dt><dd><p>Analogous to <a href="RouteMap/index.html#val-find_exn"><code>RouteMap.find_exn</code></a>.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Role/index.html b/docs/disml/Disml__/Role/index.html new file mode 100644 index 0000000..cb91936 --- /dev/null +++ b/docs/disml/Disml__/Role/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Role (disml.Disml__.Role)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Role</nav><h1>Module <code>Disml__.Role</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-Role_t">Disml__.Role_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-role"><a href="#type-role" class="anchor"></a><code><span class="keyword">type </span>role</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role.id" class="anchored"><td class="def field"><a href="#type-role.id" class="anchor"></a><code>id : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td></tr><tr id="type-role.name" class="anchored"><td class="def field"><a href="#type-role.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-role.colour" class="anchored"><td class="def field"><a href="#type-role.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-role.hoist" class="anchored"><td class="def field"><a href="#type-role.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-role.position" class="anchored"><td class="def field"><a href="#type-role.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-role.permissions" class="anchored"><td class="def field"><a href="#type-role.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-role.managed" class="anchored"><td class="def field"><a href="#type-role.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-role.mentionable" class="anchored"><td class="def field"><a href="#type-role.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr></table><code>}</code></dt><dd><p>A role as Discord sends it. Only difference between this and <a href="index.html#type-t"><code>t</code></a> is the lack of the guild_id field.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_of_sexp"><a href="#val-role_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role">role</a></code></dt><dt class="spec value" id="val-sexp_of_role"><a href="#val-sexp_of_role" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role : <a href="index.html#type-role">role</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_to_yojson"><a href="#val-role_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_to_yojson : <a href="index.html#type-role">role</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_of_yojson"><a href="#val-role_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_of_yojson_exn"><a href="#val-role_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td><td class="doc"><p>The role's snowflake ID.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The role's name.</p></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int;</code></td><td class="doc"><p>The integer representation of the role colour.</p></td></tr><tr id="type-t.hoist" class="anchored"><td class="def field"><a href="#type-t.hoist" class="anchor"></a><code>hoist : bool;</code></td><td class="doc"><p>Whether the role is hoisted. This property controls whether the role is separated on the sidebar.</p></td></tr><tr id="type-t.position" class="anchored"><td class="def field"><a href="#type-t.position" class="anchor"></a><code>position : int;</code></td><td class="doc"><p>The position of the role. <code>@everyone</code> begins the list at 0.</p></td></tr><tr id="type-t.permissions" class="anchored"><td class="def field"><a href="#type-t.permissions" class="anchor"></a><code>permissions : int;</code></td><td class="doc"><p>The integer representation of the permissions the role has.</p></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td><td class="doc"><p>Whether the guild is managed by an integration.</p></td></tr><tr id="type-t.mentionable" class="anchored"><td class="def field"><a href="#type-t.mentionable" class="anchor"></a><code>mentionable : bool;</code></td><td class="doc"><p>Whether the role can be mentioned.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID this role belongs to.</p></td></tr></table><code>}</code></dt><dd><p>A role object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-role">role</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Convenience method to produce <a href="index.html#type-t"><code>t</code></a> from <a href="index.html#type-role"><code>role</code></a> and a snowflake.</p></dd></dl></details></div></div></div><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Deletes the role. This is permanent.</p></dd></dl><dl><dt class="spec value" id="val-allow_mention"><a href="#val-allow_mention" class="anchor"></a><code><span class="keyword">val </span>allow_mention : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Edits the role to allow mentions.</p></dd></dl><dl><dt class="spec value" id="val-disallow_mention"><a href="#val-disallow_mention" class="anchor"></a><code><span class="keyword">val </span>disallow_mention : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Opposite of <a href="index.html#val-allow_mention"><code>allow_mention</code></a></p></dd></dl><dl><dt class="spec value" id="val-hoist"><a href="#val-hoist" class="anchor"></a><code><span class="keyword">val </span>hoist : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Hoists the role. See <a href="index.html#type-t.hoist"><code>Role.t.hoist</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-unhoist"><a href="#val-unhoist" class="anchor"></a><code><span class="keyword">val </span>unhoist : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Opposite of <a href="index.html#type-role.hoist"><code>hoist</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-set_colour"><a href="#val-set_colour" class="anchor"></a><code><span class="keyword">val </span>set_colour : colour:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Sets the colour of the role.</p></dd></dl><dl><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Sets the name of the role.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Role_id/index.html b/docs/disml/Disml__/Role_id/index.html new file mode 100644 index 0000000..f7e3d0f --- /dev/null +++ b/docs/disml/Disml__/Role_id/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Role_id (disml.Disml__.Role_id)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Role_id</nav><h1>Module <code>Disml__.Role_id</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Role_id" class="anchored"><td class="def constructor"><a href="#type-t.Role_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Role_id<span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Role_t/index.html b/docs/disml/Disml__/Role_t/index.html new file mode 100644 index 0000000..a73af9b --- /dev/null +++ b/docs/disml/Disml__/Role_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Role_t (disml.Disml__.Role_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Role_t</nav><h1>Module <code>Disml__.Role_t</code></h1></header><dl><dt class="spec type" id="type-role"><a href="#type-role" class="anchor"></a><code><span class="keyword">type </span>role</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role.id" class="anchored"><td class="def field"><a href="#type-role.id" class="anchor"></a><code>id : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td></tr><tr id="type-role.name" class="anchored"><td class="def field"><a href="#type-role.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-role.colour" class="anchored"><td class="def field"><a href="#type-role.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-role.hoist" class="anchored"><td class="def field"><a href="#type-role.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-role.position" class="anchored"><td class="def field"><a href="#type-role.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-role.permissions" class="anchored"><td class="def field"><a href="#type-role.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-role.managed" class="anchored"><td class="def field"><a href="#type-role.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-role.mentionable" class="anchored"><td class="def field"><a href="#type-role.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr></table><code>}</code></dt><dd><p>A role as Discord sends it. Only difference between this and <a href="index.html#type-t"><code>t</code></a> is the lack of the guild_id field.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_of_sexp"><a href="#val-role_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role">role</a></code></dt><dt class="spec value" id="val-sexp_of_role"><a href="#val-sexp_of_role" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role : <a href="index.html#type-role">role</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_to_yojson"><a href="#val-role_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_to_yojson : <a href="index.html#type-role">role</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_of_yojson"><a href="#val-role_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_of_yojson_exn"><a href="#val-role_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td><td class="doc"><p>The role's snowflake ID.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The role's name.</p></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int;</code></td><td class="doc"><p>The integer representation of the role colour.</p></td></tr><tr id="type-t.hoist" class="anchored"><td class="def field"><a href="#type-t.hoist" class="anchor"></a><code>hoist : bool;</code></td><td class="doc"><p>Whether the role is hoisted. This property controls whether the role is separated on the sidebar.</p></td></tr><tr id="type-t.position" class="anchored"><td class="def field"><a href="#type-t.position" class="anchor"></a><code>position : int;</code></td><td class="doc"><p>The position of the role. <code>@everyone</code> begins the list at 0.</p></td></tr><tr id="type-t.permissions" class="anchored"><td class="def field"><a href="#type-t.permissions" class="anchor"></a><code>permissions : int;</code></td><td class="doc"><p>The integer representation of the permissions the role has.</p></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td><td class="doc"><p>Whether the guild is managed by an integration.</p></td></tr><tr id="type-t.mentionable" class="anchored"><td class="def field"><a href="#type-t.mentionable" class="anchor"></a><code>mentionable : bool;</code></td><td class="doc"><p>Whether the role can be mentioned.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID this role belongs to.</p></td></tr></table><code>}</code></dt><dd><p>A role object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-role">role</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Convenience method to produce <a href="index.html#type-t"><code>t</code></a> from <a href="index.html#type-role"><code>role</code></a> and a snowflake.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/S/index.html b/docs/disml/Disml__/S/index.html new file mode 100644 index 0000000..f8082c6 --- /dev/null +++ b/docs/disml/Disml__/S/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>S (disml.Disml__.S)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » S</nav><h1>Module <code>Disml__.S</code></h1></header><div class="spec module-type" id="module-type-HasSnowflake"><a href="#module-type-HasSnowflake" class="anchor"></a><code><span class="keyword">module type </span><a href="module-type-HasSnowflake/index.html">HasSnowflake</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module-type" id="module-type-ChannelImpl"><a href="#module-type-ChannelImpl" class="anchor"></a><code><span class="keyword">module type </span><a href="module-type-ChannelImpl/index.html">ChannelImpl</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module-type" id="module-type-GuildImpl"><a href="#module-type-GuildImpl" class="anchor"></a><code><span class="keyword">module type </span><a href="module-type-GuildImpl/index.html">GuildImpl</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module-type" id="module-type-UserImpl"><a href="#module-type-UserImpl" class="anchor"></a><code><span class="keyword">module type </span><a href="module-type-UserImpl/index.html">UserImpl</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/S/module-type-ChannelImpl/index.html b/docs/disml/Disml__/S/module-type-ChannelImpl/index.html new file mode 100644 index 0000000..5990efe --- /dev/null +++ b/docs/disml/Disml__/S/module-type-ChannelImpl/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelImpl (disml.Disml__.S.ChannelImpl)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">S</a> » ChannelImpl</nav><h1>Module type <code>S.ChannelImpl</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../../Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <a href="index.html#exception-Invalid_message"><code>Invalid_message</code></a> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!hello" msg.content then
+ let embed = Embed.(default |> title "Hello World!") in
+ Channel_id.send_message ~embed msg.channel_id >>> ignore
+
+ Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p><code>say str ch</code> is equivalent to <code>send_message ~content:str ch</code>.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/S/module-type-GuildImpl/index.html b/docs/disml/Disml__/S/module-type-GuildImpl/index.html new file mode 100644 index 0000000..634f483 --- /dev/null +++ b/docs/disml/Disml__/S/module-type-GuildImpl/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildImpl (disml.Disml__.S.GuildImpl)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">S</a> » GuildImpl</nav><h1>Module type <code>S.GuildImpl</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Ban_t/index.html#type-t">Disml__.Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Ban_t/index.html#type-t">Disml__.Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Member_t/index.html#type-t">Disml__.Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/S/module-type-HasSnowflake/index.html b/docs/disml/Disml__/S/module-type-HasSnowflake/index.html new file mode 100644 index 0000000..77b01ab --- /dev/null +++ b/docs/disml/Disml__/S/module-type-HasSnowflake/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>HasSnowflake (disml.Disml__.S.HasSnowflake)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">S</a> » HasSnowflake</nav><h1>Module type <code>S.HasSnowflake</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/S/module-type-UserImpl/index.html b/docs/disml/Disml__/S/module-type-UserImpl/index.html new file mode 100644 index 0000000..30ae4ba --- /dev/null +++ b/docs/disml/Disml__/S/module-type-UserImpl/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>UserImpl (disml.Disml__.S.UserImpl)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">S</a> » UserImpl</nav><h1>Module type <code>S.UserImpl</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Sharder/Shard/index.html b/docs/disml/Disml__/Sharder/Shard/index.html new file mode 100644 index 0000000..5a0039d --- /dev/null +++ b/docs/disml/Disml__/Sharder/Shard/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Shard (disml.Disml__.Sharder.Shard)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__</a> » <a href="../index.html">Sharder</a> » Shard</nav><h1>Module <code>Sharder.Shard</code></h1><p>Module representing a single shard.</p></header><dl><dt class="spec type" id="type-shard"><a href="#type-shard" class="anchor"></a><code><span class="keyword">type </span>shard</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-shard.hb_interval" class="anchored"><td class="def field"><a href="#type-shard.hb_interval" class="anchor"></a><code>hb_interval : Core.Time.Span.t Async.Ivar.t;</code></td><td class="doc"><p>Time span between heartbeats, wrapped in an Ivar.</p></td></tr><tr id="type-shard.seq" class="anchored"><td class="def field"><a href="#type-shard.seq" class="anchor"></a><code>seq : int;</code></td><td class="doc"><p>Current sequence number</p></td></tr><tr id="type-shard.session" class="anchored"><td class="def field"><a href="#type-shard.session" class="anchor"></a><code>session : string option;</code></td><td class="doc"><p>Session id, if one exists.</p></td></tr><tr id="type-shard.pipe" class="anchored"><td class="def field"><a href="#type-shard.pipe" class="anchor"></a><code>pipe : Websocket_async.Frame.t Async.Pipe.Reader.t<span class="keyword"> * </span>Websocket_async.Frame.t Async.Pipe.Writer.t;</code></td><td class="doc"><p>Raw frame IO pipe used for websocket communications.</p></td></tr><tr id="type-shard.ready" class="anchored"><td class="def field"><a href="#type-shard.ready" class="anchor"></a><code>ready : unit Async.Ivar.t;</code></td><td class="doc"><p>A simple Ivar indicating if the shard has received READY.</p></td></tr><tr id="type-shard.url" class="anchored"><td class="def field"><a href="#type-shard.url" class="anchor"></a><code>url : string;</code></td><td class="doc"><p>The websocket URL in use.</p></td></tr><tr id="type-shard.id" class="anchored"><td class="def field"><a href="#type-shard.id" class="anchor"></a><code>id : int<span class="keyword"> * </span>int;</code></td><td class="doc"><p>A tuple as expected by Discord. First element is the current shard index, second element is the total shard count.</p></td></tr><tr id="type-shard._internal" class="anchored"><td class="def field"><a href="#type-shard._internal" class="anchor"></a><code>_internal : Async.Reader.t<span class="keyword"> * </span>Async.Writer.t;</code></td></tr></table><code>}</code></dt><dd><p>Representation of the state of a shard.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>'a t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.state" class="anchored"><td class="def field"><a href="#type-t.state" class="anchor"></a><code><span class="keyword">mutable </span>state : <span class="type-var">'a</span>;</code></td></tr></table><code>}</code></dt><dd><p>Wrapper around an internal state, used to wrap <a href="index.html#type-shard"><code>shard</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-heartbeat"><a href="#val-heartbeat" class="anchor"></a><code><span class="keyword">val </span>heartbeat : <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Send a heartbeat to Discord. This is handled automatically.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Set the status of the shard.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Request guild members for the shard's guild. Causes dispatch of multiple <a href="../../Dispatch/index.html#val-members_chunk"><span>member chunk</span></a> events.</p></dd></dl><dl><dt class="spec value" id="val-create"><a href="#val-create" class="anchor"></a><code><span class="keyword">val </span>create : url:string <span>-></span> shards:(int<span class="keyword"> * </span>int) <span>-></span> unit <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Create a new shard</p></dd></dl><dl><dt class="spec value" id="val-shutdown_clean"><a href="#val-shutdown_clean" class="anchor"></a><code><span class="keyword">val </span>shutdown_clean : <a href="index.html#type-shard">shard</a> <span>-></span> unit Async.Deferred.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Sharder/index.html b/docs/disml/Disml__/Sharder/index.html new file mode 100644 index 0000000..394a247 --- /dev/null +++ b/docs/disml/Disml__/Sharder/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Sharder (disml.Disml__.Sharder)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Sharder</nav><h1>Module <code>Disml__.Sharder</code></h1></header><aside><p>Internal sharding manager. Most of this is accessed through <a href="../Client/index.html"><code>Client</code></a>.</p></aside><dl><dt class="spec exception" id="exception-Invalid_Payload"><a href="#exception-Invalid_Payload" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_Payload</span></code></dt><dt class="spec exception" id="exception-Failure_to_Establish_Heartbeat"><a href="#exception-Failure_to_Establish_Heartbeat" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Failure_to_Establish_Heartbeat</span></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> unit <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Sharder. This is called by <a href="../Client/index.html#val-start"><code>Client.start</code></a>.</p></dd></dl><dl><dt class="spec module" id="module-Shard"><a href="#module-Shard" class="anchor"></a><code><span class="keyword">module </span><a href="Shard/index.html">Shard</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Module representing a single shard.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-set_status"><code>Shard.set_status</code></a> for each shard registered with the sharder.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="Shard/index.html#type-shard">Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Like <a href="index.html#val-set_status"><code>set_status</code></a> but takes a function with a <a href="Shard/index.html#type-shard"><span>shard</span></a> as its parameter and <span class="xref-unresolved" title="unresolved reference to "Yojson.Safe.json""><span>json</span></span> for its return.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-request_guild_members"><code>Shard.request_guild_members</code></a> for each shard registered with the sharder.</p></dd></dl><dl><dt class="spec value" id="val-shutdown_all"><a href="#val-shutdown_all" class="anchor"></a><code><span class="keyword">val </span>shutdown_all : <a href="index.html#type-t">t</a> <span>-></span> unit list Async.Deferred.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/Snowflake/index.html b/docs/disml/Disml__/Snowflake/index.html new file mode 100644 index 0000000..7bb6b2c --- /dev/null +++ b/docs/disml/Disml__/Snowflake/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Snowflake (disml.Disml__.Snowflake)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » Snowflake</nav><h1>Module <code>Disml__.Snowflake</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span>Core.Int.t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-time_of_t"><a href="#val-time_of_t" class="anchor"></a><code><span class="keyword">val </span>time_of_t : <a href="index.html#type-t">t</a> <span>-></span> Core.Time.t</code></dt><dd><p>Convert a snowflake into a <span class="xref-unresolved" title="unresolved reference to "Core.Time.t""><span class="xref-unresolved" title="unresolved reference to "Core.Time""><code>Core</code>.Time</span>.t</span></p></dd></dl><dl><dt class="spec value" id="val-timestamp"><a href="#val-timestamp" class="anchor"></a><code><span class="keyword">val </span>timestamp : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><p>Convert a snowflake into a Unix timestamp. Millisecond precision.</p></dd></dl><dl><dt class="spec value" id="val-timestamp_iso"><a href="#val-timestamp_iso" class="anchor"></a><code><span class="keyword">val </span>timestamp_iso : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>Convert a snowflake into an ISO8601 timestamp string. This is equivalent to calling <code>Snowflake.time_of_t snowflake |> Time.(to_string_iso8601_basic ~zone:Zone.utc)</code></p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/User/index.html b/docs/disml/Disml__/User/index.html new file mode 100644 index 0000000..119415a --- /dev/null +++ b/docs/disml/Disml__/User/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>User (disml.Disml__.User)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » User</nav><h1>Module <code>Disml__.User</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-User_t">Disml__.User_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_user"><a href="#type-partial_user" class="anchor"></a><code><span class="keyword">type </span>partial_user</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_user.id" class="anchored"><td class="def field"><a href="#type-partial_user.id" class="anchor"></a><code>id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>A partial user. Used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_user_of_sexp"><a href="#val-partial_user_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt><dt class="spec value" id="val-sexp_of_partial_user"><a href="#val-sexp_of_partial_user" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_user : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_user_to_yojson"><a href="#val-partial_user_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_to_yojson : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_user_of_yojson"><a href="#val-partial_user_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_user_of_yojson_exn"><a href="#val-partial_user_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td><td class="doc"><p>The user's Snowflake ID, wrapped in the convenience <code>`User_id</code> type.</p></td></tr><tr id="type-t.username" class="anchored"><td class="def field"><a href="#type-t.username" class="anchor"></a><code>username : string;</code></td><td class="doc"><p>The username of the user.</p></td></tr><tr id="type-t.discriminator" class="anchored"><td class="def field"><a href="#type-t.discriminator" class="anchor"></a><code>discriminator : string;</code></td><td class="doc"><p>The 4 digits, as a string, that come after the '#' in a Discord username.</p></td></tr><tr id="type-t.avatar" class="anchored"><td class="def field"><a href="#type-t.avatar" class="anchor"></a><code>avatar : string option;</code></td><td class="doc"><p>The hash of the user avatar, if they have one set. See <a href="index.html#val-face"><code>User.face</code></a> to get the avatar URL.</p></td></tr><tr id="type-t.bot" class="anchored"><td class="def field"><a href="#type-t.bot" class="anchor"></a><code>bot : bool;</code></td><td class="doc"><p>Whether the user is a bot.</p></td></tr></table><code>}</code></dt><dd><p>A user object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-tag"><a href="#val-tag" class="anchor"></a><code><span class="keyword">val </span>tag : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>The user tag. Equivalent to concatenating the username and discriminator, separated by a '#'.</p></dd></dl><dl><dt class="spec value" id="val-mention"><a href="#val-mention" class="anchor"></a><code><span class="keyword">val </span>mention : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>The mention string for the user. Equivalent to <code><@USER_ID></code>.</p></dd></dl><dl><dt class="spec value" id="val-default_avatar"><a href="#val-default_avatar" class="anchor"></a><code><span class="keyword">val </span>default_avatar : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>The default avatar for the user.</p></dd></dl><dl><dt class="spec value" id="val-face"><a href="#val-face" class="anchor"></a><code><span class="keyword">val </span>face : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>The avatar url of the user, falling back to the default avatar.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/User_id/index.html b/docs/disml/Disml__/User_id/index.html new file mode 100644 index 0000000..403b4e1 --- /dev/null +++ b/docs/disml/Disml__/User_id/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>User_id (disml.Disml__.User_id)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » User_id</nav><h1>Module <code>Disml__.User_id</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../index.html#module-User_id_t">Disml__.User_id_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.User_id" class="anchored"><td class="def constructor"><a href="#type-t.User_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`User_id<span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../S/index.html#module-type-UserImpl">Disml__.S.UserImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../S/module-type-UserImpl/index.html#type-t">t</a> := <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/User_id_t/index.html b/docs/disml/Disml__/User_id_t/index.html new file mode 100644 index 0000000..7500640 --- /dev/null +++ b/docs/disml/Disml__/User_id_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>User_id_t (disml.Disml__.User_id_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » User_id_t</nav><h1>Module <code>Disml__.User_id_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.User_id" class="anchored"><td class="def constructor"><a href="#type-t.User_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`User_id<span class="keyword"> of </span><a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/User_t/index.html b/docs/disml/Disml__/User_t/index.html new file mode 100644 index 0000000..17a3644 --- /dev/null +++ b/docs/disml/Disml__/User_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>User_t (disml.Disml__.User_t)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__</a> » User_t</nav><h1>Module <code>Disml__.User_t</code></h1></header><dl><dt class="spec type" id="type-partial_user"><a href="#type-partial_user" class="anchor"></a><code><span class="keyword">type </span>partial_user</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_user.id" class="anchored"><td class="def field"><a href="#type-partial_user.id" class="anchor"></a><code>id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>A partial user. Used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_user_of_sexp"><a href="#val-partial_user_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt><dt class="spec value" id="val-sexp_of_partial_user"><a href="#val-sexp_of_partial_user" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_user : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_user_to_yojson"><a href="#val-partial_user_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_to_yojson : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_user_of_yojson"><a href="#val-partial_user_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_user_of_yojson_exn"><a href="#val-partial_user_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td><td class="doc"><p>The user's Snowflake ID, wrapped in the convenience <code>`User_id</code> type.</p></td></tr><tr id="type-t.username" class="anchored"><td class="def field"><a href="#type-t.username" class="anchor"></a><code>username : string;</code></td><td class="doc"><p>The username of the user.</p></td></tr><tr id="type-t.discriminator" class="anchored"><td class="def field"><a href="#type-t.discriminator" class="anchor"></a><code>discriminator : string;</code></td><td class="doc"><p>The 4 digits, as a string, that come after the '#' in a Discord username.</p></td></tr><tr id="type-t.avatar" class="anchored"><td class="def field"><a href="#type-t.avatar" class="anchor"></a><code>avatar : string option;</code></td><td class="doc"><p>The hash of the user avatar, if they have one set. See <a href="../User/index.html#val-face"><code>User.face</code></a> to get the avatar URL.</p></td></tr><tr id="type-t.bot" class="anchored"><td class="def field"><a href="#type-t.bot" class="anchor"></a><code>bot : bool;</code></td><td class="doc"><p>Whether the user is a bot.</p></td></tr></table><code>}</code></dt><dd><p>A user object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__/index.html b/docs/disml/Disml__/index.html new file mode 100644 index 0000000..73ec196 --- /dev/null +++ b/docs/disml/Disml__/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__ (disml.Disml__)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__</nav><h1>Module <code>Disml__</code></h1></header><dl><dt class="spec module" id="module-Activity"><a href="#module-Activity" class="anchor"></a><code><span class="keyword">module </span><a href="Activity/index.html">Activity</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Attachment"><a href="#module-Attachment" class="anchor"></a><code><span class="keyword">module </span><a href="Attachment/index.html">Attachment</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Ban"><a href="#module-Ban" class="anchor"></a><code><span class="keyword">module </span><a href="Ban/index.html">Ban</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Ban_t"><a href="#module-Ban_t" class="anchor"></a><code><span class="keyword">module </span><a href="Ban_t/index.html">Ban_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Channel"><a href="#module-Channel" class="anchor"></a><code><span class="keyword">module </span><a href="Channel/index.html">Channel</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Channel_id"><a href="#module-Channel_id" class="anchor"></a><code><span class="keyword">module </span><a href="Channel_id/index.html">Channel_id</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Channel_id_t"><a href="#module-Channel_id_t" class="anchor"></a><code><span class="keyword">module </span><a href="Channel_id_t/index.html">Channel_id_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Channel_t"><a href="#module-Channel_t" class="anchor"></a><code><span class="keyword">module </span><a href="Channel_t/index.html">Channel_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Client"><a href="#module-Client" class="anchor"></a><code><span class="keyword">module </span><a href="Client/index.html">Client</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Client_options"><a href="#module-Client_options" class="anchor"></a><code><span class="keyword">module </span><a href="Client_options/index.html">Client_options</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Disml"><a href="#module-Disml" class="anchor"></a><code><span class="keyword">module </span>Disml = <a href="../Disml/index.html">Disml</a></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Dispatch"><a href="#module-Dispatch" class="anchor"></a><code><span class="keyword">module </span><a href="Dispatch/index.html">Dispatch</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Embed"><a href="#module-Embed" class="anchor"></a><code><span class="keyword">module </span><a href="Embed/index.html">Embed</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Emoji"><a href="#module-Emoji" class="anchor"></a><code><span class="keyword">module </span><a href="Emoji/index.html">Emoji</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Endpoints"><a href="#module-Endpoints" class="anchor"></a><code><span class="keyword">module </span><a href="Endpoints/index.html">Endpoints</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Event"><a href="#module-Event" class="anchor"></a><code><span class="keyword">module </span><a href="Event/index.html">Event</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Event_models"><a href="#module-Event_models" class="anchor"></a><code><span class="keyword">module </span><a href="Event_models/index.html">Event_models</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Guild"><a href="#module-Guild" class="anchor"></a><code><span class="keyword">module </span><a href="Guild/index.html">Guild</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Guild_id"><a href="#module-Guild_id" class="anchor"></a><code><span class="keyword">module </span><a href="Guild_id/index.html">Guild_id</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Guild_id_t"><a href="#module-Guild_id_t" class="anchor"></a><code><span class="keyword">module </span><a href="Guild_id_t/index.html">Guild_id_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Guild_t"><a href="#module-Guild_t" class="anchor"></a><code><span class="keyword">module </span><a href="Guild_t/index.html">Guild_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Http"><a href="#module-Http" class="anchor"></a><code><span class="keyword">module </span><a href="Http/index.html">Http</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Impl"><a href="#module-Impl" class="anchor"></a><code><span class="keyword">module </span><a href="Impl/index.html">Impl</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Member"><a href="#module-Member" class="anchor"></a><code><span class="keyword">module </span><a href="Member/index.html">Member</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Member_t"><a href="#module-Member_t" class="anchor"></a><code><span class="keyword">module </span><a href="Member_t/index.html">Member_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Message"><a href="#module-Message" class="anchor"></a><code><span class="keyword">module </span><a href="Message/index.html">Message</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Message_id"><a href="#module-Message_id" class="anchor"></a><code><span class="keyword">module </span><a href="Message_id/index.html">Message_id</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Message_t"><a href="#module-Message_t" class="anchor"></a><code><span class="keyword">module </span><a href="Message_t/index.html">Message_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Opcode"><a href="#module-Opcode" class="anchor"></a><code><span class="keyword">module </span><a href="Opcode/index.html">Opcode</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Presence"><a href="#module-Presence" class="anchor"></a><code><span class="keyword">module </span><a href="Presence/index.html">Presence</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Reaction"><a href="#module-Reaction" class="anchor"></a><code><span class="keyword">module </span><a href="Reaction/index.html">Reaction</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Reaction_t"><a href="#module-Reaction_t" class="anchor"></a><code><span class="keyword">module </span><a href="Reaction_t/index.html">Reaction_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Rl"><a href="#module-Rl" class="anchor"></a><code><span class="keyword">module </span><a href="Rl/index.html">Rl</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Role"><a href="#module-Role" class="anchor"></a><code><span class="keyword">module </span><a href="Role/index.html">Role</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Role_id"><a href="#module-Role_id" class="anchor"></a><code><span class="keyword">module </span><a href="Role_id/index.html">Role_id</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Role_t"><a href="#module-Role_t" class="anchor"></a><code><span class="keyword">module </span><a href="Role_t/index.html">Role_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-S"><a href="#module-S" class="anchor"></a><code><span class="keyword">module </span><a href="S/index.html">S</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Sharder"><a href="#module-Sharder" class="anchor"></a><code><span class="keyword">module </span><a href="Sharder/index.html">Sharder</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-Snowflake"><a href="#module-Snowflake" class="anchor"></a><code><span class="keyword">module </span><a href="Snowflake/index.html">Snowflake</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-User"><a href="#module-User" class="anchor"></a><code><span class="keyword">module </span><a href="User/index.html">User</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-User_id"><a href="#module-User_id" class="anchor"></a><code><span class="keyword">module </span><a href="User_id/index.html">User_id</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-User_id_t"><a href="#module-User_id_t" class="anchor"></a><code><span class="keyword">module </span><a href="User_id_t/index.html">User_id_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl><dl><dt class="spec module" id="module-User_t"><a href="#module-User_t" class="anchor"></a><code><span class="keyword">module </span><a href="User_t/index.html">User_t</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Activity/index.html b/docs/disml/Disml__Activity/index.html index 641b8a4..c072f5f 100644 --- a/docs/disml/Disml__Activity/index.html +++ b/docs/disml/Disml__Activity/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Activity (disml.Disml__Activity)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Activity</nav><h1>Module <code>Disml__Activity</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Activity (disml.Disml__Activity)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Activity</nav><h1>Module <code>Disml__Activity</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The name of the activity.</p></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td><td class="doc"><p>0 = Playing, 1 = Streaming, 2 = Listening, 3 = Watching</p></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string option;</code></td><td class="doc"><p>Stream URL. Only validated for kind = 1.</p></td></tr></table><code>}</code></dt><dd><p>An activity object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Attachment/index.html b/docs/disml/Disml__Attachment/index.html index 38086fe..dffa8f8 100644 --- a/docs/disml/Disml__Attachment/index.html +++ b/docs/disml/Disml__Attachment/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Attachment (disml.Disml__Attachment)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Attachment</nav><h1>Module <code>Disml__Attachment</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.filename" class="anchored"><td class="def field"><a href="#type-t.filename" class="anchor"></a><code>filename : string;</code></td></tr><tr id="type-t.size" class="anchored"><td class="def field"><a href="#type-t.size" class="anchor"></a><code>size : int;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string;</code></td></tr><tr id="type-t.proxy_url" class="anchored"><td class="def field"><a href="#type-t.proxy_url" class="anchor"></a><code>proxy_url : string;</code></td></tr><tr id="type-t.height" class="anchored"><td class="def field"><a href="#type-t.height" class="anchor"></a><code>height : int;</code></td></tr><tr id="type-t.width" class="anchored"><td class="def field"><a href="#type-t.width" class="anchor"></a><code>width : int;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Attachment (disml.Disml__Attachment)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Attachment</nav><h1>Module <code>Disml__Attachment</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a>;</code></td></tr><tr id="type-t.filename" class="anchored"><td class="def field"><a href="#type-t.filename" class="anchor"></a><code>filename : string;</code></td></tr><tr id="type-t.size" class="anchored"><td class="def field"><a href="#type-t.size" class="anchor"></a><code>size : int;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string;</code></td></tr><tr id="type-t.proxy_url" class="anchored"><td class="def field"><a href="#type-t.proxy_url" class="anchor"></a><code>proxy_url : string;</code></td></tr><tr id="type-t.height" class="anchored"><td class="def field"><a href="#type-t.height" class="anchor"></a><code>height : int;</code></td></tr><tr id="type-t.width" class="anchored"><td class="def field"><a href="#type-t.width" class="anchor"></a><code>width : int;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Ban/index.html b/docs/disml/Disml__Ban/index.html index 282fb66..c02f94e 100644 --- a/docs/disml/Disml__Ban/index.html +++ b/docs/disml/Disml__Ban/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Ban (disml.Disml__Ban)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Ban</nav><h1>Module <code>Disml__Ban</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-Ban_t">Disml.Ban_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.reason" class="anchored"><td class="def field"><a href="#type-t.reason" class="anchor"></a><code>reason : string;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Ban (disml.Disml__Ban)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Ban</nav><h1>Module <code>Disml__Ban</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Ban_t">Disml__.Ban_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.reason" class="anchored"><td class="def field"><a href="#type-t.reason" class="anchor"></a><code>reason : string option;</code></td><td class="doc"><p>The reason for the ban.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The banned user.</p></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Ban_t/index.html b/docs/disml/Disml__Ban_t/index.html index fa62235..1192bb0 100644 --- a/docs/disml/Disml__Ban_t/index.html +++ b/docs/disml/Disml__Ban_t/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Ban_t (disml.Disml__Ban_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Ban_t</nav><h1>Module <code>Disml__Ban_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.reason" class="anchored"><td class="def field"><a href="#type-t.reason" class="anchor"></a><code>reason : string;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Ban_t (disml.Disml__Ban_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Ban_t</nav><h1>Module <code>Disml__Ban_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.reason" class="anchored"><td class="def field"><a href="#type-t.reason" class="anchor"></a><code>reason : string option;</code></td><td class="doc"><p>The reason for the ban.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The banned user.</p></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Channel/index.html b/docs/disml/Disml__Channel/index.html index d6bedf1..b5cc470 100644 --- a/docs/disml/Disml__Channel/index.html +++ b/docs/disml/Disml__Channel/index.html @@ -1,10 +1,10 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Channel (disml.Disml__Channel)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Channel</nav><h1>Module <code>Disml__Channel</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-Channel_t">Disml.Channel_t</a></code></span></summary><aside></aside><dl><dt class="spec exception" id="exception-Invalid_channel"><a href="#exception-Invalid_channel" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_channel</span><span class="keyword"> of </span>Yojson.Safe.json</code></dt></dl><dl><dt class="spec type" id="type-group"><a href="#type-group" class="anchor"></a><code><span class="keyword">type </span>group</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-group.id" class="anchored"><td class="def field"><a href="#type-group.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-group.last_message_id" class="anchored"><td class="def field"><a href="#type-group.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-group.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-group.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-group.icon" class="anchored"><td class="def field"><a href="#type-group.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-group.name" class="anchored"><td class="def field"><a href="#type-group.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-group.owner_id" class="anchored"><td class="def field"><a href="#type-group.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-group.recipients" class="anchored"><td class="def field"><a href="#type-group.recipients" class="anchor"></a><code>recipients : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-group_of_sexp"><a href="#val-group_of_sexp" class="anchor"></a><code><span class="keyword">val </span>group_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-sexp_of_group"><a href="#val-sexp_of_group" class="anchor"></a><code><span class="keyword">val </span>sexp_of_group : <a href="index.html#type-group">group</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-group_to_yojson"><a href="#val-group_to_yojson" class="anchor"></a><code><span class="keyword">val </span>group_to_yojson : <a href="index.html#type-group">group</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-group_of_yojson"><a href="#val-group_of_yojson" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-group_of_yojson_exn"><a href="#val-group_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a></code></dt></dl><dl><dt class="spec type" id="type-dm"><a href="#type-dm" class="anchor"></a><code><span class="keyword">type </span>dm</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-dm.id" class="anchored"><td class="def field"><a href="#type-dm.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-dm.last_message_id" class="anchored"><td class="def field"><a href="#type-dm.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-dm.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-dm.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-dm_of_sexp"><a href="#val-dm_of_sexp" class="anchor"></a><code><span class="keyword">val </span>dm_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-sexp_of_dm"><a href="#val-sexp_of_dm" class="anchor"></a><code><span class="keyword">val </span>sexp_of_dm : <a href="index.html#type-dm">dm</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-dm_to_yojson"><a href="#val-dm_to_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_to_yojson : <a href="index.html#type-dm">dm</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-dm_of_yojson"><a href="#val-dm_of_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-dm_of_yojson_exn"><a href="#val-dm_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a></code></dt></dl><dl><dt class="spec type" id="type-guild_text"><a href="#type-guild_text" class="anchor"></a><code><span class="keyword">type </span>guild_text</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_text.id" class="anchored"><td class="def field"><a href="#type-guild_text.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-guild_text.last_message_id" class="anchored"><td class="def field"><a href="#type-guild_text.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-guild_text.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-guild_text.category_id" class="anchored"><td class="def field"><a href="#type-guild_text.category_id" class="anchor"></a><code>category_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.guild_id" class="anchored"><td class="def field"><a href="#type-guild_text.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.name" class="anchored"><td class="def field"><a href="#type-guild_text.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_text.position" class="anchored"><td class="def field"><a href="#type-guild_text.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_text.topic" class="anchored"><td class="def field"><a href="#type-guild_text.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-guild_text.nsfw" class="anchored"><td class="def field"><a href="#type-guild_text.nsfw" class="anchor"></a><code>nsfw : bool;</code></td></tr><tr id="type-guild_text.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-guild_text.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_text_of_sexp"><a href="#val-guild_text_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-sexp_of_guild_text"><a href="#val-sexp_of_guild_text" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_text : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_text_to_yojson"><a href="#val-guild_text_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_to_yojson : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_text_of_yojson"><a href="#val-guild_text_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_text_of_yojson_exn"><a href="#val-guild_text_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt></dl><dl><dt class="spec type" id="type-guild_voice"><a href="#type-guild_voice" class="anchor"></a><code><span class="keyword">type </span>guild_voice</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_voice.id" class="anchored"><td class="def field"><a href="#type-guild_voice.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-guild_voice.category_id" class="anchored"><td class="def field"><a href="#type-guild_voice.category_id" class="anchor"></a><code>category_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_voice.guild_id" class="anchored"><td class="def field"><a href="#type-guild_voice.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_voice.name" class="anchored"><td class="def field"><a href="#type-guild_voice.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_voice.position" class="anchored"><td class="def field"><a href="#type-guild_voice.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_voice.user_limit" class="anchored"><td class="def field"><a href="#type-guild_voice.user_limit" class="anchor"></a><code>user_limit : int;</code></td></tr><tr id="type-guild_voice.bitrate" class="anchored"><td class="def field"><a href="#type-guild_voice.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_voice_of_sexp"><a href="#val-guild_voice_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-sexp_of_guild_voice"><a href="#val-sexp_of_guild_voice" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_voice : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_voice_to_yojson"><a href="#val-guild_voice_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_to_yojson : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_voice_of_yojson"><a href="#val-guild_voice_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_voice_of_yojson_exn"><a href="#val-guild_voice_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt></dl><dl><dt class="spec type" id="type-category"><a href="#type-category" class="anchor"></a><code><span class="keyword">type </span>category</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-category.id" class="anchored"><td class="def field"><a href="#type-category.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-category.guild_id" class="anchored"><td class="def field"><a href="#type-category.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-category.position" class="anchored"><td class="def field"><a href="#type-category.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-category.name" class="anchored"><td class="def field"><a href="#type-category.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-category_of_sexp"><a href="#val-category_of_sexp" class="anchor"></a><code><span class="keyword">val </span>category_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-sexp_of_category"><a href="#val-sexp_of_category" class="anchor"></a><code><span class="keyword">val </span>sexp_of_category : <a href="index.html#type-category">category</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-category_to_yojson"><a href="#val-category_to_yojson" class="anchor"></a><code><span class="keyword">val </span>category_to_yojson : <a href="index.html#type-category">category</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-category_of_yojson"><a href="#val-category_of_yojson" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-category_of_yojson_exn"><a href="#val-category_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.Group" class="anchored"><td class="def constructor"><a href="#type-t.Group" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Group</span><span class="keyword"> of </span><a href="index.html#type-group">group</a></code></td></tr><tr id="type-t.Private" class="anchored"><td class="def constructor"><a href="#type-t.Private" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Private</span><span class="keyword"> of </span><a href="index.html#type-dm">dm</a></code></td></tr><tr id="type-t.GuildText" class="anchored"><td class="def constructor"><a href="#type-t.GuildText" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildText</span><span class="keyword"> of </span><a href="index.html#type-guild_text">guild_text</a></code></td></tr><tr id="type-t.GuildVoice" class="anchored"><td class="def constructor"><a href="#type-t.GuildVoice" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildVoice</span><span class="keyword"> of </span><a href="index.html#type-guild_voice">guild_voice</a></code></td></tr><tr id="type-t.Category" class="anchored"><td class="def constructor"><a href="#type-t.Category" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Category</span><span class="keyword"> of </span><a href="index.html#type-category">category</a></code></td></tr></table></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl><dl><dt class="spec type" id="type-channel_wrapper"><a href="#type-channel_wrapper" class="anchor"></a><code><span class="keyword">type </span>channel_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-channel_wrapper.id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-channel_wrapper.kind" class="anchored"><td class="def field"><a href="#type-channel_wrapper.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-channel_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.position" class="anchored"><td class="def field"><a href="#type-channel_wrapper.position" class="anchor"></a><code>position : int option;</code></td></tr><tr id="type-channel_wrapper.name" class="anchored"><td class="def field"><a href="#type-channel_wrapper.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-channel_wrapper.topic" class="anchored"><td class="def field"><a href="#type-channel_wrapper.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-channel_wrapper.nsfw" class="anchored"><td class="def field"><a href="#type-channel_wrapper.nsfw" class="anchor"></a><code>nsfw : bool option;</code></td></tr><tr id="type-channel_wrapper.last_message_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.bitrate" class="anchored"><td class="def field"><a href="#type-channel_wrapper.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr><tr id="type-channel_wrapper.user_limit" class="anchored"><td class="def field"><a href="#type-channel_wrapper.user_limit" class="anchor"></a><code>user_limit : int option;</code></td></tr><tr id="type-channel_wrapper.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-channel_wrapper.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr><tr id="type-channel_wrapper.recipients" class="anchored"><td class="def field"><a href="#type-channel_wrapper.recipients" class="anchor"></a><code>recipients : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a> list option;</code></td></tr><tr id="type-channel_wrapper.icon" class="anchored"><td class="def field"><a href="#type-channel_wrapper.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-channel_wrapper.owner_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.application_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.application_id" class="anchor"></a><code>application_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.category_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.category_id" class="anchor"></a><code>category_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-channel_wrapper_of_sexp"><a href="#val-channel_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_channel_wrapper"><a href="#val-sexp_of_channel_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_channel_wrapper : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-channel_wrapper_to_yojson"><a href="#val-channel_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_to_yojson : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson"><a href="#val-channel_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson_exn"><a href="#val-channel_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_text"><a href="#val-unwrap_as_guild_text" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_text : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_voice"><a href="#val-unwrap_as_guild_voice" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_voice : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-unwrap_as_dm"><a href="#val-unwrap_as_dm" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_dm : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-unwrap_as_group"><a href="#val-unwrap_as_group" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_group : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-unwrap_as_category"><a href="#val-unwrap_as_category" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_category : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a></code></dt></dl></details></div></div></div><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : content:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Message_t/index.html#type-t">Disml.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Simple version of send_message that only takes <code>~content</code></p></dd></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../Disml/Embed/index.html#type-t">Disml.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Message_t/index.html#type-t">Disml.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <span class="xref-unresolved" title="unresolved reference to "Channel.Invalid_message""><code>Channel</code>.Invalid_message</span> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml">open Core -open Disml - -let check_command (msg : Message.t) = - if String.is_prefix ~prefix:"!hello" msg.content then - let embed = { Embed.default with title = Some "Hello World!" } in - Channel.send_message ~embed msg.channel >>> ignore - -Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Message_t/index.html#type-t">Disml.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Message_t/index.html#type-t">Disml.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Message_t/index.html#type-t">Disml.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Channel (disml.Disml__Channel)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Channel</nav><h1>Module <code>Disml__Channel</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Channel_t">Disml__.Channel_t</a></code></span></summary><aside></aside><dl><dt class="spec exception" id="exception-Invalid_channel"><a href="#exception-Invalid_channel" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_channel</span><span class="keyword"> of </span>Yojson.Safe.json</code></dt></dl><dl><dt class="spec type" id="type-group"><a href="#type-group" class="anchor"></a><code><span class="keyword">type </span>group</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-group.id" class="anchored"><td class="def field"><a href="#type-group.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-group.last_message_id" class="anchored"><td class="def field"><a href="#type-group.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-group.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-group.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-group.icon" class="anchored"><td class="def field"><a href="#type-group.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-group.name" class="anchored"><td class="def field"><a href="#type-group.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-group.owner_id" class="anchored"><td class="def field"><a href="#type-group.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-group.recipients" class="anchored"><td class="def field"><a href="#type-group.recipients" class="anchor"></a><code>recipients : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> list;</code></td></tr></table><code>}</code></dt><dd><p>Represents a Group channel object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-group_of_sexp"><a href="#val-group_of_sexp" class="anchor"></a><code><span class="keyword">val </span>group_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-sexp_of_group"><a href="#val-sexp_of_group" class="anchor"></a><code><span class="keyword">val </span>sexp_of_group : <a href="index.html#type-group">group</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-group_to_yojson"><a href="#val-group_to_yojson" class="anchor"></a><code><span class="keyword">val </span>group_to_yojson : <a href="index.html#type-group">group</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-group_of_yojson"><a href="#val-group_of_yojson" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-group_of_yojson_exn"><a href="#val-group_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a></code></dt></dl><dl><dt class="spec type" id="type-dm"><a href="#type-dm" class="anchor"></a><code><span class="keyword">type </span>dm</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-dm.id" class="anchored"><td class="def field"><a href="#type-dm.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-dm.last_message_id" class="anchored"><td class="def field"><a href="#type-dm.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-dm.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-dm.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a private channel with a single user.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-dm_of_sexp"><a href="#val-dm_of_sexp" class="anchor"></a><code><span class="keyword">val </span>dm_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-sexp_of_dm"><a href="#val-sexp_of_dm" class="anchor"></a><code><span class="keyword">val </span>sexp_of_dm : <a href="index.html#type-dm">dm</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-dm_to_yojson"><a href="#val-dm_to_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_to_yojson : <a href="index.html#type-dm">dm</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-dm_of_yojson"><a href="#val-dm_of_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-dm_of_yojson_exn"><a href="#val-dm_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a></code></dt></dl><dl><dt class="spec type" id="type-guild_text"><a href="#type-guild_text" class="anchor"></a><code><span class="keyword">type </span>guild_text</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_text.id" class="anchored"><td class="def field"><a href="#type-guild_text.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-guild_text.last_message_id" class="anchored"><td class="def field"><a href="#type-guild_text.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-guild_text.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-guild_text.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-guild_text.category_id" class="anchored"><td class="def field"><a href="#type-guild_text.category_id" class="anchor"></a><code>category_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-guild_text.guild_id" class="anchored"><td class="def field"><a href="#type-guild_text.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-guild_text.name" class="anchored"><td class="def field"><a href="#type-guild_text.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_text.position" class="anchored"><td class="def field"><a href="#type-guild_text.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_text.topic" class="anchored"><td class="def field"><a href="#type-guild_text.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-guild_text.nsfw" class="anchored"><td class="def field"><a href="#type-guild_text.nsfw" class="anchor"></a><code>nsfw : bool;</code></td></tr><tr id="type-guild_text.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-guild_text.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a text channel in a guild.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_text_of_sexp"><a href="#val-guild_text_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-sexp_of_guild_text"><a href="#val-sexp_of_guild_text" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_text : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_text_to_yojson"><a href="#val-guild_text_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_to_yojson : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_text_of_yojson"><a href="#val-guild_text_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_text_of_yojson_exn"><a href="#val-guild_text_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt></dl><dl><dt class="spec type" id="type-guild_voice"><a href="#type-guild_voice" class="anchor"></a><code><span class="keyword">type </span>guild_voice</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_voice.id" class="anchored"><td class="def field"><a href="#type-guild_voice.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-guild_voice.category_id" class="anchored"><td class="def field"><a href="#type-guild_voice.category_id" class="anchor"></a><code>category_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-guild_voice.guild_id" class="anchored"><td class="def field"><a href="#type-guild_voice.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-guild_voice.name" class="anchored"><td class="def field"><a href="#type-guild_voice.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_voice.position" class="anchored"><td class="def field"><a href="#type-guild_voice.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_voice.user_limit" class="anchored"><td class="def field"><a href="#type-guild_voice.user_limit" class="anchor"></a><code>user_limit : int;</code></td></tr><tr id="type-guild_voice.bitrate" class="anchored"><td class="def field"><a href="#type-guild_voice.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a voice channel in a guild.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_voice_of_sexp"><a href="#val-guild_voice_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-sexp_of_guild_voice"><a href="#val-sexp_of_guild_voice" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_voice : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_voice_to_yojson"><a href="#val-guild_voice_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_to_yojson : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_voice_of_yojson"><a href="#val-guild_voice_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_voice_of_yojson_exn"><a href="#val-guild_voice_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt></dl><dl><dt class="spec type" id="type-category"><a href="#type-category" class="anchor"></a><code><span class="keyword">type </span>category</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-category.id" class="anchored"><td class="def field"><a href="#type-category.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-category.guild_id" class="anchored"><td class="def field"><a href="#type-category.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-category.position" class="anchored"><td class="def field"><a href="#type-category.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-category.name" class="anchored"><td class="def field"><a href="#type-category.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt><dd><p>Represents a guild category.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-category_of_sexp"><a href="#val-category_of_sexp" class="anchor"></a><code><span class="keyword">val </span>category_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-sexp_of_category"><a href="#val-sexp_of_category" class="anchor"></a><code><span class="keyword">val </span>sexp_of_category : <a href="index.html#type-category">category</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-category_to_yojson"><a href="#val-category_to_yojson" class="anchor"></a><code><span class="keyword">val </span>category_to_yojson : <a href="index.html#type-category">category</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-category_of_yojson"><a href="#val-category_of_yojson" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-category_of_yojson_exn"><a href="#val-category_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.Group" class="anchored"><td class="def constructor"><a href="#type-t.Group" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Group</span><span class="keyword"> of </span><a href="index.html#type-group">group</a></code></td></tr><tr id="type-t.Private" class="anchored"><td class="def constructor"><a href="#type-t.Private" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Private</span><span class="keyword"> of </span><a href="index.html#type-dm">dm</a></code></td></tr><tr id="type-t.GuildText" class="anchored"><td class="def constructor"><a href="#type-t.GuildText" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildText</span><span class="keyword"> of </span><a href="index.html#type-guild_text">guild_text</a></code></td></tr><tr id="type-t.GuildVoice" class="anchored"><td class="def constructor"><a href="#type-t.GuildVoice" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildVoice</span><span class="keyword"> of </span><a href="index.html#type-guild_voice">guild_voice</a></code></td></tr><tr id="type-t.Category" class="anchored"><td class="def constructor"><a href="#type-t.Category" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Category</span><span class="keyword"> of </span><a href="index.html#type-category">category</a></code></td></tr></table></dt><dd><p>Wrapper variant for all channel types.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl><dl><dt class="spec type" id="type-channel_wrapper"><a href="#type-channel_wrapper" class="anchor"></a><code><span class="keyword">type </span>channel_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-channel_wrapper.id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-channel_wrapper.kind" class="anchored"><td class="def field"><a href="#type-channel_wrapper.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-channel_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.position" class="anchored"><td class="def field"><a href="#type-channel_wrapper.position" class="anchor"></a><code>position : int option;</code></td></tr><tr id="type-channel_wrapper.name" class="anchored"><td class="def field"><a href="#type-channel_wrapper.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-channel_wrapper.topic" class="anchored"><td class="def field"><a href="#type-channel_wrapper.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-channel_wrapper.nsfw" class="anchored"><td class="def field"><a href="#type-channel_wrapper.nsfw" class="anchor"></a><code>nsfw : bool option;</code></td></tr><tr id="type-channel_wrapper.last_message_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-channel_wrapper.bitrate" class="anchored"><td class="def field"><a href="#type-channel_wrapper.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr><tr id="type-channel_wrapper.user_limit" class="anchored"><td class="def field"><a href="#type-channel_wrapper.user_limit" class="anchor"></a><code>user_limit : int option;</code></td></tr><tr id="type-channel_wrapper.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-channel_wrapper.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr><tr id="type-channel_wrapper.recipients" class="anchored"><td class="def field"><a href="#type-channel_wrapper.recipients" class="anchor"></a><code>recipients : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> list option;</code></td></tr><tr id="type-channel_wrapper.icon" class="anchored"><td class="def field"><a href="#type-channel_wrapper.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-channel_wrapper.owner_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.application_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.application_id" class="anchor"></a><code>application_id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.category_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.category_id" class="anchor"></a><code>category_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt><dd><p>Intermediate used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-channel_wrapper_of_sexp"><a href="#val-channel_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_channel_wrapper"><a href="#val-sexp_of_channel_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_channel_wrapper : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-channel_wrapper_to_yojson"><a href="#val-channel_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_to_yojson : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson"><a href="#val-channel_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson_exn"><a href="#val-channel_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_text"><a href="#val-unwrap_as_guild_text" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_text : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_voice"><a href="#val-unwrap_as_guild_voice" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_voice : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-unwrap_as_dm"><a href="#val-unwrap_as_dm" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_dm : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-unwrap_as_group"><a href="#val-unwrap_as_group" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_group : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-unwrap_as_category"><a href="#val-unwrap_as_category" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_category : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../Disml__/S/index.html#module-type-ChannelImpl">Disml__.S.ChannelImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../Disml__/S/module-type-ChannelImpl/index.html#type-t">t</a> := <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../Disml__/Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <a href="index.html#exception-Invalid_message"><code>Invalid_message</code></a> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!hello" msg.content then
+ let embed = Embed.(default |> title "Hello World!") in
+ Channel_id.send_message ~embed msg.channel_id >>> ignore
+
+ Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p><code>say str ch</code> is equivalent to <code>send_message ~content:str ch</code>.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Channel_id/.dune-keep b/docs/disml/Disml__Channel_id/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__Channel_id/.dune-keep diff --git a/docs/disml/Disml__Channel_id/index.html b/docs/disml/Disml__Channel_id/index.html new file mode 100644 index 0000000..70e2035 --- /dev/null +++ b/docs/disml/Disml__Channel_id/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Channel_id (disml.Disml__Channel_id)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Channel_id</nav><h1>Module <code>Disml__Channel_id</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Channel_id_t">Disml__.Channel_id_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Channel_id" class="anchored"><td class="def constructor"><a href="#type-t.Channel_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Channel_id<span class="keyword"> of </span><a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../Disml__/S/index.html#module-type-ChannelImpl">Disml__.S.ChannelImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../Disml__/S/module-type-ChannelImpl/index.html#type-t">t</a> := <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../Disml__/Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <a href="index.html#exception-Invalid_message"><code>Invalid_message</code></a> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!hello" msg.content then
+ let embed = Embed.(default |> title "Hello World!") in
+ Channel_id.send_message ~embed msg.channel_id >>> ignore
+
+ Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p><code>say str ch</code> is equivalent to <code>send_message ~content:str ch</code>.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Channel_id_t/.dune-keep b/docs/disml/Disml__Channel_id_t/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__Channel_id_t/.dune-keep diff --git a/docs/disml/Disml__Channel_id_t/index.html b/docs/disml/Disml__Channel_id_t/index.html new file mode 100644 index 0000000..f360490 --- /dev/null +++ b/docs/disml/Disml__Channel_id_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Channel_id_t (disml.Disml__Channel_id_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Channel_id_t</nav><h1>Module <code>Disml__Channel_id_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Channel_id" class="anchored"><td class="def constructor"><a href="#type-t.Channel_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Channel_id<span class="keyword"> of </span><a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Channel_t/index.html b/docs/disml/Disml__Channel_t/index.html index 5bf4191..66f9a4f 100644 --- a/docs/disml/Disml__Channel_t/index.html +++ b/docs/disml/Disml__Channel_t/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Channel_t (disml.Disml__Channel_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Channel_t</nav><h1>Module <code>Disml__Channel_t</code></h1></header><dl><dt class="spec exception" id="exception-Invalid_channel"><a href="#exception-Invalid_channel" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_channel</span><span class="keyword"> of </span>Yojson.Safe.json</code></dt></dl><dl><dt class="spec type" id="type-group"><a href="#type-group" class="anchor"></a><code><span class="keyword">type </span>group</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-group.id" class="anchored"><td class="def field"><a href="#type-group.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-group.last_message_id" class="anchored"><td class="def field"><a href="#type-group.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-group.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-group.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-group.icon" class="anchored"><td class="def field"><a href="#type-group.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-group.name" class="anchored"><td class="def field"><a href="#type-group.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-group.owner_id" class="anchored"><td class="def field"><a href="#type-group.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-group.recipients" class="anchored"><td class="def field"><a href="#type-group.recipients" class="anchor"></a><code>recipients : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-group_of_sexp"><a href="#val-group_of_sexp" class="anchor"></a><code><span class="keyword">val </span>group_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-sexp_of_group"><a href="#val-sexp_of_group" class="anchor"></a><code><span class="keyword">val </span>sexp_of_group : <a href="index.html#type-group">group</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-group_to_yojson"><a href="#val-group_to_yojson" class="anchor"></a><code><span class="keyword">val </span>group_to_yojson : <a href="index.html#type-group">group</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-group_of_yojson"><a href="#val-group_of_yojson" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-group_of_yojson_exn"><a href="#val-group_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a></code></dt></dl><dl><dt class="spec type" id="type-dm"><a href="#type-dm" class="anchor"></a><code><span class="keyword">type </span>dm</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-dm.id" class="anchored"><td class="def field"><a href="#type-dm.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-dm.last_message_id" class="anchored"><td class="def field"><a href="#type-dm.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-dm.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-dm.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-dm_of_sexp"><a href="#val-dm_of_sexp" class="anchor"></a><code><span class="keyword">val </span>dm_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-sexp_of_dm"><a href="#val-sexp_of_dm" class="anchor"></a><code><span class="keyword">val </span>sexp_of_dm : <a href="index.html#type-dm">dm</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-dm_to_yojson"><a href="#val-dm_to_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_to_yojson : <a href="index.html#type-dm">dm</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-dm_of_yojson"><a href="#val-dm_of_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-dm_of_yojson_exn"><a href="#val-dm_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a></code></dt></dl><dl><dt class="spec type" id="type-guild_text"><a href="#type-guild_text" class="anchor"></a><code><span class="keyword">type </span>guild_text</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_text.id" class="anchored"><td class="def field"><a href="#type-guild_text.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-guild_text.last_message_id" class="anchored"><td class="def field"><a href="#type-guild_text.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-guild_text.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-guild_text.category_id" class="anchored"><td class="def field"><a href="#type-guild_text.category_id" class="anchor"></a><code>category_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.guild_id" class="anchored"><td class="def field"><a href="#type-guild_text.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_text.name" class="anchored"><td class="def field"><a href="#type-guild_text.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_text.position" class="anchored"><td class="def field"><a href="#type-guild_text.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_text.topic" class="anchored"><td class="def field"><a href="#type-guild_text.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-guild_text.nsfw" class="anchored"><td class="def field"><a href="#type-guild_text.nsfw" class="anchor"></a><code>nsfw : bool;</code></td></tr><tr id="type-guild_text.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-guild_text.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_text_of_sexp"><a href="#val-guild_text_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-sexp_of_guild_text"><a href="#val-sexp_of_guild_text" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_text : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_text_to_yojson"><a href="#val-guild_text_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_to_yojson : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_text_of_yojson"><a href="#val-guild_text_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_text_of_yojson_exn"><a href="#val-guild_text_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt></dl><dl><dt class="spec type" id="type-guild_voice"><a href="#type-guild_voice" class="anchor"></a><code><span class="keyword">type </span>guild_voice</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_voice.id" class="anchored"><td class="def field"><a href="#type-guild_voice.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-guild_voice.category_id" class="anchored"><td class="def field"><a href="#type-guild_voice.category_id" class="anchor"></a><code>category_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_voice.guild_id" class="anchored"><td class="def field"><a href="#type-guild_voice.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-guild_voice.name" class="anchored"><td class="def field"><a href="#type-guild_voice.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_voice.position" class="anchored"><td class="def field"><a href="#type-guild_voice.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_voice.user_limit" class="anchored"><td class="def field"><a href="#type-guild_voice.user_limit" class="anchor"></a><code>user_limit : int;</code></td></tr><tr id="type-guild_voice.bitrate" class="anchored"><td class="def field"><a href="#type-guild_voice.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_voice_of_sexp"><a href="#val-guild_voice_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-sexp_of_guild_voice"><a href="#val-sexp_of_guild_voice" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_voice : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_voice_to_yojson"><a href="#val-guild_voice_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_to_yojson : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_voice_of_yojson"><a href="#val-guild_voice_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_voice_of_yojson_exn"><a href="#val-guild_voice_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt></dl><dl><dt class="spec type" id="type-category"><a href="#type-category" class="anchor"></a><code><span class="keyword">type </span>category</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-category.id" class="anchored"><td class="def field"><a href="#type-category.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-category.guild_id" class="anchored"><td class="def field"><a href="#type-category.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-category.position" class="anchored"><td class="def field"><a href="#type-category.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-category.name" class="anchored"><td class="def field"><a href="#type-category.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-category_of_sexp"><a href="#val-category_of_sexp" class="anchor"></a><code><span class="keyword">val </span>category_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-sexp_of_category"><a href="#val-sexp_of_category" class="anchor"></a><code><span class="keyword">val </span>sexp_of_category : <a href="index.html#type-category">category</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-category_to_yojson"><a href="#val-category_to_yojson" class="anchor"></a><code><span class="keyword">val </span>category_to_yojson : <a href="index.html#type-category">category</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-category_of_yojson"><a href="#val-category_of_yojson" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-category_of_yojson_exn"><a href="#val-category_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.Group" class="anchored"><td class="def constructor"><a href="#type-t.Group" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Group</span><span class="keyword"> of </span><a href="index.html#type-group">group</a></code></td></tr><tr id="type-t.Private" class="anchored"><td class="def constructor"><a href="#type-t.Private" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Private</span><span class="keyword"> of </span><a href="index.html#type-dm">dm</a></code></td></tr><tr id="type-t.GuildText" class="anchored"><td class="def constructor"><a href="#type-t.GuildText" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildText</span><span class="keyword"> of </span><a href="index.html#type-guild_text">guild_text</a></code></td></tr><tr id="type-t.GuildVoice" class="anchored"><td class="def constructor"><a href="#type-t.GuildVoice" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildVoice</span><span class="keyword"> of </span><a href="index.html#type-guild_voice">guild_voice</a></code></td></tr><tr id="type-t.Category" class="anchored"><td class="def constructor"><a href="#type-t.Category" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Category</span><span class="keyword"> of </span><a href="index.html#type-category">category</a></code></td></tr></table></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl><dl><dt class="spec type" id="type-channel_wrapper"><a href="#type-channel_wrapper" class="anchor"></a><code><span class="keyword">type </span>channel_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-channel_wrapper.id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-channel_wrapper.kind" class="anchored"><td class="def field"><a href="#type-channel_wrapper.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-channel_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.position" class="anchored"><td class="def field"><a href="#type-channel_wrapper.position" class="anchor"></a><code>position : int option;</code></td></tr><tr id="type-channel_wrapper.name" class="anchored"><td class="def field"><a href="#type-channel_wrapper.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-channel_wrapper.topic" class="anchored"><td class="def field"><a href="#type-channel_wrapper.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-channel_wrapper.nsfw" class="anchored"><td class="def field"><a href="#type-channel_wrapper.nsfw" class="anchor"></a><code>nsfw : bool option;</code></td></tr><tr id="type-channel_wrapper.last_message_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.bitrate" class="anchored"><td class="def field"><a href="#type-channel_wrapper.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr><tr id="type-channel_wrapper.user_limit" class="anchored"><td class="def field"><a href="#type-channel_wrapper.user_limit" class="anchor"></a><code>user_limit : int option;</code></td></tr><tr id="type-channel_wrapper.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-channel_wrapper.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr><tr id="type-channel_wrapper.recipients" class="anchored"><td class="def field"><a href="#type-channel_wrapper.recipients" class="anchor"></a><code>recipients : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a> list option;</code></td></tr><tr id="type-channel_wrapper.icon" class="anchored"><td class="def field"><a href="#type-channel_wrapper.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-channel_wrapper.owner_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.application_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.application_id" class="anchor"></a><code>application_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.category_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.category_id" class="anchor"></a><code>category_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-channel_wrapper_of_sexp"><a href="#val-channel_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_channel_wrapper"><a href="#val-sexp_of_channel_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_channel_wrapper : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-channel_wrapper_to_yojson"><a href="#val-channel_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_to_yojson : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson"><a href="#val-channel_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson_exn"><a href="#val-channel_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_text"><a href="#val-unwrap_as_guild_text" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_text : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_voice"><a href="#val-unwrap_as_guild_voice" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_voice : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-unwrap_as_dm"><a href="#val-unwrap_as_dm" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_dm : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-unwrap_as_group"><a href="#val-unwrap_as_group" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_group : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-unwrap_as_category"><a href="#val-unwrap_as_category" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_category : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Channel_t (disml.Disml__Channel_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Channel_t</nav><h1>Module <code>Disml__Channel_t</code></h1></header><dl><dt class="spec exception" id="exception-Invalid_channel"><a href="#exception-Invalid_channel" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_channel</span><span class="keyword"> of </span>Yojson.Safe.json</code></dt></dl><dl><dt class="spec type" id="type-group"><a href="#type-group" class="anchor"></a><code><span class="keyword">type </span>group</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-group.id" class="anchored"><td class="def field"><a href="#type-group.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-group.last_message_id" class="anchored"><td class="def field"><a href="#type-group.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-group.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-group.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-group.icon" class="anchored"><td class="def field"><a href="#type-group.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-group.name" class="anchored"><td class="def field"><a href="#type-group.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-group.owner_id" class="anchored"><td class="def field"><a href="#type-group.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-group.recipients" class="anchored"><td class="def field"><a href="#type-group.recipients" class="anchor"></a><code>recipients : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> list;</code></td></tr></table><code>}</code></dt><dd><p>Represents a Group channel object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-group_of_sexp"><a href="#val-group_of_sexp" class="anchor"></a><code><span class="keyword">val </span>group_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-sexp_of_group"><a href="#val-sexp_of_group" class="anchor"></a><code><span class="keyword">val </span>sexp_of_group : <a href="index.html#type-group">group</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-group_to_yojson"><a href="#val-group_to_yojson" class="anchor"></a><code><span class="keyword">val </span>group_to_yojson : <a href="index.html#type-group">group</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-group_of_yojson"><a href="#val-group_of_yojson" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-group_of_yojson_exn"><a href="#val-group_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>group_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-group">group</a></code></dt></dl><dl><dt class="spec type" id="type-dm"><a href="#type-dm" class="anchor"></a><code><span class="keyword">type </span>dm</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-dm.id" class="anchored"><td class="def field"><a href="#type-dm.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-dm.last_message_id" class="anchored"><td class="def field"><a href="#type-dm.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-dm.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-dm.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a private channel with a single user.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-dm_of_sexp"><a href="#val-dm_of_sexp" class="anchor"></a><code><span class="keyword">val </span>dm_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-sexp_of_dm"><a href="#val-sexp_of_dm" class="anchor"></a><code><span class="keyword">val </span>sexp_of_dm : <a href="index.html#type-dm">dm</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-dm_to_yojson"><a href="#val-dm_to_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_to_yojson : <a href="index.html#type-dm">dm</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-dm_of_yojson"><a href="#val-dm_of_yojson" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-dm_of_yojson_exn"><a href="#val-dm_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>dm_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-dm">dm</a></code></dt></dl><dl><dt class="spec type" id="type-guild_text"><a href="#type-guild_text" class="anchor"></a><code><span class="keyword">type </span>guild_text</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_text.id" class="anchored"><td class="def field"><a href="#type-guild_text.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-guild_text.last_message_id" class="anchored"><td class="def field"><a href="#type-guild_text.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-guild_text.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-guild_text.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr><tr id="type-guild_text.category_id" class="anchored"><td class="def field"><a href="#type-guild_text.category_id" class="anchor"></a><code>category_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-guild_text.guild_id" class="anchored"><td class="def field"><a href="#type-guild_text.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-guild_text.name" class="anchored"><td class="def field"><a href="#type-guild_text.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_text.position" class="anchored"><td class="def field"><a href="#type-guild_text.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_text.topic" class="anchored"><td class="def field"><a href="#type-guild_text.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-guild_text.nsfw" class="anchored"><td class="def field"><a href="#type-guild_text.nsfw" class="anchor"></a><code>nsfw : bool;</code></td></tr><tr id="type-guild_text.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-guild_text.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a text channel in a guild.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_text_of_sexp"><a href="#val-guild_text_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-sexp_of_guild_text"><a href="#val-sexp_of_guild_text" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_text : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_text_to_yojson"><a href="#val-guild_text_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_to_yojson : <a href="index.html#type-guild_text">guild_text</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_text_of_yojson"><a href="#val-guild_text_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_text_of_yojson_exn"><a href="#val-guild_text_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_text_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt></dl><dl><dt class="spec type" id="type-guild_voice"><a href="#type-guild_voice" class="anchor"></a><code><span class="keyword">type </span>guild_voice</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-guild_voice.id" class="anchored"><td class="def field"><a href="#type-guild_voice.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-guild_voice.category_id" class="anchored"><td class="def field"><a href="#type-guild_voice.category_id" class="anchor"></a><code>category_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-guild_voice.guild_id" class="anchored"><td class="def field"><a href="#type-guild_voice.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-guild_voice.name" class="anchored"><td class="def field"><a href="#type-guild_voice.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-guild_voice.position" class="anchored"><td class="def field"><a href="#type-guild_voice.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-guild_voice.user_limit" class="anchored"><td class="def field"><a href="#type-guild_voice.user_limit" class="anchor"></a><code>user_limit : int;</code></td></tr><tr id="type-guild_voice.bitrate" class="anchored"><td class="def field"><a href="#type-guild_voice.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr></table><code>}</code></dt><dd><p>Represents a voice channel in a guild.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-guild_voice_of_sexp"><a href="#val-guild_voice_of_sexp" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-sexp_of_guild_voice"><a href="#val-sexp_of_guild_voice" class="anchor"></a><code><span class="keyword">val </span>sexp_of_guild_voice : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-guild_voice_to_yojson"><a href="#val-guild_voice_to_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_to_yojson : <a href="index.html#type-guild_voice">guild_voice</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-guild_voice_of_yojson"><a href="#val-guild_voice_of_yojson" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-guild_voice_of_yojson_exn"><a href="#val-guild_voice_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>guild_voice_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt></dl><dl><dt class="spec type" id="type-category"><a href="#type-category" class="anchor"></a><code><span class="keyword">type </span>category</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-category.id" class="anchored"><td class="def field"><a href="#type-category.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-category.guild_id" class="anchored"><td class="def field"><a href="#type-category.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-category.position" class="anchored"><td class="def field"><a href="#type-category.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-category.name" class="anchored"><td class="def field"><a href="#type-category.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt><dd><p>Represents a guild category.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-category_of_sexp"><a href="#val-category_of_sexp" class="anchor"></a><code><span class="keyword">val </span>category_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-sexp_of_category"><a href="#val-sexp_of_category" class="anchor"></a><code><span class="keyword">val </span>sexp_of_category : <a href="index.html#type-category">category</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-category_to_yojson"><a href="#val-category_to_yojson" class="anchor"></a><code><span class="keyword">val </span>category_to_yojson : <a href="index.html#type-category">category</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-category_of_yojson"><a href="#val-category_of_yojson" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-category_of_yojson_exn"><a href="#val-category_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>category_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-category">category</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.Group" class="anchored"><td class="def constructor"><a href="#type-t.Group" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Group</span><span class="keyword"> of </span><a href="index.html#type-group">group</a></code></td></tr><tr id="type-t.Private" class="anchored"><td class="def constructor"><a href="#type-t.Private" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Private</span><span class="keyword"> of </span><a href="index.html#type-dm">dm</a></code></td></tr><tr id="type-t.GuildText" class="anchored"><td class="def constructor"><a href="#type-t.GuildText" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildText</span><span class="keyword"> of </span><a href="index.html#type-guild_text">guild_text</a></code></td></tr><tr id="type-t.GuildVoice" class="anchored"><td class="def constructor"><a href="#type-t.GuildVoice" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GuildVoice</span><span class="keyword"> of </span><a href="index.html#type-guild_voice">guild_voice</a></code></td></tr><tr id="type-t.Category" class="anchored"><td class="def constructor"><a href="#type-t.Category" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Category</span><span class="keyword"> of </span><a href="index.html#type-category">category</a></code></td></tr></table></dt><dd><p>Wrapper variant for all channel types.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl><dl><dt class="spec type" id="type-channel_wrapper"><a href="#type-channel_wrapper" class="anchor"></a><code><span class="keyword">type </span>channel_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-channel_wrapper.id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.id" class="anchor"></a><code>id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-channel_wrapper.kind" class="anchored"><td class="def field"><a href="#type-channel_wrapper.kind" class="anchor"></a><code>kind : int;</code></td></tr><tr id="type-channel_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.position" class="anchored"><td class="def field"><a href="#type-channel_wrapper.position" class="anchor"></a><code>position : int option;</code></td></tr><tr id="type-channel_wrapper.name" class="anchored"><td class="def field"><a href="#type-channel_wrapper.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-channel_wrapper.topic" class="anchored"><td class="def field"><a href="#type-channel_wrapper.topic" class="anchor"></a><code>topic : string option;</code></td></tr><tr id="type-channel_wrapper.nsfw" class="anchored"><td class="def field"><a href="#type-channel_wrapper.nsfw" class="anchor"></a><code>nsfw : bool option;</code></td></tr><tr id="type-channel_wrapper.last_message_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_message_id" class="anchor"></a><code>last_message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a> option;</code></td></tr><tr id="type-channel_wrapper.bitrate" class="anchored"><td class="def field"><a href="#type-channel_wrapper.bitrate" class="anchor"></a><code>bitrate : int option;</code></td></tr><tr id="type-channel_wrapper.user_limit" class="anchored"><td class="def field"><a href="#type-channel_wrapper.user_limit" class="anchor"></a><code>user_limit : int option;</code></td></tr><tr id="type-channel_wrapper.slow_mode_timeout" class="anchored"><td class="def field"><a href="#type-channel_wrapper.slow_mode_timeout" class="anchor"></a><code>slow_mode_timeout : int option;</code></td></tr><tr id="type-channel_wrapper.recipients" class="anchored"><td class="def field"><a href="#type-channel_wrapper.recipients" class="anchor"></a><code>recipients : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> list option;</code></td></tr><tr id="type-channel_wrapper.icon" class="anchored"><td class="def field"><a href="#type-channel_wrapper.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-channel_wrapper.owner_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.application_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.application_id" class="anchor"></a><code>application_id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-channel_wrapper.category_id" class="anchored"><td class="def field"><a href="#type-channel_wrapper.category_id" class="anchor"></a><code>category_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-channel_wrapper.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-channel_wrapper.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt><dd><p>Intermediate used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-channel_wrapper_of_sexp"><a href="#val-channel_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_channel_wrapper"><a href="#val-sexp_of_channel_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_channel_wrapper : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-channel_wrapper_to_yojson"><a href="#val-channel_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_to_yojson : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson"><a href="#val-channel_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-channel_wrapper_of_yojson_exn"><a href="#val-channel_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>channel_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-channel_wrapper">channel_wrapper</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_text"><a href="#val-unwrap_as_guild_text" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_text : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_text">guild_text</a></code></dt><dt class="spec value" id="val-unwrap_as_guild_voice"><a href="#val-unwrap_as_guild_voice" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_guild_voice : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-guild_voice">guild_voice</a></code></dt><dt class="spec value" id="val-unwrap_as_dm"><a href="#val-unwrap_as_dm" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_dm : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-dm">dm</a></code></dt><dt class="spec value" id="val-unwrap_as_group"><a href="#val-unwrap_as_group" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_group : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-group">group</a></code></dt><dt class="spec value" id="val-unwrap_as_category"><a href="#val-unwrap_as_category" class="anchor"></a><code><span class="keyword">val </span>unwrap_as_category : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-category">category</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-channel_wrapper">channel_wrapper</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Client/index.html b/docs/disml/Disml__Client/index.html index b959c75..31c4588 100644 --- a/docs/disml/Disml__Client/index.html +++ b/docs/disml/Disml__Client/index.html @@ -1,17 +1,17 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Client (disml.Disml__Client)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Client</nav><h1>Module <code>Disml__Client</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-Client_options">Disml.Client_options</a></code></span></summary><aside></aside><dl><dt class="spec value" id="val-token"><a href="#val-token" class="anchor"></a><code><span class="keyword">val </span>token : string Stdlib.ref</code></dt><dd><p>Token that is set when using <span class="xref-unresolved" title="unresolved reference to "Client.start""><code>Client</code>.start</span></p></dd></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-Dispatch">Disml.Dispatch</a></code></span></summary><aside></aside><aside><p>Used to store dispatch callbacks. Each event can only have one callback registered at a time. These should be accessed through their re-export in <code>Client</code>.</p></aside><section><header><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><p><code>Client.ready := (fun _ -> print_endline "Shard is Ready!")</code></p><p><code>Client.guild_create := (fun guild -> print_endline guild.name)</code></p><pre><code class="ml">open Core -open Disml - -let check_command (msg : Message.t) = - if String.is_prefix ~prefix:"!ping" msg.content then - Message.reply msg "Pong!" >>> ignore - -Client.message_create := check_command</code></pre></header><dl><dt class="spec value" id="val-hello"><a href="#val-hello" class="anchor"></a><code><span class="keyword">val </span>hello : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when connecting to the gateway, most users will have no use for this.</p></dd></dl><dl><dt class="spec value" id="val-ready"><a href="#val-ready" class="anchor"></a><code><span class="keyword">val </span>ready : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this.</p></dd></dl><dl><dt class="spec value" id="val-resumed"><a href="#val-resumed" class="anchor"></a><code><span class="keyword">val </span>resumed : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when successfully reconnecting to the gateway.</p></dd></dl><dl><dt class="spec value" id="val-invalid_session"><a href="#val-invalid_session" class="anchor"></a><code><span class="keyword">val </span>invalid_session : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when Discord decides a session is invalid, much like <span class="xref-unresolved" title="unresolved reference to "Client.hello""><code>Client</code>.hello</span> this is not very useful for most people.</p></dd></dl><dl><dt class="spec value" id="val-channel_create"><a href="#val-channel_create" class="anchor"></a><code><span class="keyword">val </span>channel_create : (<a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel is created which is visible to the bot.</p></dd></dl><dl><dt class="spec value" id="val-channel_update"><a href="#val-channel_update" class="anchor"></a><code><span class="keyword">val </span>channel_update : (<a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is changed.</p></dd></dl><dl><dt class="spec value" id="val-channel_delete"><a href="#val-channel_delete" class="anchor"></a><code><span class="keyword">val </span>channel_delete : (<a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is deleted.</p></dd></dl><dl><dt class="spec value" id="val-channel_pins_update"><a href="#val-channel_pins_update" class="anchor"></a><code><span class="keyword">val </span>channel_pins_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are pinned or unpinned from a a channel.</p></dd></dl><dl><dt class="spec value" id="val-guild_create"><a href="#val-guild_create" class="anchor"></a><code><span class="keyword">val </span>guild_create : (<a href="../Disml/Guild_t/index.html#type-t">Disml.Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot joins a guild, and during startup.</p></dd></dl><dl><dt class="spec value" id="val-guild_update"><a href="#val-guild_update" class="anchor"></a><code><span class="keyword">val </span>guild_update : (<a href="../Disml/Guild_t/index.html#type-t">Disml.Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild the bot is in is edited.</p></dd></dl><dl><dt class="spec value" id="val-guild_delete"><a href="#val-guild_delete" class="anchor"></a><code><span class="keyword">val </span>guild_delete : (<a href="../Disml/Guild_t/index.html#type-t">Disml.Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot is removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_ban"><a href="#val-member_ban" class="anchor"></a><code><span class="keyword">val </span>member_ban : (<a href="../Disml/Ban_t/index.html#type-t">Disml.Ban_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_unban"><a href="#val-member_unban" class="anchor"></a><code><span class="keyword">val </span>member_unban : (<a href="../Disml/Ban_t/index.html#type-t">Disml.Ban_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is unbanned.</p></dd></dl><dl><dt class="spec value" id="val-guild_emojis_update"><a href="#val-guild_emojis_update" class="anchor"></a><code><span class="keyword">val </span>guild_emojis_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when emojis are added or removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-integrations_update"><a href="#val-integrations_update" class="anchor"></a><code><span class="keyword">val </span>integrations_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild's integrations are updated.</p></dd></dl><dl><dt class="spec value" id="val-member_join"><a href="#val-member_join" class="anchor"></a><code><span class="keyword">val </span>member_join : (<a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member joins a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_leave"><a href="#val-member_leave" class="anchor"></a><code><span class="keyword">val </span>member_leave : (<a href="../Disml/Member_t/index.html#type-member_wrapper">Disml.Member_t.member_wrapper</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member leaves a guild. Is Dispatched alongside <span class="xref-unresolved" title="unresolved reference to "Client.member_ban""><code>Client</code>.member_ban</span> when a user is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_update"><a href="#val-member_update" class="anchor"></a><code><span class="keyword">val </span>member_update : (<a href="../Disml/Member_t/index.html#type-member_update">Disml.Member_t.member_update</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member object is updated.</p></dd></dl><dl><dt class="spec value" id="val-members_chunk"><a href="#val-members_chunk" class="anchor"></a><code><span class="keyword">val </span>members_chunk : (<a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when requesting guild members through <span class="xref-unresolved" title="unresolved reference to "Client.request_guild_members""><code>Client</code>.request_guild_members</span></p></dd></dl><dl><dt class="spec value" id="val-role_create"><a href="#val-role_create" class="anchor"></a><code><span class="keyword">val </span>role_create : (<a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is created.</p></dd></dl><dl><dt class="spec value" id="val-role_update"><a href="#val-role_update" class="anchor"></a><code><span class="keyword">val </span>role_update : (<a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is edited.</p></dd></dl><dl><dt class="spec value" id="val-role_delete"><a href="#val-role_delete" class="anchor"></a><code><span class="keyword">val </span>role_delete : (<a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_create"><a href="#val-message_create" class="anchor"></a><code><span class="keyword">val </span>message_create : (<a href="../Disml/Message_t/index.html#type-t">Disml.Message_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is sent.</p></dd></dl><dl><dt class="spec value" id="val-message_update"><a href="#val-message_update" class="anchor"></a><code><span class="keyword">val </span>message_update : (<a href="../Disml/Message_t/index.html#type-message_update">Disml.Message_t.message_update</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is edited. This does not necessarily mean the content changed.</p></dd></dl><dl><dt class="spec value" id="val-message_delete"><a href="#val-message_delete" class="anchor"></a><code><span class="keyword">val </span>message_delete : (<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_bulk_delete"><a href="#val-message_bulk_delete" class="anchor"></a><code><span class="keyword">val </span>message_bulk_delete : (<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are bulk deleted.</p></dd></dl><dl><dt class="spec value" id="val-reaction_add"><a href="#val-reaction_add" class="anchor"></a><code><span class="keyword">val </span>reaction_add : (<a href="../Disml/Reaction_t/index.html#type-reaction_event">Disml.Reaction_t.reaction_event</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a rection is added to a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove"><a href="#val-reaction_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_remove : (<a href="../Disml/Reaction_t/index.html#type-reaction_event">Disml.Reaction_t.reaction_event</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a reaction is removed from a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_bulk_remove"><a href="#val-reaction_bulk_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_bulk_remove : (<a href="../Disml/Reaction_t/index.html#type-t">Disml.Reaction_t.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when all reactions are cleared from a message.</p></dd></dl><dl><dt class="spec value" id="val-presence_update"><a href="#val-presence_update" class="anchor"></a><code><span class="keyword">val </span>presence_update : (<a href="../Disml/Presence/index.html#type-t">Disml.Presence.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a user updates their presence.</p></dd></dl><dl><dt class="spec value" id="val-typing_start"><a href="#val-typing_start" class="anchor"></a><code><span class="keyword">val </span>typing_start : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a typing indicator is displayed.</p></dd></dl><dl><dt class="spec value" id="val-user_update"><a href="#val-user_update" class="anchor"></a><code><span class="keyword">val </span>user_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the current user is updated. You most likely want <span class="xref-unresolved" title="unresolved reference to "Client.member_update""><code>Client</code>.member_update</span> or <span class="xref-unresolved" title="unresolved reference to "Client.presence_update""><code>Client</code>.presence_update</span> instead.</p></dd></dl></section></details></div></div></div><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.sharder" class="anchored"><td class="def field"><a href="#type-t.sharder" class="anchor"></a><code>sharder : <a href="../Disml/Sharder/index.html#type-t">Disml.Sharder.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>Type of the Client, it isn't recommended to access the fields directly.</p></dd></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Client. This begins shard connections to Discord and event handlers should be registered prior to calling this.</p><h3 id="example"><a href="#example" class="anchor"></a>Example</h3><pre><code class="ml">open Async -open Disml - -let main () = - let token = "a valid bot token" in - Client.start ~count:5 token >>> print_endline "Client launched" - -let _ = - Scheduler.go_main ~main ()</code></pre><dl><dt>parameter ?count</dt><dd><p>Optional amount of shards to launch. Defaults to autosharding</p></dd></dl><dl><dt>parameter string</dt><dd><p>The token used for authentication</p></dd></dl><dl><dt>returns</dt><dd><p>A deferred client object</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <span class="xref-unresolved" title="unresolved reference to "Sharder.set_status""><code>Sharder</code>.set_status</span> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <span class="xref-unresolved" title="unresolved reference to "Sharder.set_status_with""><code>Sharder</code>.set_status_with</span> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : guild:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <span class="xref-unresolved" title="unresolved reference to "Sharder.request_guild_members""><code>Sharder</code>.request_guild_members</span> where <code>client.sharder</code> is passed.</p></dd></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Client (disml.Disml__Client)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Client</nav><h1>Module <code>Disml__Client</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Client_options">Disml__.Client_options</a></code></span></summary><aside></aside><dl><dt class="spec value" id="val-token"><a href="#val-token" class="anchor"></a><code><span class="keyword">val </span>token : string Stdlib.ref</code></dt><dd><p>Token that is set when using <span class="xref-unresolved" title="unresolved reference to "Client.start""><code>Client</code>.start</span></p></dd></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Dispatch">Disml__.Dispatch</a></code></span></summary><aside></aside><aside><p>Used to store dispatch callbacks. Each event can only have one callback registered at a time. These should be accessed through their re-export in <code>Client</code>.</p></aside><section><header><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><p><code>Client.ready := (fun _ -> print_endline "Shard is Ready!")</code></p><p><code>Client.guild_create := (fun guild -> print_endline guild.name)</code></p><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!ping" msg.content then
+ Message.reply msg "Pong!" >>> ignore
+
+ Client.message_create := check_command</code></pre></header><dl><dt class="spec value" id="val-ready"><a href="#val-ready" class="anchor"></a><code><span class="keyword">val </span>ready : (<a href="../Disml__Event_models/Ready/index.html#type-t">Disml__.Event_models.Ready.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this.</p></dd></dl><dl><dt class="spec value" id="val-resumed"><a href="#val-resumed" class="anchor"></a><code><span class="keyword">val </span>resumed : (<a href="../Disml__Event_models/Resumed/index.html#type-t">Disml__.Event_models.Resumed.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when successfully reconnecting to the gateway.</p></dd></dl><dl><dt class="spec value" id="val-channel_create"><a href="#val-channel_create" class="anchor"></a><code><span class="keyword">val </span>channel_create : (<a href="../Disml__Event_models/ChannelCreate/index.html#type-t">Disml__.Event_models.ChannelCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel is created which is visible to the bot.</p></dd></dl><dl><dt class="spec value" id="val-channel_update"><a href="#val-channel_update" class="anchor"></a><code><span class="keyword">val </span>channel_update : (<a href="../Disml__Event_models/ChannelUpdate/index.html#type-t">Disml__.Event_models.ChannelUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is changed.</p></dd></dl><dl><dt class="spec value" id="val-channel_delete"><a href="#val-channel_delete" class="anchor"></a><code><span class="keyword">val </span>channel_delete : (<a href="../Disml__Event_models/ChannelDelete/index.html#type-t">Disml__.Event_models.ChannelDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is deleted.</p></dd></dl><dl><dt class="spec value" id="val-channel_pins_update"><a href="#val-channel_pins_update" class="anchor"></a><code><span class="keyword">val </span>channel_pins_update : (<a href="../Disml__Event_models/ChannelPinsUpdate/index.html#type-t">Disml__.Event_models.ChannelPinsUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are pinned or unpinned from a a channel.</p></dd></dl><dl><dt class="spec value" id="val-guild_create"><a href="#val-guild_create" class="anchor"></a><code><span class="keyword">val </span>guild_create : (<a href="../Disml__Event_models/GuildCreate/index.html#type-t">Disml__.Event_models.GuildCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot joins a guild, and during startup.</p></dd></dl><dl><dt class="spec value" id="val-guild_update"><a href="#val-guild_update" class="anchor"></a><code><span class="keyword">val </span>guild_update : (<a href="../Disml__Event_models/GuildUpdate/index.html#type-t">Disml__.Event_models.GuildUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild the bot is in is edited.</p></dd></dl><dl><dt class="spec value" id="val-guild_delete"><a href="#val-guild_delete" class="anchor"></a><code><span class="keyword">val </span>guild_delete : (<a href="../Disml__Event_models/GuildDelete/index.html#type-t">Disml__.Event_models.GuildDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot is removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_ban"><a href="#val-member_ban" class="anchor"></a><code><span class="keyword">val </span>member_ban : (<a href="../Disml__Event_models/GuildBanAdd/index.html#type-t">Disml__.Event_models.GuildBanAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_unban"><a href="#val-member_unban" class="anchor"></a><code><span class="keyword">val </span>member_unban : (<a href="../Disml__Event_models/GuildBanRemove/index.html#type-t">Disml__.Event_models.GuildBanRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is unbanned.</p></dd></dl><dl><dt class="spec value" id="val-guild_emojis_update"><a href="#val-guild_emojis_update" class="anchor"></a><code><span class="keyword">val </span>guild_emojis_update : (<a href="../Disml__Event_models/GuildEmojisUpdate/index.html#type-t">Disml__.Event_models.GuildEmojisUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when emojis are added or removed from a guild.</p></dd></dl><aside><p>Dispatched when a guild's integrations are updated.</p></aside><dl><dt class="spec value" id="val-member_join"><a href="#val-member_join" class="anchor"></a><code><span class="keyword">val </span>member_join : (<a href="../Disml__Event_models/GuildMemberAdd/index.html#type-t">Disml__.Event_models.GuildMemberAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member joins a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_leave"><a href="#val-member_leave" class="anchor"></a><code><span class="keyword">val </span>member_leave : (<a href="../Disml__Event_models/GuildMemberRemove/index.html#type-t">Disml__.Event_models.GuildMemberRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member leaves a guild. Is Dispatched alongside <span class="xref-unresolved" title="unresolved reference to "Client.member_ban""><code>Client</code>.member_ban</span> when a user is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_update"><a href="#val-member_update" class="anchor"></a><code><span class="keyword">val </span>member_update : (<a href="../Disml__Event_models/GuildMemberUpdate/index.html#type-t">Disml__.Event_models.GuildMemberUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member object is updated.</p></dd></dl><dl><dt class="spec value" id="val-members_chunk"><a href="#val-members_chunk" class="anchor"></a><code><span class="keyword">val </span>members_chunk : (<a href="../Disml__Event_models/GuildMembersChunk/index.html#type-t">Disml__.Event_models.GuildMembersChunk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when requesting guild members through <span class="xref-unresolved" title="unresolved reference to "Client.request_guild_members""><code>Client</code>.request_guild_members</span></p></dd></dl><dl><dt class="spec value" id="val-role_create"><a href="#val-role_create" class="anchor"></a><code><span class="keyword">val </span>role_create : (<a href="../Disml__Event_models/GuildRoleCreate/index.html#type-t">Disml__.Event_models.GuildRoleCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is created.</p></dd></dl><dl><dt class="spec value" id="val-role_update"><a href="#val-role_update" class="anchor"></a><code><span class="keyword">val </span>role_update : (<a href="../Disml__Event_models/GuildRoleUpdate/index.html#type-t">Disml__.Event_models.GuildRoleUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is edited.</p></dd></dl><dl><dt class="spec value" id="val-role_delete"><a href="#val-role_delete" class="anchor"></a><code><span class="keyword">val </span>role_delete : (<a href="../Disml__Event_models/GuildRoleDelete/index.html#type-t">Disml__.Event_models.GuildRoleDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_create"><a href="#val-message_create" class="anchor"></a><code><span class="keyword">val </span>message_create : (<a href="../Disml__Event_models/MessageCreate/index.html#type-t">Disml__.Event_models.MessageCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is sent.</p></dd></dl><dl><dt class="spec value" id="val-message_update"><a href="#val-message_update" class="anchor"></a><code><span class="keyword">val </span>message_update : (<a href="../Disml__Event_models/MessageUpdate/index.html#type-t">Disml__.Event_models.MessageUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is edited. This does not necessarily mean the content changed.</p></dd></dl><dl><dt class="spec value" id="val-message_delete"><a href="#val-message_delete" class="anchor"></a><code><span class="keyword">val </span>message_delete : (<a href="../Disml__Event_models/MessageDelete/index.html#type-t">Disml__.Event_models.MessageDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_delete_bulk"><a href="#val-message_delete_bulk" class="anchor"></a><code><span class="keyword">val </span>message_delete_bulk : (<a href="../Disml__Event_models/MessageDeleteBulk/index.html#type-t">Disml__.Event_models.MessageDeleteBulk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are bulk deleted.</p></dd></dl><dl><dt class="spec value" id="val-reaction_add"><a href="#val-reaction_add" class="anchor"></a><code><span class="keyword">val </span>reaction_add : (<a href="../Disml__Event_models/ReactionAdd/index.html#type-t">Disml__.Event_models.ReactionAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a rection is added to a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove"><a href="#val-reaction_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_remove : (<a href="../Disml__Event_models/ReactionRemove/index.html#type-t">Disml__.Event_models.ReactionRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a reaction is removed from a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove_all"><a href="#val-reaction_remove_all" class="anchor"></a><code><span class="keyword">val </span>reaction_remove_all : (<a href="../Disml__Event_models/ReactionRemoveAll/index.html#type-t">Disml__.Event_models.ReactionRemoveAll.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when all reactions are cleared from a message.</p></dd></dl><dl><dt class="spec value" id="val-presence_update"><a href="#val-presence_update" class="anchor"></a><code><span class="keyword">val </span>presence_update : (<a href="../Disml__Event_models/PresenceUpdate/index.html#type-t">Disml__.Event_models.PresenceUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a user updates their presence.</p></dd></dl><dl><dt class="spec value" id="val-typing_start"><a href="#val-typing_start" class="anchor"></a><code><span class="keyword">val </span>typing_start : (<a href="../Disml__Event_models/TypingStart/index.html#type-t">Disml__.Event_models.TypingStart.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a typing indicator is displayed.</p></dd></dl><dl><dt class="spec value" id="val-user_update"><a href="#val-user_update" class="anchor"></a><code><span class="keyword">val </span>user_update : (<a href="../Disml__Event_models/UserUpdate/index.html#type-t">Disml__.Event_models.UserUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the current user is updated. You most likely want <span class="xref-unresolved" title="unresolved reference to "Client.member_update""><code>Client</code>.member_update</span> or <span class="xref-unresolved" title="unresolved reference to "Client.presence_update""><code>Client</code>.presence_update</span> instead.</p></dd></dl><dl><dt class="spec value" id="val-webhook_update"><a href="#val-webhook_update" class="anchor"></a><code><span class="keyword">val </span>webhook_update : (<a href="../Disml__Event_models/WebhookUpdate/index.html#type-t">Disml__.Event_models.WebhookUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a webhook is updated.</p></dd></dl><dl><dt class="spec value" id="val-unknown"><a href="#val-unknown" class="anchor"></a><code><span class="keyword">val </span>unknown : (<a href="../Disml__Event_models/Unknown/index.html#type-t">Disml__.Event_models.Unknown.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched as a fallback for unknown events.</p></dd></dl></section></details></div></div></div><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.sharder" class="anchored"><td class="def field"><a href="#type-t.sharder" class="anchor"></a><code>sharder : <a href="../Disml/Sharder/index.html#type-t">Disml.Sharder.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>Type of the Client, it isn't recommended to access the fields directly.</p></dd></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Client. This begins shard connections to Discord and event handlers should be registered prior to calling this.</p><h3 id="example"><a href="#example" class="anchor"></a>Example</h3><pre><code class="ml"> open Async
+ open Disml
+
+ let main () =
+ let token = "a valid bot token" in
+ Client.start ~count:5 token >>> print_endline "Client launched"
+
+ let _ =
+ Scheduler.go_main ~main ()</code></pre><dl><dt>parameter ?count</dt><dd><p>Optional amount of shards to launch. Defaults to autosharding</p></dd></dl><dl><dt>parameter string</dt><dd><p>The token used for authentication</p></dd></dl><dl><dt>returns</dt><dd><p>A deferred client object</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <span class="xref-unresolved" title="unresolved reference to "Sharder.set_status""><code>Sharder</code>.set_status</span> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <span class="xref-unresolved" title="unresolved reference to "Sharder.set_status_with""><code>Sharder</code>.set_status_with</span> where <code>client.sharder</code> is passed.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : guild:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Sharder/Shard/index.html#type-shard">Disml.Sharder.Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Same as <span class="xref-unresolved" title="unresolved reference to "Sharder.request_guild_members""><code>Sharder</code>.request_guild_members</span> where <code>client.sharder</code> is passed.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Dispatch/index.html b/docs/disml/Disml__Dispatch/index.html index 2b401ca..c14d840 100644 --- a/docs/disml/Disml__Dispatch/index.html +++ b/docs/disml/Disml__Dispatch/index.html @@ -1,9 +1,9 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Dispatch (disml.Disml__Dispatch)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Dispatch</nav><h1>Module <code>Disml__Dispatch</code></h1><p>Used to store dispatch callbacks. Each event can only have one callback registered at a time. These should be accessed through their re-export in <code>Client</code>.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><p><code>Client.ready := (fun _ -> print_endline "Shard is Ready!")</code></p><p><code>Client.guild_create := (fun guild -> print_endline guild.name)</code></p><pre><code class="ml">open Core -open Disml - -let check_command (msg : Message.t) = - if String.is_prefix ~prefix:"!ping" msg.content then - Message.reply msg "Pong!" >>> ignore - -Client.message_create := check_command</code></pre></header><dl><dt class="spec value" id="val-hello"><a href="#val-hello" class="anchor"></a><code><span class="keyword">val </span>hello : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when connecting to the gateway, most users will have no use for this.</p></dd></dl><dl><dt class="spec value" id="val-ready"><a href="#val-ready" class="anchor"></a><code><span class="keyword">val </span>ready : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this.</p></dd></dl><dl><dt class="spec value" id="val-resumed"><a href="#val-resumed" class="anchor"></a><code><span class="keyword">val </span>resumed : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when successfully reconnecting to the gateway.</p></dd></dl><dl><dt class="spec value" id="val-invalid_session"><a href="#val-invalid_session" class="anchor"></a><code><span class="keyword">val </span>invalid_session : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when Discord decides a session is invalid, much like <span class="xref-unresolved" title="unresolved reference to "Client.hello""><code>Client</code>.hello</span> this is not very useful for most people.</p></dd></dl><dl><dt class="spec value" id="val-channel_create"><a href="#val-channel_create" class="anchor"></a><code><span class="keyword">val </span>channel_create : (<a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel is created which is visible to the bot.</p></dd></dl><dl><dt class="spec value" id="val-channel_update"><a href="#val-channel_update" class="anchor"></a><code><span class="keyword">val </span>channel_update : (<a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is changed.</p></dd></dl><dl><dt class="spec value" id="val-channel_delete"><a href="#val-channel_delete" class="anchor"></a><code><span class="keyword">val </span>channel_delete : (<a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is deleted.</p></dd></dl><dl><dt class="spec value" id="val-channel_pins_update"><a href="#val-channel_pins_update" class="anchor"></a><code><span class="keyword">val </span>channel_pins_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are pinned or unpinned from a a channel.</p></dd></dl><dl><dt class="spec value" id="val-guild_create"><a href="#val-guild_create" class="anchor"></a><code><span class="keyword">val </span>guild_create : (<a href="../Disml/Guild_t/index.html#type-t">Disml.Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot joins a guild, and during startup.</p></dd></dl><dl><dt class="spec value" id="val-guild_update"><a href="#val-guild_update" class="anchor"></a><code><span class="keyword">val </span>guild_update : (<a href="../Disml/Guild_t/index.html#type-t">Disml.Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild the bot is in is edited.</p></dd></dl><dl><dt class="spec value" id="val-guild_delete"><a href="#val-guild_delete" class="anchor"></a><code><span class="keyword">val </span>guild_delete : (<a href="../Disml/Guild_t/index.html#type-t">Disml.Guild_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot is removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_ban"><a href="#val-member_ban" class="anchor"></a><code><span class="keyword">val </span>member_ban : (<a href="../Disml/Ban_t/index.html#type-t">Disml.Ban_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_unban"><a href="#val-member_unban" class="anchor"></a><code><span class="keyword">val </span>member_unban : (<a href="../Disml/Ban_t/index.html#type-t">Disml.Ban_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is unbanned.</p></dd></dl><dl><dt class="spec value" id="val-guild_emojis_update"><a href="#val-guild_emojis_update" class="anchor"></a><code><span class="keyword">val </span>guild_emojis_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when emojis are added or removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-integrations_update"><a href="#val-integrations_update" class="anchor"></a><code><span class="keyword">val </span>integrations_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild's integrations are updated.</p></dd></dl><dl><dt class="spec value" id="val-member_join"><a href="#val-member_join" class="anchor"></a><code><span class="keyword">val </span>member_join : (<a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member joins a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_leave"><a href="#val-member_leave" class="anchor"></a><code><span class="keyword">val </span>member_leave : (<a href="../Disml/Member_t/index.html#type-member_wrapper">Disml.Member_t.member_wrapper</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member leaves a guild. Is Dispatched alongside <span class="xref-unresolved" title="unresolved reference to "Client.member_ban""><code>Client</code>.member_ban</span> when a user is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_update"><a href="#val-member_update" class="anchor"></a><code><span class="keyword">val </span>member_update : (<a href="../Disml/Member_t/index.html#type-member_update">Disml.Member_t.member_update</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member object is updated.</p></dd></dl><dl><dt class="spec value" id="val-members_chunk"><a href="#val-members_chunk" class="anchor"></a><code><span class="keyword">val </span>members_chunk : (<a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when requesting guild members through <span class="xref-unresolved" title="unresolved reference to "Client.request_guild_members""><code>Client</code>.request_guild_members</span></p></dd></dl><dl><dt class="spec value" id="val-role_create"><a href="#val-role_create" class="anchor"></a><code><span class="keyword">val </span>role_create : (<a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is created.</p></dd></dl><dl><dt class="spec value" id="val-role_update"><a href="#val-role_update" class="anchor"></a><code><span class="keyword">val </span>role_update : (<a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is edited.</p></dd></dl><dl><dt class="spec value" id="val-role_delete"><a href="#val-role_delete" class="anchor"></a><code><span class="keyword">val </span>role_delete : (<a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_create"><a href="#val-message_create" class="anchor"></a><code><span class="keyword">val </span>message_create : (<a href="../Disml/Message_t/index.html#type-t">Disml.Message_t.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is sent.</p></dd></dl><dl><dt class="spec value" id="val-message_update"><a href="#val-message_update" class="anchor"></a><code><span class="keyword">val </span>message_update : (<a href="../Disml/Message_t/index.html#type-message_update">Disml.Message_t.message_update</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is edited. This does not necessarily mean the content changed.</p></dd></dl><dl><dt class="spec value" id="val-message_delete"><a href="#val-message_delete" class="anchor"></a><code><span class="keyword">val </span>message_delete : (<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_bulk_delete"><a href="#val-message_bulk_delete" class="anchor"></a><code><span class="keyword">val </span>message_bulk_delete : (<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are bulk deleted.</p></dd></dl><dl><dt class="spec value" id="val-reaction_add"><a href="#val-reaction_add" class="anchor"></a><code><span class="keyword">val </span>reaction_add : (<a href="../Disml/Reaction_t/index.html#type-reaction_event">Disml.Reaction_t.reaction_event</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a rection is added to a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove"><a href="#val-reaction_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_remove : (<a href="../Disml/Reaction_t/index.html#type-reaction_event">Disml.Reaction_t.reaction_event</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a reaction is removed from a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_bulk_remove"><a href="#val-reaction_bulk_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_bulk_remove : (<a href="../Disml/Reaction_t/index.html#type-t">Disml.Reaction_t.t</a> list <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when all reactions are cleared from a message.</p></dd></dl><dl><dt class="spec value" id="val-presence_update"><a href="#val-presence_update" class="anchor"></a><code><span class="keyword">val </span>presence_update : (<a href="../Disml/Presence/index.html#type-t">Disml.Presence.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a user updates their presence.</p></dd></dl><dl><dt class="spec value" id="val-typing_start"><a href="#val-typing_start" class="anchor"></a><code><span class="keyword">val </span>typing_start : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a typing indicator is displayed.</p></dd></dl><dl><dt class="spec value" id="val-user_update"><a href="#val-user_update" class="anchor"></a><code><span class="keyword">val </span>user_update : (Yojson.Safe.json <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the current user is updated. You most likely want <span class="xref-unresolved" title="unresolved reference to "Client.member_update""><code>Client</code>.member_update</span> or <span class="xref-unresolved" title="unresolved reference to "Client.presence_update""><code>Client</code>.presence_update</span> instead.</p></dd></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Dispatch (disml.Disml__Dispatch)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Dispatch</nav><h1>Module <code>Disml__Dispatch</code></h1><p>Used to store dispatch callbacks. Each event can only have one callback registered at a time. These should be accessed through their re-export in <code>Client</code>.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><p><code>Client.ready := (fun _ -> print_endline "Shard is Ready!")</code></p><p><code>Client.guild_create := (fun guild -> print_endline guild.name)</code></p><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!ping" msg.content then
+ Message.reply msg "Pong!" >>> ignore
+
+ Client.message_create := check_command</code></pre></header><dl><dt class="spec value" id="val-ready"><a href="#val-ready" class="anchor"></a><code><span class="keyword">val </span>ready : (<a href="../Disml__Event_models/Ready/index.html#type-t">Disml__.Event_models.Ready.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this.</p></dd></dl><dl><dt class="spec value" id="val-resumed"><a href="#val-resumed" class="anchor"></a><code><span class="keyword">val </span>resumed : (<a href="../Disml__Event_models/Resumed/index.html#type-t">Disml__.Event_models.Resumed.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when successfully reconnecting to the gateway.</p></dd></dl><dl><dt class="spec value" id="val-channel_create"><a href="#val-channel_create" class="anchor"></a><code><span class="keyword">val </span>channel_create : (<a href="../Disml__Event_models/ChannelCreate/index.html#type-t">Disml__.Event_models.ChannelCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel is created which is visible to the bot.</p></dd></dl><dl><dt class="spec value" id="val-channel_update"><a href="#val-channel_update" class="anchor"></a><code><span class="keyword">val </span>channel_update : (<a href="../Disml__Event_models/ChannelUpdate/index.html#type-t">Disml__.Event_models.ChannelUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is changed.</p></dd></dl><dl><dt class="spec value" id="val-channel_delete"><a href="#val-channel_delete" class="anchor"></a><code><span class="keyword">val </span>channel_delete : (<a href="../Disml__Event_models/ChannelDelete/index.html#type-t">Disml__.Event_models.ChannelDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a channel visible to the bot is deleted.</p></dd></dl><dl><dt class="spec value" id="val-channel_pins_update"><a href="#val-channel_pins_update" class="anchor"></a><code><span class="keyword">val </span>channel_pins_update : (<a href="../Disml__Event_models/ChannelPinsUpdate/index.html#type-t">Disml__.Event_models.ChannelPinsUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are pinned or unpinned from a a channel.</p></dd></dl><dl><dt class="spec value" id="val-guild_create"><a href="#val-guild_create" class="anchor"></a><code><span class="keyword">val </span>guild_create : (<a href="../Disml__Event_models/GuildCreate/index.html#type-t">Disml__.Event_models.GuildCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot joins a guild, and during startup.</p></dd></dl><dl><dt class="spec value" id="val-guild_update"><a href="#val-guild_update" class="anchor"></a><code><span class="keyword">val </span>guild_update : (<a href="../Disml__Event_models/GuildUpdate/index.html#type-t">Disml__.Event_models.GuildUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a guild the bot is in is edited.</p></dd></dl><dl><dt class="spec value" id="val-guild_delete"><a href="#val-guild_delete" class="anchor"></a><code><span class="keyword">val </span>guild_delete : (<a href="../Disml__Event_models/GuildDelete/index.html#type-t">Disml__.Event_models.GuildDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the bot is removed from a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_ban"><a href="#val-member_ban" class="anchor"></a><code><span class="keyword">val </span>member_ban : (<a href="../Disml__Event_models/GuildBanAdd/index.html#type-t">Disml__.Event_models.GuildBanAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_unban"><a href="#val-member_unban" class="anchor"></a><code><span class="keyword">val </span>member_unban : (<a href="../Disml__Event_models/GuildBanRemove/index.html#type-t">Disml__.Event_models.GuildBanRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member is unbanned.</p></dd></dl><dl><dt class="spec value" id="val-guild_emojis_update"><a href="#val-guild_emojis_update" class="anchor"></a><code><span class="keyword">val </span>guild_emojis_update : (<a href="../Disml__Event_models/GuildEmojisUpdate/index.html#type-t">Disml__.Event_models.GuildEmojisUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when emojis are added or removed from a guild.</p></dd></dl><aside><p>Dispatched when a guild's integrations are updated.</p></aside><dl><dt class="spec value" id="val-member_join"><a href="#val-member_join" class="anchor"></a><code><span class="keyword">val </span>member_join : (<a href="../Disml__Event_models/GuildMemberAdd/index.html#type-t">Disml__.Event_models.GuildMemberAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member joins a guild.</p></dd></dl><dl><dt class="spec value" id="val-member_leave"><a href="#val-member_leave" class="anchor"></a><code><span class="keyword">val </span>member_leave : (<a href="../Disml__Event_models/GuildMemberRemove/index.html#type-t">Disml__.Event_models.GuildMemberRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member leaves a guild. Is Dispatched alongside <span class="xref-unresolved" title="unresolved reference to "Client.member_ban""><code>Client</code>.member_ban</span> when a user is banned.</p></dd></dl><dl><dt class="spec value" id="val-member_update"><a href="#val-member_update" class="anchor"></a><code><span class="keyword">val </span>member_update : (<a href="../Disml__Event_models/GuildMemberUpdate/index.html#type-t">Disml__.Event_models.GuildMemberUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a member object is updated.</p></dd></dl><dl><dt class="spec value" id="val-members_chunk"><a href="#val-members_chunk" class="anchor"></a><code><span class="keyword">val </span>members_chunk : (<a href="../Disml__Event_models/GuildMembersChunk/index.html#type-t">Disml__.Event_models.GuildMembersChunk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when requesting guild members through <span class="xref-unresolved" title="unresolved reference to "Client.request_guild_members""><code>Client</code>.request_guild_members</span></p></dd></dl><dl><dt class="spec value" id="val-role_create"><a href="#val-role_create" class="anchor"></a><code><span class="keyword">val </span>role_create : (<a href="../Disml__Event_models/GuildRoleCreate/index.html#type-t">Disml__.Event_models.GuildRoleCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is created.</p></dd></dl><dl><dt class="spec value" id="val-role_update"><a href="#val-role_update" class="anchor"></a><code><span class="keyword">val </span>role_update : (<a href="../Disml__Event_models/GuildRoleUpdate/index.html#type-t">Disml__.Event_models.GuildRoleUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is edited.</p></dd></dl><dl><dt class="spec value" id="val-role_delete"><a href="#val-role_delete" class="anchor"></a><code><span class="keyword">val </span>role_delete : (<a href="../Disml__Event_models/GuildRoleDelete/index.html#type-t">Disml__.Event_models.GuildRoleDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a role is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_create"><a href="#val-message_create" class="anchor"></a><code><span class="keyword">val </span>message_create : (<a href="../Disml__Event_models/MessageCreate/index.html#type-t">Disml__.Event_models.MessageCreate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is sent.</p></dd></dl><dl><dt class="spec value" id="val-message_update"><a href="#val-message_update" class="anchor"></a><code><span class="keyword">val </span>message_update : (<a href="../Disml__Event_models/MessageUpdate/index.html#type-t">Disml__.Event_models.MessageUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is edited. This does not necessarily mean the content changed.</p></dd></dl><dl><dt class="spec value" id="val-message_delete"><a href="#val-message_delete" class="anchor"></a><code><span class="keyword">val </span>message_delete : (<a href="../Disml__Event_models/MessageDelete/index.html#type-t">Disml__.Event_models.MessageDelete.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a message is deleted.</p></dd></dl><dl><dt class="spec value" id="val-message_delete_bulk"><a href="#val-message_delete_bulk" class="anchor"></a><code><span class="keyword">val </span>message_delete_bulk : (<a href="../Disml__Event_models/MessageDeleteBulk/index.html#type-t">Disml__.Event_models.MessageDeleteBulk.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when messages are bulk deleted.</p></dd></dl><dl><dt class="spec value" id="val-reaction_add"><a href="#val-reaction_add" class="anchor"></a><code><span class="keyword">val </span>reaction_add : (<a href="../Disml__Event_models/ReactionAdd/index.html#type-t">Disml__.Event_models.ReactionAdd.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a rection is added to a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove"><a href="#val-reaction_remove" class="anchor"></a><code><span class="keyword">val </span>reaction_remove : (<a href="../Disml__Event_models/ReactionRemove/index.html#type-t">Disml__.Event_models.ReactionRemove.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a reaction is removed from a message.</p></dd></dl><dl><dt class="spec value" id="val-reaction_remove_all"><a href="#val-reaction_remove_all" class="anchor"></a><code><span class="keyword">val </span>reaction_remove_all : (<a href="../Disml__Event_models/ReactionRemoveAll/index.html#type-t">Disml__.Event_models.ReactionRemoveAll.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when all reactions are cleared from a message.</p></dd></dl><dl><dt class="spec value" id="val-presence_update"><a href="#val-presence_update" class="anchor"></a><code><span class="keyword">val </span>presence_update : (<a href="../Disml__Event_models/PresenceUpdate/index.html#type-t">Disml__.Event_models.PresenceUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a user updates their presence.</p></dd></dl><dl><dt class="spec value" id="val-typing_start"><a href="#val-typing_start" class="anchor"></a><code><span class="keyword">val </span>typing_start : (<a href="../Disml__Event_models/TypingStart/index.html#type-t">Disml__.Event_models.TypingStart.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a typing indicator is displayed.</p></dd></dl><dl><dt class="spec value" id="val-user_update"><a href="#val-user_update" class="anchor"></a><code><span class="keyword">val </span>user_update : (<a href="../Disml__Event_models/UserUpdate/index.html#type-t">Disml__.Event_models.UserUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when the current user is updated. You most likely want <span class="xref-unresolved" title="unresolved reference to "Client.member_update""><code>Client</code>.member_update</span> or <span class="xref-unresolved" title="unresolved reference to "Client.presence_update""><code>Client</code>.presence_update</span> instead.</p></dd></dl><dl><dt class="spec value" id="val-webhook_update"><a href="#val-webhook_update" class="anchor"></a><code><span class="keyword">val </span>webhook_update : (<a href="../Disml__Event_models/WebhookUpdate/index.html#type-t">Disml__.Event_models.WebhookUpdate.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched when a webhook is updated.</p></dd></dl><dl><dt class="spec value" id="val-unknown"><a href="#val-unknown" class="anchor"></a><code><span class="keyword">val </span>unknown : (<a href="../Disml__Event_models/Unknown/index.html#type-t">Disml__.Event_models.Unknown.t</a> <span>-></span> unit) Stdlib.ref</code></dt><dd><p>Dispatched as a fallback for unknown events.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Embed/index.html b/docs/disml/Disml__Embed/index.html index 9a515c7..e712acc 100644 --- a/docs/disml/Disml__Embed/index.html +++ b/docs/disml/Disml__Embed/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Embed (disml.Disml__Embed)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Embed</nav><h1>Module <code>Disml__Embed</code></h1></header><dl><dt class="spec type" id="type-footer"><a href="#type-footer" class="anchor"></a><code><span class="keyword">type </span>footer</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-footer.text" class="anchored"><td class="def field"><a href="#type-footer.text" class="anchor"></a><code>text : string;</code></td></tr><tr id="type-footer.icon_url" class="anchored"><td class="def field"><a href="#type-footer.icon_url" class="anchor"></a><code>icon_url : string option;</code></td></tr><tr id="type-footer.proxy_icon_url" class="anchored"><td class="def field"><a href="#type-footer.proxy_icon_url" class="anchor"></a><code>proxy_icon_url : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-footer_of_sexp"><a href="#val-footer_of_sexp" class="anchor"></a><code><span class="keyword">val </span>footer_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-sexp_of_footer"><a href="#val-sexp_of_footer" class="anchor"></a><code><span class="keyword">val </span>sexp_of_footer : <a href="index.html#type-footer">footer</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-footer_to_yojson"><a href="#val-footer_to_yojson" class="anchor"></a><code><span class="keyword">val </span>footer_to_yojson : <a href="index.html#type-footer">footer</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-footer_of_yojson"><a href="#val-footer_of_yojson" class="anchor"></a><code><span class="keyword">val </span>footer_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-footer">footer</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-footer_of_yojson_exn"><a href="#val-footer_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>footer_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-footer">footer</a></code></dt></dl><dl><dt class="spec type" id="type-image"><a href="#type-image" class="anchor"></a><code><span class="keyword">type </span>image</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-image.url" class="anchored"><td class="def field"><a href="#type-image.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-image.proxy_url" class="anchored"><td class="def field"><a href="#type-image.proxy_url" class="anchor"></a><code>proxy_url : string option;</code></td></tr><tr id="type-image.height" class="anchored"><td class="def field"><a href="#type-image.height" class="anchor"></a><code>height : int option;</code></td></tr><tr id="type-image.width" class="anchored"><td class="def field"><a href="#type-image.width" class="anchor"></a><code>width : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-image_of_sexp"><a href="#val-image_of_sexp" class="anchor"></a><code><span class="keyword">val </span>image_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-image">image</a></code></dt><dt class="spec value" id="val-sexp_of_image"><a href="#val-sexp_of_image" class="anchor"></a><code><span class="keyword">val </span>sexp_of_image : <a href="index.html#type-image">image</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-image_to_yojson"><a href="#val-image_to_yojson" class="anchor"></a><code><span class="keyword">val </span>image_to_yojson : <a href="index.html#type-image">image</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-image_of_yojson"><a href="#val-image_of_yojson" class="anchor"></a><code><span class="keyword">val </span>image_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-image">image</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-image_of_yojson_exn"><a href="#val-image_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>image_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-image">image</a></code></dt></dl><dl><dt class="spec type" id="type-video"><a href="#type-video" class="anchor"></a><code><span class="keyword">type </span>video</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-video.url" class="anchored"><td class="def field"><a href="#type-video.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-video.height" class="anchored"><td class="def field"><a href="#type-video.height" class="anchor"></a><code>height : int option;</code></td></tr><tr id="type-video.width" class="anchored"><td class="def field"><a href="#type-video.width" class="anchor"></a><code>width : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-video_of_sexp"><a href="#val-video_of_sexp" class="anchor"></a><code><span class="keyword">val </span>video_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-video">video</a></code></dt><dt class="spec value" id="val-sexp_of_video"><a href="#val-sexp_of_video" class="anchor"></a><code><span class="keyword">val </span>sexp_of_video : <a href="index.html#type-video">video</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-video_to_yojson"><a href="#val-video_to_yojson" class="anchor"></a><code><span class="keyword">val </span>video_to_yojson : <a href="index.html#type-video">video</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-video_of_yojson"><a href="#val-video_of_yojson" class="anchor"></a><code><span class="keyword">val </span>video_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-video">video</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-video_of_yojson_exn"><a href="#val-video_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>video_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-video">video</a></code></dt></dl><dl><dt class="spec type" id="type-provider"><a href="#type-provider" class="anchor"></a><code><span class="keyword">type </span>provider</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-provider.name" class="anchored"><td class="def field"><a href="#type-provider.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-provider.url" class="anchored"><td class="def field"><a href="#type-provider.url" class="anchor"></a><code>url : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-provider_of_sexp"><a href="#val-provider_of_sexp" class="anchor"></a><code><span class="keyword">val </span>provider_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-provider">provider</a></code></dt><dt class="spec value" id="val-sexp_of_provider"><a href="#val-sexp_of_provider" class="anchor"></a><code><span class="keyword">val </span>sexp_of_provider : <a href="index.html#type-provider">provider</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-provider_to_yojson"><a href="#val-provider_to_yojson" class="anchor"></a><code><span class="keyword">val </span>provider_to_yojson : <a href="index.html#type-provider">provider</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-provider_of_yojson"><a href="#val-provider_of_yojson" class="anchor"></a><code><span class="keyword">val </span>provider_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-provider">provider</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-provider_of_yojson_exn"><a href="#val-provider_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>provider_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-provider">provider</a></code></dt></dl><dl><dt class="spec type" id="type-author"><a href="#type-author" class="anchor"></a><code><span class="keyword">type </span>author</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-author.name" class="anchored"><td class="def field"><a href="#type-author.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-author.url" class="anchored"><td class="def field"><a href="#type-author.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-author.icon_url" class="anchored"><td class="def field"><a href="#type-author.icon_url" class="anchor"></a><code>icon_url : string option;</code></td></tr><tr id="type-author.proxy_icon_url" class="anchored"><td class="def field"><a href="#type-author.proxy_icon_url" class="anchor"></a><code>proxy_icon_url : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-author_of_sexp"><a href="#val-author_of_sexp" class="anchor"></a><code><span class="keyword">val </span>author_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-sexp_of_author"><a href="#val-sexp_of_author" class="anchor"></a><code><span class="keyword">val </span>sexp_of_author : <a href="index.html#type-author">author</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-author_to_yojson"><a href="#val-author_to_yojson" class="anchor"></a><code><span class="keyword">val </span>author_to_yojson : <a href="index.html#type-author">author</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-author_of_yojson"><a href="#val-author_of_yojson" class="anchor"></a><code><span class="keyword">val </span>author_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-author">author</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-author_of_yojson_exn"><a href="#val-author_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>author_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-author">author</a></code></dt></dl><dl><dt class="spec type" id="type-field"><a href="#type-field" class="anchor"></a><code><span class="keyword">type </span>field</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-field.name" class="anchored"><td class="def field"><a href="#type-field.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-field.value" class="anchored"><td class="def field"><a href="#type-field.value" class="anchor"></a><code>value : string;</code></td></tr><tr id="type-field.inline" class="anchored"><td class="def field"><a href="#type-field.inline" class="anchor"></a><code>inline : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-field_of_sexp"><a href="#val-field_of_sexp" class="anchor"></a><code><span class="keyword">val </span>field_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-field">field</a></code></dt><dt class="spec value" id="val-sexp_of_field"><a href="#val-sexp_of_field" class="anchor"></a><code><span class="keyword">val </span>sexp_of_field : <a href="index.html#type-field">field</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-field_to_yojson"><a href="#val-field_to_yojson" class="anchor"></a><code><span class="keyword">val </span>field_to_yojson : <a href="index.html#type-field">field</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-field_of_yojson"><a href="#val-field_of_yojson" class="anchor"></a><code><span class="keyword">val </span>field_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-field">field</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-field_of_yojson_exn"><a href="#val-field_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>field_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-field">field</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.title" class="anchored"><td class="def field"><a href="#type-t.title" class="anchor"></a><code>title : string option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : string option;</code></td></tr><tr id="type-t.description" class="anchored"><td class="def field"><a href="#type-t.description" class="anchor"></a><code>description : string option;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int option;</code></td></tr><tr id="type-t.footer" class="anchored"><td class="def field"><a href="#type-t.footer" class="anchor"></a><code>footer : <a href="index.html#type-footer">footer</a> option;</code></td></tr><tr id="type-t.image" class="anchored"><td class="def field"><a href="#type-t.image" class="anchor"></a><code>image : <a href="index.html#type-image">image</a> option;</code></td></tr><tr id="type-t.thumbnail" class="anchored"><td class="def field"><a href="#type-t.thumbnail" class="anchor"></a><code>thumbnail : <a href="index.html#type-image">image</a> option;</code></td></tr><tr id="type-t.video" class="anchored"><td class="def field"><a href="#type-t.video" class="anchor"></a><code>video : <a href="index.html#type-video">video</a> option;</code></td></tr><tr id="type-t.provider" class="anchored"><td class="def field"><a href="#type-t.provider" class="anchor"></a><code>provider : <a href="index.html#type-provider">provider</a> option;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="index.html#type-author">author</a> option;</code></td></tr><tr id="type-t.fields" class="anchored"><td class="def field"><a href="#type-t.fields" class="anchor"></a><code>fields : <a href="index.html#type-field">field</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-default"><a href="#val-default" class="anchor"></a><code><span class="keyword">val </span>default : <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-default_footer"><a href="#val-default_footer" class="anchor"></a><code><span class="keyword">val </span>default_footer : <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-default_image"><a href="#val-default_image" class="anchor"></a><code><span class="keyword">val </span>default_image : <a href="index.html#type-image">image</a></code></dt><dt class="spec value" id="val-default_video"><a href="#val-default_video" class="anchor"></a><code><span class="keyword">val </span>default_video : <a href="index.html#type-video">video</a></code></dt><dt class="spec value" id="val-default_provider"><a href="#val-default_provider" class="anchor"></a><code><span class="keyword">val </span>default_provider : <a href="index.html#type-provider">provider</a></code></dt><dt class="spec value" id="val-default_author"><a href="#val-default_author" class="anchor"></a><code><span class="keyword">val </span>default_author : <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-title"><a href="#val-title" class="anchor"></a><code><span class="keyword">val </span>title : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-description"><a href="#val-description" class="anchor"></a><code><span class="keyword">val </span>description : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-url"><a href="#val-url" class="anchor"></a><code><span class="keyword">val </span>url : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-timestamp"><a href="#val-timestamp" class="anchor"></a><code><span class="keyword">val </span>timestamp : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-colour"><a href="#val-colour" class="anchor"></a><code><span class="keyword">val </span>colour : int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-color"><a href="#val-color" class="anchor"></a><code><span class="keyword">val </span>color : int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-footer"><a href="#val-footer" class="anchor"></a><code><span class="keyword">val </span>footer : (<a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a>) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-image"><a href="#val-image" class="anchor"></a><code><span class="keyword">val </span>image : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-thumbnail"><a href="#val-thumbnail" class="anchor"></a><code><span class="keyword">val </span>thumbnail : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-author"><a href="#val-author" class="anchor"></a><code><span class="keyword">val </span>author : (<a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a>) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-field"><a href="#val-field" class="anchor"></a><code><span class="keyword">val </span>field : (string<span class="keyword"> * </span>string<span class="keyword"> * </span>bool) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-fields"><a href="#val-fields" class="anchor"></a><code><span class="keyword">val </span>fields : (string<span class="keyword"> * </span>string<span class="keyword"> * </span>bool) list <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-footer_text"><a href="#val-footer_text" class="anchor"></a><code><span class="keyword">val </span>footer_text : string <span>-></span> <a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-footer_icon"><a href="#val-footer_icon" class="anchor"></a><code><span class="keyword">val </span>footer_icon : string <span>-></span> <a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-author_name"><a href="#val-author_name" class="anchor"></a><code><span class="keyword">val </span>author_name : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-author_url"><a href="#val-author_url" class="anchor"></a><code><span class="keyword">val </span>author_url : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-author_icon"><a href="#val-author_icon" class="anchor"></a><code><span class="keyword">val </span>author_icon : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Embed (disml.Disml__Embed)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Embed</nav><h1>Module <code>Disml__Embed</code></h1></header><dl><dt class="spec type" id="type-footer"><a href="#type-footer" class="anchor"></a><code><span class="keyword">type </span>footer</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-footer.text" class="anchored"><td class="def field"><a href="#type-footer.text" class="anchor"></a><code>text : string;</code></td></tr><tr id="type-footer.icon_url" class="anchored"><td class="def field"><a href="#type-footer.icon_url" class="anchor"></a><code>icon_url : string option;</code></td></tr><tr id="type-footer.proxy_icon_url" class="anchored"><td class="def field"><a href="#type-footer.proxy_icon_url" class="anchor"></a><code>proxy_icon_url : string option;</code></td></tr></table><code>}</code></dt><dd><p>A footer object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-footer_of_sexp"><a href="#val-footer_of_sexp" class="anchor"></a><code><span class="keyword">val </span>footer_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dt class="spec value" id="val-sexp_of_footer"><a href="#val-sexp_of_footer" class="anchor"></a><code><span class="keyword">val </span>sexp_of_footer : <a href="index.html#type-footer">footer</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-footer_to_yojson"><a href="#val-footer_to_yojson" class="anchor"></a><code><span class="keyword">val </span>footer_to_yojson : <a href="index.html#type-footer">footer</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-footer_of_yojson"><a href="#val-footer_of_yojson" class="anchor"></a><code><span class="keyword">val </span>footer_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-footer">footer</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-footer_of_yojson_exn"><a href="#val-footer_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>footer_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-footer">footer</a></code></dt></dl><dl><dt class="spec type" id="type-image"><a href="#type-image" class="anchor"></a><code><span class="keyword">type </span>image</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-image.url" class="anchored"><td class="def field"><a href="#type-image.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-image.proxy_url" class="anchored"><td class="def field"><a href="#type-image.proxy_url" class="anchor"></a><code>proxy_url : string option;</code></td></tr><tr id="type-image.height" class="anchored"><td class="def field"><a href="#type-image.height" class="anchor"></a><code>height : int option;</code></td></tr><tr id="type-image.width" class="anchored"><td class="def field"><a href="#type-image.width" class="anchor"></a><code>width : int option;</code></td></tr></table><code>}</code></dt><dd><p>An image object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-image_of_sexp"><a href="#val-image_of_sexp" class="anchor"></a><code><span class="keyword">val </span>image_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-image">image</a></code></dt><dt class="spec value" id="val-sexp_of_image"><a href="#val-sexp_of_image" class="anchor"></a><code><span class="keyword">val </span>sexp_of_image : <a href="index.html#type-image">image</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-image_to_yojson"><a href="#val-image_to_yojson" class="anchor"></a><code><span class="keyword">val </span>image_to_yojson : <a href="index.html#type-image">image</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-image_of_yojson"><a href="#val-image_of_yojson" class="anchor"></a><code><span class="keyword">val </span>image_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-image">image</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-image_of_yojson_exn"><a href="#val-image_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>image_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-image">image</a></code></dt></dl><dl><dt class="spec type" id="type-video"><a href="#type-video" class="anchor"></a><code><span class="keyword">type </span>video</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-video.url" class="anchored"><td class="def field"><a href="#type-video.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-video.height" class="anchored"><td class="def field"><a href="#type-video.height" class="anchor"></a><code>height : int option;</code></td></tr><tr id="type-video.width" class="anchored"><td class="def field"><a href="#type-video.width" class="anchor"></a><code>width : int option;</code></td></tr></table><code>}</code></dt><dd><p>A video object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-video_of_sexp"><a href="#val-video_of_sexp" class="anchor"></a><code><span class="keyword">val </span>video_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-video">video</a></code></dt><dt class="spec value" id="val-sexp_of_video"><a href="#val-sexp_of_video" class="anchor"></a><code><span class="keyword">val </span>sexp_of_video : <a href="index.html#type-video">video</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-video_to_yojson"><a href="#val-video_to_yojson" class="anchor"></a><code><span class="keyword">val </span>video_to_yojson : <a href="index.html#type-video">video</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-video_of_yojson"><a href="#val-video_of_yojson" class="anchor"></a><code><span class="keyword">val </span>video_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-video">video</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-video_of_yojson_exn"><a href="#val-video_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>video_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-video">video</a></code></dt></dl><dl><dt class="spec type" id="type-provider"><a href="#type-provider" class="anchor"></a><code><span class="keyword">type </span>provider</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-provider.name" class="anchored"><td class="def field"><a href="#type-provider.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-provider.url" class="anchored"><td class="def field"><a href="#type-provider.url" class="anchor"></a><code>url : string option;</code></td></tr></table><code>}</code></dt><dd><p>A provider object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-provider_of_sexp"><a href="#val-provider_of_sexp" class="anchor"></a><code><span class="keyword">val </span>provider_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-provider">provider</a></code></dt><dt class="spec value" id="val-sexp_of_provider"><a href="#val-sexp_of_provider" class="anchor"></a><code><span class="keyword">val </span>sexp_of_provider : <a href="index.html#type-provider">provider</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-provider_to_yojson"><a href="#val-provider_to_yojson" class="anchor"></a><code><span class="keyword">val </span>provider_to_yojson : <a href="index.html#type-provider">provider</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-provider_of_yojson"><a href="#val-provider_of_yojson" class="anchor"></a><code><span class="keyword">val </span>provider_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-provider">provider</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-provider_of_yojson_exn"><a href="#val-provider_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>provider_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-provider">provider</a></code></dt></dl><dl><dt class="spec type" id="type-author"><a href="#type-author" class="anchor"></a><code><span class="keyword">type </span>author</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-author.name" class="anchored"><td class="def field"><a href="#type-author.name" class="anchor"></a><code>name : string option;</code></td></tr><tr id="type-author.url" class="anchored"><td class="def field"><a href="#type-author.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-author.icon_url" class="anchored"><td class="def field"><a href="#type-author.icon_url" class="anchor"></a><code>icon_url : string option;</code></td></tr><tr id="type-author.proxy_icon_url" class="anchored"><td class="def field"><a href="#type-author.proxy_icon_url" class="anchor"></a><code>proxy_icon_url : string option;</code></td></tr></table><code>}</code></dt><dd><p>An author object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-author_of_sexp"><a href="#val-author_of_sexp" class="anchor"></a><code><span class="keyword">val </span>author_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-author">author</a></code></dt><dt class="spec value" id="val-sexp_of_author"><a href="#val-sexp_of_author" class="anchor"></a><code><span class="keyword">val </span>sexp_of_author : <a href="index.html#type-author">author</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-author_to_yojson"><a href="#val-author_to_yojson" class="anchor"></a><code><span class="keyword">val </span>author_to_yojson : <a href="index.html#type-author">author</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-author_of_yojson"><a href="#val-author_of_yojson" class="anchor"></a><code><span class="keyword">val </span>author_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-author">author</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-author_of_yojson_exn"><a href="#val-author_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>author_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-author">author</a></code></dt></dl><dl><dt class="spec type" id="type-field"><a href="#type-field" class="anchor"></a><code><span class="keyword">type </span>field</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-field.name" class="anchored"><td class="def field"><a href="#type-field.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-field.value" class="anchored"><td class="def field"><a href="#type-field.value" class="anchor"></a><code>value : string;</code></td></tr><tr id="type-field.inline" class="anchored"><td class="def field"><a href="#type-field.inline" class="anchor"></a><code>inline : bool;</code></td></tr></table><code>}</code></dt><dd><p>A field object belonging to an embed.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-field_of_sexp"><a href="#val-field_of_sexp" class="anchor"></a><code><span class="keyword">val </span>field_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-field">field</a></code></dt><dt class="spec value" id="val-sexp_of_field"><a href="#val-sexp_of_field" class="anchor"></a><code><span class="keyword">val </span>sexp_of_field : <a href="index.html#type-field">field</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-field_to_yojson"><a href="#val-field_to_yojson" class="anchor"></a><code><span class="keyword">val </span>field_to_yojson : <a href="index.html#type-field">field</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-field_of_yojson"><a href="#val-field_of_yojson" class="anchor"></a><code><span class="keyword">val </span>field_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-field">field</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-field_of_yojson_exn"><a href="#val-field_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>field_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-field">field</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.title" class="anchored"><td class="def field"><a href="#type-t.title" class="anchor"></a><code>title : string option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : string option;</code></td></tr><tr id="type-t.description" class="anchored"><td class="def field"><a href="#type-t.description" class="anchor"></a><code>description : string option;</code></td></tr><tr id="type-t.url" class="anchored"><td class="def field"><a href="#type-t.url" class="anchor"></a><code>url : string option;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int option;</code></td></tr><tr id="type-t.footer" class="anchored"><td class="def field"><a href="#type-t.footer" class="anchor"></a><code>footer : <a href="index.html#type-footer">footer</a> option;</code></td></tr><tr id="type-t.image" class="anchored"><td class="def field"><a href="#type-t.image" class="anchor"></a><code>image : <a href="index.html#type-image">image</a> option;</code></td></tr><tr id="type-t.thumbnail" class="anchored"><td class="def field"><a href="#type-t.thumbnail" class="anchor"></a><code>thumbnail : <a href="index.html#type-image">image</a> option;</code></td></tr><tr id="type-t.video" class="anchored"><td class="def field"><a href="#type-t.video" class="anchor"></a><code>video : <a href="index.html#type-video">video</a> option;</code></td></tr><tr id="type-t.provider" class="anchored"><td class="def field"><a href="#type-t.provider" class="anchor"></a><code>provider : <a href="index.html#type-provider">provider</a> option;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="index.html#type-author">author</a> option;</code></td></tr><tr id="type-t.fields" class="anchored"><td class="def field"><a href="#type-t.fields" class="anchor"></a><code>fields : <a href="index.html#type-field">field</a> list;</code></td></tr></table><code>}</code></dt><dd><p>An embed object. See this <a href="https://leovoel.github.io/embed-visualizer/">embed visualiser</a> if you need help understanding each component.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-default"><a href="#val-default" class="anchor"></a><code><span class="keyword">val </span>default : <a href="index.html#type-t">t</a></code></dt><dd><p>An embed where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_footer"><a href="#val-default_footer" class="anchor"></a><code><span class="keyword">val </span>default_footer : <a href="index.html#type-footer">footer</a></code></dt><dd><p>A footer where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_image"><a href="#val-default_image" class="anchor"></a><code><span class="keyword">val </span>default_image : <a href="index.html#type-image">image</a></code></dt><dd><p>An image where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_video"><a href="#val-default_video" class="anchor"></a><code><span class="keyword">val </span>default_video : <a href="index.html#type-video">video</a></code></dt><dd><p>A video where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_provider"><a href="#val-default_provider" class="anchor"></a><code><span class="keyword">val </span>default_provider : <a href="index.html#type-provider">provider</a></code></dt><dd><p>A provider where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-default_author"><a href="#val-default_author" class="anchor"></a><code><span class="keyword">val </span>default_author : <a href="index.html#type-author">author</a></code></dt><dd><p>An author where all values are empty.</p></dd></dl><dl><dt class="spec value" id="val-title"><a href="#val-title" class="anchor"></a><code><span class="keyword">val </span>title : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the title of an embed.</p></dd></dl><dl><dt class="spec value" id="val-description"><a href="#val-description" class="anchor"></a><code><span class="keyword">val </span>description : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the description of an embed.</p></dd></dl><dl><dt class="spec value" id="val-url"><a href="#val-url" class="anchor"></a><code><span class="keyword">val </span>url : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the URL of an embed.</p></dd></dl><dl><dt class="spec value" id="val-timestamp"><a href="#val-timestamp" class="anchor"></a><code><span class="keyword">val </span>timestamp : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the timestamp of an embed.</p></dd></dl><dl><dt class="spec value" id="val-colour"><a href="#val-colour" class="anchor"></a><code><span class="keyword">val </span>colour : int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the colour of an embed.</p></dd></dl><dl><dt class="spec value" id="val-color"><a href="#val-color" class="anchor"></a><code><span class="keyword">val </span>color : int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Identical to <a href="index.html#type-t.colour"><code>colour</code></a> but with US English spelling.</p></dd></dl><dl><dt class="spec value" id="val-footer"><a href="#val-footer" class="anchor"></a><code><span class="keyword">val </span>footer : (<a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a>) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the footer of an embed. The function passes <a href="index.html#val-default_footer"><code>default_footer</code></a> and must return a footer.</p></dd></dl><dl><dt class="spec value" id="val-image"><a href="#val-image" class="anchor"></a><code><span class="keyword">val </span>image : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the image URL of an embed.</p></dd></dl><dl><dt class="spec value" id="val-thumbnail"><a href="#val-thumbnail" class="anchor"></a><code><span class="keyword">val </span>thumbnail : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the thumbnail URL of an embed.</p></dd></dl><dl><dt class="spec value" id="val-author"><a href="#val-author" class="anchor"></a><code><span class="keyword">val </span>author : (<a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a>) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the author of an embed. The function passes <a href="index.html#val-default_author"><code>default_author</code></a> and must return an author.</p></dd></dl><dl><dt class="spec value" id="val-field"><a href="#val-field" class="anchor"></a><code><span class="keyword">val </span>field : (string<span class="keyword"> * </span>string<span class="keyword"> * </span>bool) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Add a field to an embed. Takes a tuple in <code>(name, value, inline)</code> order. <b>Fields added this way will appear in reverse order in the embed.</b></p></dd></dl><dl><dt class="spec value" id="val-fields"><a href="#val-fields" class="anchor"></a><code><span class="keyword">val </span>fields : (string<span class="keyword"> * </span>string<span class="keyword"> * </span>bool) list <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Set the fields of an embed. Similar to <a href="index.html#type-field"><code>field</code></a>, but because a complete list is passed, fields preserve order.</p></dd></dl><dl><dt class="spec value" id="val-footer_text"><a href="#val-footer_text" class="anchor"></a><code><span class="keyword">val </span>footer_text : string <span>-></span> <a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dd><p>Set the footer text. Typically used in the closure passed to <a href="index.html#type-footer"><code>footer</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-footer_icon"><a href="#val-footer_icon" class="anchor"></a><code><span class="keyword">val </span>footer_icon : string <span>-></span> <a href="index.html#type-footer">footer</a> <span>-></span> <a href="index.html#type-footer">footer</a></code></dt><dd><p>Set the footer icon URL. Typically used in the closure passed to <a href="index.html#type-footer"><code>footer</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-author_name"><a href="#val-author_name" class="anchor"></a><code><span class="keyword">val </span>author_name : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dd><p>Set the author name. Typically used in the closure passed to <a href="index.html#type-author"><code>author</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-author_url"><a href="#val-author_url" class="anchor"></a><code><span class="keyword">val </span>author_url : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dd><p>Set the author URL. Typically used in the closure passed to <a href="index.html#type-author"><code>author</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-author_icon"><a href="#val-author_icon" class="anchor"></a><code><span class="keyword">val </span>author_icon : string <span>-></span> <a href="index.html#type-author">author</a> <span>-></span> <a href="index.html#type-author">author</a></code></dt><dd><p>Set the author icon URL. Typically used in the closure passed to <a href="index.html#type-author"><code>author</code></a>.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Emoji/index.html b/docs/disml/Disml__Emoji/index.html index 9a766b9..181f829 100644 --- a/docs/disml/Disml__Emoji/index.html +++ b/docs/disml/Disml__Emoji/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Emoji (disml.Disml__Emoji)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Emoji</nav><h1>Module <code>Disml__Emoji</code></h1></header><dl><dt class="spec type" id="type-partial_emoji"><a href="#type-partial_emoji" class="anchor"></a><code><span class="keyword">type </span>partial_emoji</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_emoji.id" class="anchored"><td class="def field"><a href="#type-partial_emoji.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-partial_emoji.name" class="anchored"><td class="def field"><a href="#type-partial_emoji.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_emoji_of_sexp"><a href="#val-partial_emoji_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a></code></dt><dt class="spec value" id="val-sexp_of_partial_emoji"><a href="#val-sexp_of_partial_emoji" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_emoji : <a href="index.html#type-partial_emoji">partial_emoji</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_emoji_to_yojson"><a href="#val-partial_emoji_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_to_yojson : <a href="index.html#type-partial_emoji">partial_emoji</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_emoji_of_yojson"><a href="#val-partial_emoji_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_emoji_of_yojson_exn"><a href="#val-partial_emoji_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a> option;</code></td></tr><tr id="type-t.require_colons" class="anchored"><td class="def field"><a href="#type-t.require_colons" class="anchor"></a><code>require_colons : bool option;</code></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool option;</code></td></tr><tr id="type-t.animated" class="anchored"><td class="def field"><a href="#type-t.animated" class="anchor"></a><code>animated : bool option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Emoji (disml.Disml__Emoji)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Emoji</nav><h1>Module <code>Disml__Emoji</code></h1></header><dl><dt class="spec type" id="type-partial_emoji"><a href="#type-partial_emoji" class="anchor"></a><code><span class="keyword">type </span>partial_emoji</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_emoji.id" class="anchored"><td class="def field"><a href="#type-partial_emoji.id" class="anchor"></a><code>id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-partial_emoji.name" class="anchored"><td class="def field"><a href="#type-partial_emoji.name" class="anchor"></a><code>name : string;</code></td></tr></table><code>}</code></dt><dd><p>A partial emoji, used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_emoji_of_sexp"><a href="#val-partial_emoji_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a></code></dt><dt class="spec value" id="val-sexp_of_partial_emoji"><a href="#val-sexp_of_partial_emoji" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_emoji : <a href="index.html#type-partial_emoji">partial_emoji</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_emoji_to_yojson"><a href="#val-partial_emoji_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_to_yojson : <a href="index.html#type-partial_emoji">partial_emoji</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_emoji_of_yojson"><a href="#val-partial_emoji_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_emoji_of_yojson_exn"><a href="#val-partial_emoji_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_emoji_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_emoji">partial_emoji</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Snowflake ID of the emoji. Only exists for custom emojis.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>Name of the emoji. Either the emoji custom name or a unicode character.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>List of roles required to use this emoji. Is only non-empty on some integration emojis.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> option;</code></td><td class="doc"><p>User object of the person who uploaded the emoji. Only exists for custom emojis.</p></td></tr><tr id="type-t.require_colons" class="anchored"><td class="def field"><a href="#type-t.require_colons" class="anchor"></a><code>require_colons : bool;</code></td><td class="doc"><p>Whether the emoji must be wrapped in colons. Is false for unicode emojis.</p></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td><td class="doc"><p>Whether the emoji is managed by an integration.</p></td></tr><tr id="type-t.animated" class="anchored"><td class="def field"><a href="#type-t.animated" class="anchor"></a><code>animated : bool;</code></td><td class="doc"><p>Whether the emoji is animated.</p></td></tr></table><code>}</code></dt><dd><p>A full emoji object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event/index.html b/docs/disml/Disml__Event/index.html index ea15cf9..27e4c06 100644 --- a/docs/disml/Disml__Event/index.html +++ b/docs/disml/Disml__Event/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Event (disml.Disml__Event)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Event</nav><h1>Module <code>Disml__Event</code></h1><p>Barebones of event dispatching. Most users will have no reason to look here.</p></header><dl><dt class="spec exception" id="exception-Invalid_event"><a href="#exception-Invalid_event" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_event</span><span class="keyword"> of </span>string</code></dt><dd><p>Used internally when received an unknown event. Is caught and logged.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.HELLO" class="anchored"><td class="def constructor"><a href="#type-t.HELLO" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">HELLO</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.READY" class="anchored"><td class="def constructor"><a href="#type-t.READY" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">READY</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.RESUMED" class="anchored"><td class="def constructor"><a href="#type-t.RESUMED" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">RESUMED</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.INVALID_SESSION" class="anchored"><td class="def constructor"><a href="#type-t.INVALID_SESSION" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">INVALID_SESSION</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.CHANNEL_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_CREATE</span><span class="keyword"> of </span><a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a></code></td></tr><tr id="type-t.CHANNEL_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_UPDATE</span><span class="keyword"> of </span><a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a></code></td></tr><tr id="type-t.CHANNEL_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_DELETE</span><span class="keyword"> of </span><a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a></code></td></tr><tr id="type-t.CHANNEL_PINS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_PINS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_PINS_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.GUILD_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_CREATE</span><span class="keyword"> of </span><a href="../Disml/Guild_t/index.html#type-t">Disml.Guild_t.t</a></code></td></tr><tr id="type-t.GUILD_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_UPDATE</span><span class="keyword"> of </span><a href="../Disml/Guild_t/index.html#type-t">Disml.Guild_t.t</a></code></td></tr><tr id="type-t.GUILD_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_DELETE</span><span class="keyword"> of </span><a href="../Disml/Guild_t/index.html#type-t">Disml.Guild_t.t</a></code></td></tr><tr id="type-t.GUILD_BAN_ADD" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_BAN_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_BAN_ADD</span><span class="keyword"> of </span><a href="../Disml/Ban_t/index.html#type-t">Disml.Ban_t.t</a></code></td></tr><tr id="type-t.GUILD_BAN_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_BAN_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_BAN_REMOVE</span><span class="keyword"> of </span><a href="../Disml/Ban_t/index.html#type-t">Disml.Ban_t.t</a></code></td></tr><tr id="type-t.GUILD_EMOJIS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_EMOJIS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_EMOJIS_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.GUILD_INTEGRATIONS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_INTEGRATIONS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_INTEGRATIONS_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.GUILD_MEMBER_ADD" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_ADD</span><span class="keyword"> of </span><a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a></code></td></tr><tr id="type-t.GUILD_MEMBER_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_REMOVE</span><span class="keyword"> of </span><a href="../Disml/Member_t/index.html#type-member_wrapper">Disml.Member_t.member_wrapper</a></code></td></tr><tr id="type-t.GUILD_MEMBER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_UPDATE</span><span class="keyword"> of </span><a href="../Disml/Member_t/index.html#type-member_update">Disml.Member_t.member_update</a></code></td></tr><tr id="type-t.GUILD_MEMBERS_CHUNK" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBERS_CHUNK" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBERS_CHUNK</span><span class="keyword"> of </span><a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> list</code></td></tr><tr id="type-t.GUILD_ROLE_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_CREATE</span><span class="keyword"> of </span><a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_UPDATE</span><span class="keyword"> of </span><a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_DELETE</span><span class="keyword"> of </span><a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a></code></td></tr><tr id="type-t.MESSAGE_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_CREATE</span><span class="keyword"> of </span><a href="../Disml/Message_t/index.html#type-t">Disml.Message_t.t</a></code></td></tr><tr id="type-t.MESSAGE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_UPDATE</span><span class="keyword"> of </span><a href="../Disml/Message_t/index.html#type-message_update">Disml.Message_t.message_update</a></code></td></tr><tr id="type-t.MESSAGE_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_DELETE</span><span class="keyword"> of </span><a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a><span class="keyword"> * </span><a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a></code></td></tr><tr id="type-t.MESSAGE_BULK_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_BULK_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_BULK_DELETE</span><span class="keyword"> of </span><a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list</code></td></tr><tr id="type-t.MESSAGE_REACTION_ADD" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_REACTION_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_REACTION_ADD</span><span class="keyword"> of </span><a href="../Disml/Reaction_t/index.html#type-reaction_event">Disml.Reaction_t.reaction_event</a></code></td></tr><tr id="type-t.MESSAGE_REACTION_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_REACTION_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_REACTION_REMOVE</span><span class="keyword"> of </span><a href="../Disml/Reaction_t/index.html#type-reaction_event">Disml.Reaction_t.reaction_event</a></code></td></tr><tr id="type-t.MESSAGE_REACTION_REMOVE_ALL" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_REACTION_REMOVE_ALL" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_REACTION_REMOVE_ALL</span><span class="keyword"> of </span><a href="../Disml/Reaction_t/index.html#type-t">Disml.Reaction_t.t</a> list</code></td></tr><tr id="type-t.PRESENCE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.PRESENCE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">PRESENCE_UPDATE</span><span class="keyword"> of </span><a href="../Disml/Presence/index.html#type-t">Disml.Presence.t</a></code></td></tr><tr id="type-t.TYPING_START" class="anchored"><td class="def constructor"><a href="#type-t.TYPING_START" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">TYPING_START</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.USER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.USER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">USER_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.VOICE_STATE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.VOICE_STATE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">VOICE_STATE_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.VOICE_SERVER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.VOICE_SERVER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">VOICE_SERVER_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr><tr id="type-t.WEBHOOKS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.WEBHOOKS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">WEBHOOKS_UPDATE</span><span class="keyword"> of </span>Yojson.Safe.json</code></td></tr></table></dt><dd><p>Event dispatch type wrapper. Used internally.</p></dd></dl><dl><dt class="spec value" id="val-event_of_yojson"><a href="#val-event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>event_of_yojson : contents:Yojson.Safe.json <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Used to convert an event string and payload into a t wrapper type.</p></dd></dl><dl><dt class="spec value" id="val-dispatch"><a href="#val-dispatch" class="anchor"></a><code><span class="keyword">val </span>dispatch : <a href="index.html#type-t">t</a> <span>-></span> unit</code></dt><dd><p>Sends the event to the registered handler.</p></dd></dl><dl><dt class="spec value" id="val-handle_event"><a href="#val-handle_event" class="anchor"></a><code><span class="keyword">val </span>handle_event : ev:string <span>-></span> Yojson.Safe.json <span>-></span> unit</code></dt><dd><p>Wrapper to other functions. This is called from the shards.</p></dd></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Event (disml.Disml__Event)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Event</nav><h1>Module <code>Disml__Event</code></h1><p>Barebones of event dispatching. Most users will have no reason to look here.</p></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.READY" class="anchored"><td class="def constructor"><a href="#type-t.READY" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">READY</span><span class="keyword"> of </span><a href="../Disml__Event_models/Ready/index.html#type-t">Disml__.Event_models.Ready.t</a></code></td></tr><tr id="type-t.RESUMED" class="anchored"><td class="def constructor"><a href="#type-t.RESUMED" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">RESUMED</span><span class="keyword"> of </span><a href="../Disml__Event_models/Resumed/index.html#type-t">Disml__.Event_models.Resumed.t</a></code></td></tr><tr id="type-t.CHANNEL_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_CREATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/ChannelCreate/index.html#type-t">Disml__.Event_models.ChannelCreate.t</a></code></td></tr><tr id="type-t.CHANNEL_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/ChannelUpdate/index.html#type-t">Disml__.Event_models.ChannelUpdate.t</a></code></td></tr><tr id="type-t.CHANNEL_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_DELETE</span><span class="keyword"> of </span><a href="../Disml__Event_models/ChannelDelete/index.html#type-t">Disml__.Event_models.ChannelDelete.t</a></code></td></tr><tr id="type-t.CHANNEL_PINS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.CHANNEL_PINS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">CHANNEL_PINS_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/ChannelPinsUpdate/index.html#type-t">Disml__.Event_models.ChannelPinsUpdate.t</a></code></td></tr><tr id="type-t.GUILD_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_CREATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildCreate/index.html#type-t">Disml__.Event_models.GuildCreate.t</a></code></td></tr><tr id="type-t.GUILD_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildUpdate/index.html#type-t">Disml__.Event_models.GuildUpdate.t</a></code></td></tr><tr id="type-t.GUILD_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_DELETE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildDelete/index.html#type-t">Disml__.Event_models.GuildDelete.t</a></code></td></tr><tr id="type-t.GUILD_BAN_ADD" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_BAN_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_BAN_ADD</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildBanAdd/index.html#type-t">Disml__.Event_models.GuildBanAdd.t</a></code></td></tr><tr id="type-t.GUILD_BAN_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_BAN_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_BAN_REMOVE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildBanRemove/index.html#type-t">Disml__.Event_models.GuildBanRemove.t</a></code></td></tr><tr id="type-t.GUILD_EMOJIS_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_EMOJIS_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_EMOJIS_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildEmojisUpdate/index.html#type-t">Disml__.Event_models.GuildEmojisUpdate.t</a></code></td></tr><tr id="type-t.GUILD_MEMBER_ADD" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_ADD</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildMemberAdd/index.html#type-t">Disml__.Event_models.GuildMemberAdd.t</a></code></td></tr><tr id="type-t.GUILD_MEMBER_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_REMOVE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildMemberRemove/index.html#type-t">Disml__.Event_models.GuildMemberRemove.t</a></code></td></tr><tr id="type-t.GUILD_MEMBER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBER_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildMemberUpdate/index.html#type-t">Disml__.Event_models.GuildMemberUpdate.t</a></code></td></tr><tr id="type-t.GUILD_MEMBERS_CHUNK" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_MEMBERS_CHUNK" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_MEMBERS_CHUNK</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildMembersChunk/index.html#type-t">Disml__.Event_models.GuildMembersChunk.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_CREATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildRoleCreate/index.html#type-t">Disml__.Event_models.GuildRoleCreate.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildRoleUpdate/index.html#type-t">Disml__.Event_models.GuildRoleUpdate.t</a></code></td></tr><tr id="type-t.GUILD_ROLE_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.GUILD_ROLE_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">GUILD_ROLE_DELETE</span><span class="keyword"> of </span><a href="../Disml__Event_models/GuildRoleDelete/index.html#type-t">Disml__.Event_models.GuildRoleDelete.t</a></code></td></tr><tr id="type-t.MESSAGE_CREATE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_CREATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_CREATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/MessageCreate/index.html#type-t">Disml__.Event_models.MessageCreate.t</a></code></td></tr><tr id="type-t.MESSAGE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/MessageUpdate/index.html#type-t">Disml__.Event_models.MessageUpdate.t</a></code></td></tr><tr id="type-t.MESSAGE_DELETE" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_DELETE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_DELETE</span><span class="keyword"> of </span><a href="../Disml__Event_models/MessageDelete/index.html#type-t">Disml__.Event_models.MessageDelete.t</a></code></td></tr><tr id="type-t.MESSAGE_DELETE_BULK" class="anchored"><td class="def constructor"><a href="#type-t.MESSAGE_DELETE_BULK" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">MESSAGE_DELETE_BULK</span><span class="keyword"> of </span><a href="../Disml__Event_models/MessageDeleteBulk/index.html#type-t">Disml__.Event_models.MessageDeleteBulk.t</a></code></td></tr><tr id="type-t.REACTION_ADD" class="anchored"><td class="def constructor"><a href="#type-t.REACTION_ADD" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">REACTION_ADD</span><span class="keyword"> of </span><a href="../Disml__Event_models/ReactionAdd/index.html#type-t">Disml__.Event_models.ReactionAdd.t</a></code></td></tr><tr id="type-t.REACTION_REMOVE" class="anchored"><td class="def constructor"><a href="#type-t.REACTION_REMOVE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">REACTION_REMOVE</span><span class="keyword"> of </span><a href="../Disml__Event_models/ReactionRemove/index.html#type-t">Disml__.Event_models.ReactionRemove.t</a></code></td></tr><tr id="type-t.REACTION_REMOVE_ALL" class="anchored"><td class="def constructor"><a href="#type-t.REACTION_REMOVE_ALL" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">REACTION_REMOVE_ALL</span><span class="keyword"> of </span><a href="../Disml__Event_models/ReactionRemoveAll/index.html#type-t">Disml__.Event_models.ReactionRemoveAll.t</a></code></td></tr><tr id="type-t.PRESENCE_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.PRESENCE_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">PRESENCE_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/PresenceUpdate/index.html#type-t">Disml__.Event_models.PresenceUpdate.t</a></code></td></tr><tr id="type-t.TYPING_START" class="anchored"><td class="def constructor"><a href="#type-t.TYPING_START" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">TYPING_START</span><span class="keyword"> of </span><a href="../Disml__Event_models/TypingStart/index.html#type-t">Disml__.Event_models.TypingStart.t</a></code></td></tr><tr id="type-t.USER_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.USER_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">USER_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/UserUpdate/index.html#type-t">Disml__.Event_models.UserUpdate.t</a></code></td></tr><tr id="type-t.WEBHOOK_UPDATE" class="anchored"><td class="def constructor"><a href="#type-t.WEBHOOK_UPDATE" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">WEBHOOK_UPDATE</span><span class="keyword"> of </span><a href="../Disml__Event_models/WebhookUpdate/index.html#type-t">Disml__.Event_models.WebhookUpdate.t</a></code></td></tr><tr id="type-t.UNKNOWN" class="anchored"><td class="def constructor"><a href="#type-t.UNKNOWN" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">UNKNOWN</span><span class="keyword"> of </span><a href="../Disml__Event_models/Unknown/index.html#type-t">Disml__.Event_models.Unknown.t</a></code></td></tr></table></dt><dd><p>Event dispatch type wrapper. Used internally.</p></dd></dl><dl><dt class="spec value" id="val-event_of_yojson"><a href="#val-event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>event_of_yojson : contents:Yojson.Safe.json <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Used to convert an event string and payload into a t wrapper type.</p></dd></dl><dl><dt class="spec value" id="val-dispatch"><a href="#val-dispatch" class="anchor"></a><code><span class="keyword">val </span>dispatch : <a href="index.html#type-t">t</a> <span>-></span> unit</code></dt><dd><p>Sends the event to the registered handler.</p></dd></dl><dl><dt class="spec value" id="val-handle_event"><a href="#val-handle_event" class="anchor"></a><code><span class="keyword">val </span>handle_event : ev:string <span>-></span> Yojson.Safe.json <span>-></span> unit</code></dt><dd><p>Wrapper to other functions. This is called from the shards.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/.dune-keep b/docs/disml/Disml__Event_models/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__Event_models/.dune-keep diff --git a/docs/disml/Disml__Event_models/ChannelCreate/index.html b/docs/disml/Disml__Event_models/ChannelCreate/index.html new file mode 100644 index 0000000..f1ce649 --- /dev/null +++ b/docs/disml/Disml__Event_models/ChannelCreate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelCreate (disml.Disml__Event_models.ChannelCreate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » ChannelCreate</nav><h1>Module <code>Disml__Event_models.ChannelCreate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel" class="anchored"><td class="def field"><a href="#type-t.channel" class="anchor"></a><code>channel : <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/ChannelDelete/index.html b/docs/disml/Disml__Event_models/ChannelDelete/index.html new file mode 100644 index 0000000..c3874c0 --- /dev/null +++ b/docs/disml/Disml__Event_models/ChannelDelete/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelDelete (disml.Disml__Event_models.ChannelDelete)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » ChannelDelete</nav><h1>Module <code>Disml__Event_models.ChannelDelete</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel" class="anchored"><td class="def field"><a href="#type-t.channel" class="anchor"></a><code>channel : <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/ChannelPinsUpdate/index.html b/docs/disml/Disml__Event_models/ChannelPinsUpdate/index.html new file mode 100644 index 0000000..1464a4c --- /dev/null +++ b/docs/disml/Disml__Event_models/ChannelPinsUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelPinsUpdate (disml.Disml__Event_models.ChannelPinsUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » ChannelPinsUpdate</nav><h1>Module <code>Disml__Event_models.ChannelPinsUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.last_pin_timestamp" class="anchored"><td class="def field"><a href="#type-t.last_pin_timestamp" class="anchor"></a><code>last_pin_timestamp : string option;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/ChannelRecipientAdd/index.html b/docs/disml/Disml__Event_models/ChannelRecipientAdd/index.html new file mode 100644 index 0000000..2a3e194 --- /dev/null +++ b/docs/disml/Disml__Event_models/ChannelRecipientAdd/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelRecipientAdd (disml.Disml__Event_models.ChannelRecipientAdd)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » ChannelRecipientAdd</nav><h1>Module <code>Disml__Event_models.ChannelRecipientAdd</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/ChannelRecipientRemove/index.html b/docs/disml/Disml__Event_models/ChannelRecipientRemove/index.html new file mode 100644 index 0000000..beeeda8 --- /dev/null +++ b/docs/disml/Disml__Event_models/ChannelRecipientRemove/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelRecipientRemove (disml.Disml__Event_models.ChannelRecipientRemove)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » ChannelRecipientRemove</nav><h1>Module <code>Disml__Event_models.ChannelRecipientRemove</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/ChannelUpdate/index.html b/docs/disml/Disml__Event_models/ChannelUpdate/index.html new file mode 100644 index 0000000..4d3fd32 --- /dev/null +++ b/docs/disml/Disml__Event_models/ChannelUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelUpdate (disml.Disml__Event_models.ChannelUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » ChannelUpdate</nav><h1>Module <code>Disml__Event_models.ChannelUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel" class="anchored"><td class="def field"><a href="#type-t.channel" class="anchor"></a><code>channel : <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildBanAdd/index.html b/docs/disml/Disml__Event_models/GuildBanAdd/index.html new file mode 100644 index 0000000..8e01af8 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildBanAdd/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildBanAdd (disml.Disml__Event_models.GuildBanAdd)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildBanAdd</nav><h1>Module <code>Disml__Event_models.GuildBanAdd</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildBanRemove/index.html b/docs/disml/Disml__Event_models/GuildBanRemove/index.html new file mode 100644 index 0000000..6470290 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildBanRemove/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildBanRemove (disml.Disml__Event_models.GuildBanRemove)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildBanRemove</nav><h1>Module <code>Disml__Event_models.GuildBanRemove</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildCreate/index.html b/docs/disml/Disml__Event_models/GuildCreate/index.html new file mode 100644 index 0000000..1ae2f52 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildCreate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildCreate (disml.Disml__Event_models.GuildCreate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildCreate</nav><h1>Module <code>Disml__Event_models.GuildCreate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild" class="anchored"><td class="def field"><a href="#type-t.guild" class="anchor"></a><code>guild : <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildDelete/index.html b/docs/disml/Disml__Event_models/GuildDelete/index.html new file mode 100644 index 0000000..e86ede9 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildDelete/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildDelete (disml.Disml__Event_models.GuildDelete)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildDelete</nav><h1>Module <code>Disml__Event_models.GuildDelete</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildEmojisUpdate/index.html b/docs/disml/Disml__Event_models/GuildEmojisUpdate/index.html new file mode 100644 index 0000000..7819349 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildEmojisUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildEmojisUpdate (disml.Disml__Event_models.GuildEmojisUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildEmojisUpdate</nav><h1>Module <code>Disml__Event_models.GuildEmojisUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildMemberAdd/index.html b/docs/disml/Disml__Event_models/GuildMemberAdd/index.html new file mode 100644 index 0000000..e3908ca --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildMemberAdd/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildMemberAdd (disml.Disml__Event_models.GuildMemberAdd)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildMemberAdd</nav><h1>Module <code>Disml__Event_models.GuildMemberAdd</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../../Disml__/index.html#module-Member_t">Disml__.Member_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td><td class="doc"><p>The nickname of the member, if they have one set.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>The roles the member has.</p></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td><td class="doc"><p>An ISO8601 timestamp of when the user joined.</p></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td><td class="doc"><p>Whether the user is deafened.</p></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td><td class="doc"><p>Whether the user is muted.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The underlying user object for the member.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which the member exists.</p></td></tr></table><code>}</code></dt><dd><p>A member object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildMemberRemove/index.html b/docs/disml/Disml__Event_models/GuildMemberRemove/index.html new file mode 100644 index 0000000..cb0ba8e --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildMemberRemove/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildMemberRemove (disml.Disml__Event_models.GuildMemberRemove)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildMemberRemove</nav><h1>Module <code>Disml__Event_models.GuildMemberRemove</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildMemberUpdate/index.html b/docs/disml/Disml__Event_models/GuildMemberUpdate/index.html new file mode 100644 index 0000000..48bb240 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildMemberUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildMemberUpdate (disml.Disml__Event_models.GuildMemberUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildMemberUpdate</nav><h1>Module <code>Disml__Event_models.GuildMemberUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildMembersChunk/index.html b/docs/disml/Disml__Event_models/GuildMembersChunk/index.html new file mode 100644 index 0000000..c309f93 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildMembersChunk/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildMembersChunk (disml.Disml__Event_models.GuildMembersChunk)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildMembersChunk</nav><h1>Module <code>Disml__Event_models.GuildMembersChunk</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : (<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a><span class="keyword"> * </span><a href="../../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a>) list;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildRoleCreate/index.html b/docs/disml/Disml__Event_models/GuildRoleCreate/index.html new file mode 100644 index 0000000..5e56420 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildRoleCreate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildRoleCreate (disml.Disml__Event_models.GuildRoleCreate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildRoleCreate</nav><h1>Module <code>Disml__Event_models.GuildRoleCreate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.role" class="anchored"><td class="def field"><a href="#type-t.role" class="anchor"></a><code>role : <a href="../../Disml__/Role_t/index.html#type-role">Disml__.Role_t.role</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildRoleDelete/index.html b/docs/disml/Disml__Event_models/GuildRoleDelete/index.html new file mode 100644 index 0000000..4a721e5 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildRoleDelete/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildRoleDelete (disml.Disml__Event_models.GuildRoleDelete)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildRoleDelete</nav><h1>Module <code>Disml__Event_models.GuildRoleDelete</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.role_id" class="anchored"><td class="def field"><a href="#type-t.role_id" class="anchor"></a><code>role_id : <a href="../../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildRoleUpdate/index.html b/docs/disml/Disml__Event_models/GuildRoleUpdate/index.html new file mode 100644 index 0000000..ca12fec --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildRoleUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildRoleUpdate (disml.Disml__Event_models.GuildRoleUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildRoleUpdate</nav><h1>Module <code>Disml__Event_models.GuildRoleUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr><tr id="type-t.role" class="anchored"><td class="def field"><a href="#type-t.role" class="anchor"></a><code>role : <a href="../../Disml__/Role_t/index.html#type-role">Disml__.Role_t.role</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildUnavailable/index.html b/docs/disml/Disml__Event_models/GuildUnavailable/index.html new file mode 100644 index 0000000..ac65661 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildUnavailable/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildUnavailable (disml.Disml__Event_models.GuildUnavailable)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildUnavailable</nav><h1>Module <code>Disml__Event_models.GuildUnavailable</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/GuildUpdate/index.html b/docs/disml/Disml__Event_models/GuildUpdate/index.html new file mode 100644 index 0000000..27eb778 --- /dev/null +++ b/docs/disml/Disml__Event_models/GuildUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildUpdate (disml.Disml__Event_models.GuildUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » GuildUpdate</nav><h1>Module <code>Disml__Event_models.GuildUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild" class="anchored"><td class="def field"><a href="#type-t.guild" class="anchor"></a><code>guild : <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/MessageCreate/index.html b/docs/disml/Disml__Event_models/MessageCreate/index.html new file mode 100644 index 0000000..17aa42c --- /dev/null +++ b/docs/disml/Disml__Event_models/MessageCreate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>MessageCreate (disml.Disml__Event_models.MessageCreate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » MessageCreate</nav><h1>Module <code>Disml__Event_models.MessageCreate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.message" class="anchored"><td class="def field"><a href="#type-t.message" class="anchor"></a><code>message : <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/MessageDelete/index.html b/docs/disml/Disml__Event_models/MessageDelete/index.html new file mode 100644 index 0000000..8044d8d --- /dev/null +++ b/docs/disml/Disml__Event_models/MessageDelete/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>MessageDelete (disml.Disml__Event_models.MessageDelete)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » MessageDelete</nav><h1>Module <code>Disml__Event_models.MessageDelete</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/MessageDeleteBulk/index.html b/docs/disml/Disml__Event_models/MessageDeleteBulk/index.html new file mode 100644 index 0000000..35c02ba --- /dev/null +++ b/docs/disml/Disml__Event_models/MessageDeleteBulk/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>MessageDeleteBulk (disml.Disml__Event_models.MessageDeleteBulk)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » MessageDeleteBulk</nav><h1>Module <code>Disml__Event_models.MessageDeleteBulk</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.ids" class="anchored"><td class="def field"><a href="#type-t.ids" class="anchor"></a><code>ids : <a href="../../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a> list;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/MessageUpdate/index.html b/docs/disml/Disml__Event_models/MessageUpdate/index.html new file mode 100644 index 0000000..eb952ff --- /dev/null +++ b/docs/disml/Disml__Event_models/MessageUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>MessageUpdate (disml.Disml__Event_models.MessageUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » MessageUpdate</nav><h1>Module <code>Disml__Event_models.MessageUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> option;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../../Disml__/Member_t/index.html#type-partial_member">Disml__.Member_t.partial_member</a> option;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string option;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-t.editedimestamp" class="anchored"><td class="def field"><a href="#type-t.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool option;</code></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool option;</code></td></tr><tr id="type-t.mentions" class="anchored"><td class="def field"><a href="#type-t.mentions" class="anchor"></a><code>mentions : <a href="../../Disml__/User_id/index.html#type-t">Disml__.User_id.t</a> list;</code></td></tr><tr id="type-t.role_mentions" class="anchored"><td class="def field"><a href="#type-t.role_mentions" class="anchor"></a><code>role_mentions : <a href="../../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../../Disml__/Attachment/index.html#type-t">Disml__.Attachment.t</a> list;</code></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../../Disml__/Embed/index.html#type-t">Disml__.Embed.t</a> list;</code></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> list;</code></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool option;</code></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int option;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/PresenceUpdate/index.html b/docs/disml/Disml__Event_models/PresenceUpdate/index.html new file mode 100644 index 0000000..8165512 --- /dev/null +++ b/docs/disml/Disml__Event_models/PresenceUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>PresenceUpdate (disml.Disml__Event_models.PresenceUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » PresenceUpdate</nav><h1>Module <code>Disml__Event_models.PresenceUpdate</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../../Disml__/index.html#module-Presence">Disml__.Presence</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-partial_user">Disml__.User_t.partial_user</a>;</code></td><td class="doc"><p>A partial user that this presence belongs to.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>A list of roles that the user has.</p></td></tr><tr id="type-t.game" class="anchored"><td class="def field"><a href="#type-t.game" class="anchor"></a><code>game : <a href="../../Disml__/Activity/index.html#type-t">Disml__.Activity.t</a> option;</code></td><td class="doc"><p>The current activity of the user, if any.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which this presence exists.</p></td></tr><tr id="type-t.status" class="anchored"><td class="def field"><a href="#type-t.status" class="anchor"></a><code>status : string;</code></td><td class="doc"><p>One of <code>online</code>, <code>idle</code>, <code>offline</code>, or <code>dnd</code>.</p></td></tr><tr id="type-t.activities" class="anchored"><td class="def field"><a href="#type-t.activities" class="anchor"></a><code>activities : <a href="../../Disml__/Activity/index.html#type-t">Disml__.Activity.t</a> list;</code></td><td class="doc"><p>A list of all of the user's current activities.</p></td></tr></table><code>}</code></dt><dd><p>A user presence.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/ReactionAdd/index.html b/docs/disml/Disml__Event_models/ReactionAdd/index.html new file mode 100644 index 0000000..664659b --- /dev/null +++ b/docs/disml/Disml__Event_models/ReactionAdd/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ReactionAdd (disml.Disml__Event_models.ReactionAdd)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » ReactionAdd</nav><h1>Module <code>Disml__Event_models.ReactionAdd</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user_id" class="anchored"><td class="def field"><a href="#type-t.user_id" class="anchor"></a><code>user_id : <a href="../../Disml__/User_id/index.html#type-t">Disml__.User_id.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.message_id" class="anchored"><td class="def field"><a href="#type-t.message_id" class="anchor"></a><code>message_id : <a href="../../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../../Disml__/Emoji/index.html#type-partial_emoji">Disml__.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/ReactionRemove/index.html b/docs/disml/Disml__Event_models/ReactionRemove/index.html new file mode 100644 index 0000000..ef5d93c --- /dev/null +++ b/docs/disml/Disml__Event_models/ReactionRemove/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ReactionRemove (disml.Disml__Event_models.ReactionRemove)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » ReactionRemove</nav><h1>Module <code>Disml__Event_models.ReactionRemove</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user_id" class="anchored"><td class="def field"><a href="#type-t.user_id" class="anchor"></a><code>user_id : <a href="../../Disml__/User_id/index.html#type-t">Disml__.User_id.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.message_id" class="anchored"><td class="def field"><a href="#type-t.message_id" class="anchor"></a><code>message_id : <a href="../../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../../Disml__/Emoji/index.html#type-partial_emoji">Disml__.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/ReactionRemoveAll/index.html b/docs/disml/Disml__Event_models/ReactionRemoveAll/index.html new file mode 100644 index 0000000..b158f2f --- /dev/null +++ b/docs/disml/Disml__Event_models/ReactionRemoveAll/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ReactionRemoveAll (disml.Disml__Event_models.ReactionRemoveAll)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » ReactionRemoveAll</nav><h1>Module <code>Disml__Event_models.ReactionRemoveAll</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.message_id" class="anchored"><td class="def field"><a href="#type-t.message_id" class="anchor"></a><code>message_id : <a href="../../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/Ready/index.html b/docs/disml/Disml__Event_models/Ready/index.html new file mode 100644 index 0000000..419a995 --- /dev/null +++ b/docs/disml/Disml__Event_models/Ready/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Ready (disml.Disml__Event_models.Ready)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » Ready</nav><h1>Module <code>Disml__Event_models.Ready</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.version" class="anchored"><td class="def field"><a href="#type-t.version" class="anchor"></a><code>version : int;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr><tr id="type-t.private_channels" class="anchored"><td class="def field"><a href="#type-t.private_channels" class="anchor"></a><code>private_channels : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a> list;</code></td></tr><tr id="type-t.guilds" class="anchored"><td class="def field"><a href="#type-t.guilds" class="anchor"></a><code>guilds : <a href="../../Disml__/Guild_t/index.html#type-unavailable">Disml__.Guild_t.unavailable</a> list;</code></td></tr><tr id="type-t.session_id" class="anchored"><td class="def field"><a href="#type-t.session_id" class="anchor"></a><code>session_id : string;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/Resumed/index.html b/docs/disml/Disml__Event_models/Resumed/index.html new file mode 100644 index 0000000..4767950 --- /dev/null +++ b/docs/disml/Disml__Event_models/Resumed/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Resumed (disml.Disml__Event_models.Resumed)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » Resumed</nav><h1>Module <code>Disml__Event_models.Resumed</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.trace" class="anchored"><td class="def field"><a href="#type-t.trace" class="anchor"></a><code>trace : string option list;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/TypingStart/index.html b/docs/disml/Disml__Event_models/TypingStart/index.html new file mode 100644 index 0000000..1a3f679 --- /dev/null +++ b/docs/disml/Disml__Event_models/TypingStart/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>TypingStart (disml.Disml__Event_models.TypingStart)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » TypingStart</nav><h1>Module <code>Disml__Event_models.TypingStart</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a> option;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : int;</code></td></tr><tr id="type-t.user_id" class="anchored"><td class="def field"><a href="#type-t.user_id" class="anchor"></a><code>user_id : <a href="../../Disml__/User_id/index.html#type-t">Disml__.User_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/Unknown/index.html b/docs/disml/Disml__Event_models/Unknown/index.html new file mode 100644 index 0000000..6999732 --- /dev/null +++ b/docs/disml/Disml__Event_models/Unknown/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Unknown (disml.Disml__Event_models.Unknown)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » Unknown</nav><h1>Module <code>Disml__Event_models.Unknown</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : string;</code></td></tr><tr id="type-t.value" class="anchored"><td class="def field"><a href="#type-t.value" class="anchor"></a><code>value : Yojson.Safe.json;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : string <span>-></span> Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/UserUpdate/index.html b/docs/disml/Disml__Event_models/UserUpdate/index.html new file mode 100644 index 0000000..e141ea0 --- /dev/null +++ b/docs/disml/Disml__Event_models/UserUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>UserUpdate (disml.Disml__Event_models.UserUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » UserUpdate</nav><h1>Module <code>Disml__Event_models.UserUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/WebhookUpdate/index.html b/docs/disml/Disml__Event_models/WebhookUpdate/index.html new file mode 100644 index 0000000..2225d35 --- /dev/null +++ b/docs/disml/Disml__Event_models/WebhookUpdate/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>WebhookUpdate (disml.Disml__Event_models.WebhookUpdate)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Event_models</a> » WebhookUpdate</nav><h1>Module <code>Disml__Event_models.WebhookUpdate</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../../Disml__/Channel_id/index.html#type-t">Disml__.Channel_id.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../../Disml__/Guild_id/index.html#type-t">Disml__.Guild_id.t</a>;</code></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-deserialize"><a href="#val-deserialize" class="anchor"></a><code><span class="keyword">val </span>deserialize : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Event_models/index.html b/docs/disml/Disml__Event_models/index.html new file mode 100644 index 0000000..0e193f8 --- /dev/null +++ b/docs/disml/Disml__Event_models/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Event_models (disml.Disml__Event_models)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Event_models</nav><h1>Module <code>Disml__Event_models</code></h1></header><div class="spec module" id="module-ChannelCreate"><a href="#module-ChannelCreate" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelCreate/index.html">ChannelCreate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelDelete"><a href="#module-ChannelDelete" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelDelete/index.html">ChannelDelete</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelUpdate"><a href="#module-ChannelUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelUpdate/index.html">ChannelUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelPinsUpdate"><a href="#module-ChannelPinsUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelPinsUpdate/index.html">ChannelPinsUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelRecipientAdd"><a href="#module-ChannelRecipientAdd" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelRecipientAdd/index.html">ChannelRecipientAdd</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ChannelRecipientRemove"><a href="#module-ChannelRecipientRemove" class="anchor"></a><code><span class="keyword">module </span><a href="ChannelRecipientRemove/index.html">ChannelRecipientRemove</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildBanAdd"><a href="#module-GuildBanAdd" class="anchor"></a><code><span class="keyword">module </span><a href="GuildBanAdd/index.html">GuildBanAdd</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildBanRemove"><a href="#module-GuildBanRemove" class="anchor"></a><code><span class="keyword">module </span><a href="GuildBanRemove/index.html">GuildBanRemove</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildCreate"><a href="#module-GuildCreate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildCreate/index.html">GuildCreate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildDelete"><a href="#module-GuildDelete" class="anchor"></a><code><span class="keyword">module </span><a href="GuildDelete/index.html">GuildDelete</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildUpdate"><a href="#module-GuildUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildUpdate/index.html">GuildUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildEmojisUpdate"><a href="#module-GuildEmojisUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildEmojisUpdate/index.html">GuildEmojisUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildMemberAdd"><a href="#module-GuildMemberAdd" class="anchor"></a><code><span class="keyword">module </span><a href="GuildMemberAdd/index.html">GuildMemberAdd</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildMemberRemove"><a href="#module-GuildMemberRemove" class="anchor"></a><code><span class="keyword">module </span><a href="GuildMemberRemove/index.html">GuildMemberRemove</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildMemberUpdate"><a href="#module-GuildMemberUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildMemberUpdate/index.html">GuildMemberUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildMembersChunk"><a href="#module-GuildMembersChunk" class="anchor"></a><code><span class="keyword">module </span><a href="GuildMembersChunk/index.html">GuildMembersChunk</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildRoleCreate"><a href="#module-GuildRoleCreate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildRoleCreate/index.html">GuildRoleCreate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildRoleDelete"><a href="#module-GuildRoleDelete" class="anchor"></a><code><span class="keyword">module </span><a href="GuildRoleDelete/index.html">GuildRoleDelete</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildRoleUpdate"><a href="#module-GuildRoleUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="GuildRoleUpdate/index.html">GuildRoleUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-GuildUnavailable"><a href="#module-GuildUnavailable" class="anchor"></a><code><span class="keyword">module </span><a href="GuildUnavailable/index.html">GuildUnavailable</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-MessageCreate"><a href="#module-MessageCreate" class="anchor"></a><code><span class="keyword">module </span><a href="MessageCreate/index.html">MessageCreate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-MessageDelete"><a href="#module-MessageDelete" class="anchor"></a><code><span class="keyword">module </span><a href="MessageDelete/index.html">MessageDelete</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-MessageUpdate"><a href="#module-MessageUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="MessageUpdate/index.html">MessageUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-MessageDeleteBulk"><a href="#module-MessageDeleteBulk" class="anchor"></a><code><span class="keyword">module </span><a href="MessageDeleteBulk/index.html">MessageDeleteBulk</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-PresenceUpdate"><a href="#module-PresenceUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="PresenceUpdate/index.html">PresenceUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ReactionAdd"><a href="#module-ReactionAdd" class="anchor"></a><code><span class="keyword">module </span><a href="ReactionAdd/index.html">ReactionAdd</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ReactionRemove"><a href="#module-ReactionRemove" class="anchor"></a><code><span class="keyword">module </span><a href="ReactionRemove/index.html">ReactionRemove</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-ReactionRemoveAll"><a href="#module-ReactionRemoveAll" class="anchor"></a><code><span class="keyword">module </span><a href="ReactionRemoveAll/index.html">ReactionRemoveAll</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Ready"><a href="#module-Ready" class="anchor"></a><code><span class="keyword">module </span><a href="Ready/index.html">Ready</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Resumed"><a href="#module-Resumed" class="anchor"></a><code><span class="keyword">module </span><a href="Resumed/index.html">Resumed</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-TypingStart"><a href="#module-TypingStart" class="anchor"></a><code><span class="keyword">module </span><a href="TypingStart/index.html">TypingStart</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-UserUpdate"><a href="#module-UserUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="UserUpdate/index.html">UserUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-WebhookUpdate"><a href="#module-WebhookUpdate" class="anchor"></a><code><span class="keyword">module </span><a href="WebhookUpdate/index.html">WebhookUpdate</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module" id="module-Unknown"><a href="#module-Unknown" class="anchor"></a><code><span class="keyword">module </span><a href="Unknown/index.html">Unknown</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Guild/index.html b/docs/disml/Disml__Guild/index.html index ec49cd2..5df211f 100644 --- a/docs/disml/Disml__Guild/index.html +++ b/docs/disml/Disml__Guild/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Guild (disml.Disml__Guild)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Guild</nav><h1>Module <code>Disml__Guild</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-Guild_t">Disml.Guild_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-pre"><a href="#type-pre" class="anchor"></a><code><span class="keyword">type </span>pre</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-pre.id" class="anchored"><td class="def field"><a href="#type-pre.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-pre.name" class="anchored"><td class="def field"><a href="#type-pre.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-pre.icon" class="anchored"><td class="def field"><a href="#type-pre.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-pre.splash" class="anchored"><td class="def field"><a href="#type-pre.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-pre.owner_id" class="anchored"><td class="def field"><a href="#type-pre.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-pre.region" class="anchored"><td class="def field"><a href="#type-pre.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-pre.afk_channel_id" class="anchored"><td class="def field"><a href="#type-pre.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.afk_timeout" class="anchored"><td class="def field"><a href="#type-pre.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-pre.embed_enabled" class="anchored"><td class="def field"><a href="#type-pre.embed_enabled" class="anchor"></a><code>embed_enabled : bool option;</code></td></tr><tr id="type-pre.embed_channel_id" class="anchored"><td class="def field"><a href="#type-pre.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.verification_level" class="anchored"><td class="def field"><a href="#type-pre.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-pre.default_message_notifications" class="anchored"><td class="def field"><a href="#type-pre.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-pre.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-pre.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-pre.roles" class="anchored"><td class="def field"><a href="#type-pre.roles" class="anchor"></a><code>roles : <a href="../Disml/Role_t/index.html#type-role">Disml.Role_t.role</a> list;</code></td></tr><tr id="type-pre.emojis" class="anchored"><td class="def field"><a href="#type-pre.emojis" class="anchor"></a><code>emojis : <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a> list;</code></td></tr><tr id="type-pre.features" class="anchored"><td class="def field"><a href="#type-pre.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-pre.mfa_level" class="anchored"><td class="def field"><a href="#type-pre.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-pre.application_id" class="anchored"><td class="def field"><a href="#type-pre.application_id" class="anchor"></a><code>application_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.widget_enabled" class="anchored"><td class="def field"><a href="#type-pre.widget_enabled" class="anchor"></a><code>widget_enabled : bool option;</code></td></tr><tr id="type-pre.widget_channel" class="anchored"><td class="def field"><a href="#type-pre.widget_channel" class="anchor"></a><code>widget_channel : <a href="../Disml/Channel_t/index.html#type-channel_wrapper">Disml.Channel_t.channel_wrapper</a> option;</code></td></tr><tr id="type-pre.system_channel" class="anchored"><td class="def field"><a href="#type-pre.system_channel" class="anchor"></a><code>system_channel : <a href="../Disml/Channel_t/index.html#type-channel_wrapper">Disml.Channel_t.channel_wrapper</a> option;</code></td></tr><tr id="type-pre.large" class="anchored"><td class="def field"><a href="#type-pre.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-pre.unavailable" class="anchored"><td class="def field"><a href="#type-pre.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-pre.member_count" class="anchored"><td class="def field"><a href="#type-pre.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-pre.members" class="anchored"><td class="def field"><a href="#type-pre.members" class="anchor"></a><code>members : <a href="../Disml/Member_t/index.html#type-member">Disml.Member_t.member</a> list;</code></td></tr><tr id="type-pre.channels" class="anchored"><td class="def field"><a href="#type-pre.channels" class="anchor"></a><code>channels : <a href="../Disml/Channel_t/index.html#type-channel_wrapper">Disml.Channel_t.channel_wrapper</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-pre_of_sexp"><a href="#val-pre_of_sexp" class="anchor"></a><code><span class="keyword">val </span>pre_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-pre">pre</a></code></dt><dt class="spec value" id="val-sexp_of_pre"><a href="#val-sexp_of_pre" class="anchor"></a><code><span class="keyword">val </span>sexp_of_pre : <a href="index.html#type-pre">pre</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-pre_to_yojson"><a href="#val-pre_to_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_to_yojson : <a href="index.html#type-pre">pre</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-pre_of_yojson"><a href="#val-pre_of_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-pre_of_yojson_exn"><a href="#val-pre_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.icon" class="anchored"><td class="def field"><a href="#type-t.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-t.splash" class="anchored"><td class="def field"><a href="#type-t.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-t.owner_id" class="anchored"><td class="def field"><a href="#type-t.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.region" class="anchored"><td class="def field"><a href="#type-t.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-t.afk_channel_id" class="anchored"><td class="def field"><a href="#type-t.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.afk_timeout" class="anchored"><td class="def field"><a href="#type-t.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-t.embed_enabled" class="anchored"><td class="def field"><a href="#type-t.embed_enabled" class="anchor"></a><code>embed_enabled : bool option;</code></td></tr><tr id="type-t.embed_channel_id" class="anchored"><td class="def field"><a href="#type-t.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.verification_level" class="anchored"><td class="def field"><a href="#type-t.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-t.default_message_notifications" class="anchored"><td class="def field"><a href="#type-t.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-t.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-t.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> list;</code></td></tr><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a> list;</code></td></tr><tr id="type-t.features" class="anchored"><td class="def field"><a href="#type-t.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-t.mfa_level" class="anchored"><td class="def field"><a href="#type-t.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-t.application_id" class="anchored"><td class="def field"><a href="#type-t.application_id" class="anchor"></a><code>application_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.widget_enabled" class="anchored"><td class="def field"><a href="#type-t.widget_enabled" class="anchor"></a><code>widget_enabled : bool option;</code></td></tr><tr id="type-t.widget_channel" class="anchored"><td class="def field"><a href="#type-t.widget_channel" class="anchor"></a><code>widget_channel : <a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> option;</code></td></tr><tr id="type-t.system_channel" class="anchored"><td class="def field"><a href="#type-t.system_channel" class="anchor"></a><code>system_channel : <a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> option;</code></td></tr><tr id="type-t.large" class="anchored"><td class="def field"><a href="#type-t.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-t.unavailable" class="anchored"><td class="def field"><a href="#type-t.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-t.member_count" class="anchored"><td class="def field"><a href="#type-t.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> list;</code></td></tr><tr id="type-t.channels" class="anchored"><td class="def field"><a href="#type-t.channels" class="anchor"></a><code>channels : <a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-pre">pre</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Ban_t/index.html#type-t">Disml.Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Ban_t/index.html#type-t">Disml.Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel"><a href="#val-get_channel" class="anchor"></a><code><span class="keyword">val </span>get_channel : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_member"><a href="#val-get_member" class="anchor"></a><code><span class="keyword">val </span>get_member : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_role"><a href="#val-get_role" class="anchor"></a><code><span class="keyword">val </span>get_role : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> option</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Guild (disml.Disml__Guild)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Guild</nav><h1>Module <code>Disml__Guild</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Guild_t">Disml__.Guild_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-unavailable"><a href="#type-unavailable" class="anchor"></a><code><span class="keyword">type </span>unavailable</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-unavailable.id" class="anchored"><td class="def field"><a href="#type-unavailable.id" class="anchor"></a><code>id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-unavailable_of_sexp"><a href="#val-unavailable_of_sexp" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-unavailable">unavailable</a></code></dt><dt class="spec value" id="val-sexp_of_unavailable"><a href="#val-sexp_of_unavailable" class="anchor"></a><code><span class="keyword">val </span>sexp_of_unavailable : <a href="index.html#type-unavailable">unavailable</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-unavailable_to_yojson"><a href="#val-unavailable_to_yojson" class="anchor"></a><code><span class="keyword">val </span>unavailable_to_yojson : <a href="index.html#type-unavailable">unavailable</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-unavailable_of_yojson"><a href="#val-unavailable_of_yojson" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-unavailable">unavailable</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-unavailable_of_yojson_exn"><a href="#val-unavailable_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-unavailable">unavailable</a></code></dt></dl><dl><dt class="spec type" id="type-pre"><a href="#type-pre" class="anchor"></a><code><span class="keyword">type </span>pre</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-pre.id" class="anchored"><td class="def field"><a href="#type-pre.id" class="anchor"></a><code>id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-pre.name" class="anchored"><td class="def field"><a href="#type-pre.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-pre.icon" class="anchored"><td class="def field"><a href="#type-pre.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-pre.splash" class="anchored"><td class="def field"><a href="#type-pre.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-pre.owner_id" class="anchored"><td class="def field"><a href="#type-pre.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-pre.region" class="anchored"><td class="def field"><a href="#type-pre.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-pre.afk_channel_id" class="anchored"><td class="def field"><a href="#type-pre.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.afk_timeout" class="anchored"><td class="def field"><a href="#type-pre.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-pre.embed_enabled" class="anchored"><td class="def field"><a href="#type-pre.embed_enabled" class="anchor"></a><code>embed_enabled : bool;</code></td></tr><tr id="type-pre.embed_channel_id" class="anchored"><td class="def field"><a href="#type-pre.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.verification_level" class="anchored"><td class="def field"><a href="#type-pre.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-pre.default_message_notifications" class="anchored"><td class="def field"><a href="#type-pre.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-pre.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-pre.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-pre.roles" class="anchored"><td class="def field"><a href="#type-pre.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_t/index.html#type-role">Disml__.Role_t.role</a> list;</code></td></tr><tr id="type-pre.emojis" class="anchored"><td class="def field"><a href="#type-pre.emojis" class="anchor"></a><code>emojis : <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td></tr><tr id="type-pre.features" class="anchored"><td class="def field"><a href="#type-pre.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-pre.mfa_level" class="anchored"><td class="def field"><a href="#type-pre.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-pre.application_id" class="anchored"><td class="def field"><a href="#type-pre.application_id" class="anchor"></a><code>application_id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.widget_enabled" class="anchored"><td class="def field"><a href="#type-pre.widget_enabled" class="anchor"></a><code>widget_enabled : bool;</code></td></tr><tr id="type-pre.widget_channel_id" class="anchored"><td class="def field"><a href="#type-pre.widget_channel_id" class="anchor"></a><code>widget_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.system_channel_id" class="anchored"><td class="def field"><a href="#type-pre.system_channel_id" class="anchor"></a><code>system_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.large" class="anchored"><td class="def field"><a href="#type-pre.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-pre.unavailable" class="anchored"><td class="def field"><a href="#type-pre.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-pre.member_count" class="anchored"><td class="def field"><a href="#type-pre.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-pre.members" class="anchored"><td class="def field"><a href="#type-pre.members" class="anchor"></a><code>members : <a href="../Disml__/Member_t/index.html#type-member">Disml__.Member_t.member</a> list;</code></td></tr><tr id="type-pre.channels" class="anchored"><td class="def field"><a href="#type-pre.channels" class="anchor"></a><code>channels : <a href="../Disml__/Channel_t/index.html#type-channel_wrapper">Disml__.Channel_t.channel_wrapper</a> list;</code></td></tr></table><code>}</code></dt><dd><p>Used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-pre_of_sexp"><a href="#val-pre_of_sexp" class="anchor"></a><code><span class="keyword">val </span>pre_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-pre">pre</a></code></dt><dt class="spec value" id="val-sexp_of_pre"><a href="#val-sexp_of_pre" class="anchor"></a><code><span class="keyword">val </span>sexp_of_pre : <a href="index.html#type-pre">pre</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-pre_to_yojson"><a href="#val-pre_to_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_to_yojson : <a href="index.html#type-pre">pre</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-pre_of_yojson"><a href="#val-pre_of_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-pre_of_yojson_exn"><a href="#val-pre_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild's snowflake ID.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The guild name.</p></td></tr><tr id="type-t.icon" class="anchored"><td class="def field"><a href="#type-t.icon" class="anchor"></a><code>icon : string option;</code></td><td class="doc"><p>The guild icon hash, if one is set.</p></td></tr><tr id="type-t.splash" class="anchored"><td class="def field"><a href="#type-t.splash" class="anchor"></a><code>splash : string option;</code></td><td class="doc"><p>The guild splash hash, if one is set.</p></td></tr><tr id="type-t.owner_id" class="anchored"><td class="def field"><a href="#type-t.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td><td class="doc"><p>The user ID of the owner.</p></td></tr><tr id="type-t.region" class="anchored"><td class="def field"><a href="#type-t.region" class="anchor"></a><code>region : string;</code></td><td class="doc"><p>The region the guild is in.</p></td></tr><tr id="type-t.afk_channel_id" class="anchored"><td class="def field"><a href="#type-t.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The AFK channel ID, if one is set.</p></td></tr><tr id="type-t.afk_timeout" class="anchored"><td class="def field"><a href="#type-t.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td><td class="doc"><p>The time before a user is moved to the AFK channel.</p></td></tr><tr id="type-t.embed_enabled" class="anchored"><td class="def field"><a href="#type-t.embed_enabled" class="anchor"></a><code>embed_enabled : bool;</code></td><td class="doc"><p>Whether the embed is enabled.</p></td></tr><tr id="type-t.embed_channel_id" class="anchored"><td class="def field"><a href="#type-t.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID of the embed channel, if it is enabled.</p></td></tr><tr id="type-t.verification_level" class="anchored"><td class="def field"><a href="#type-t.verification_level" class="anchor"></a><code>verification_level : int;</code></td><td class="doc"><p>See <a href="https://discordapp.com/developers/docs/resources/guild#guild-object-verification-level">the discord docs</a> for details.</p></td></tr><tr id="type-t.default_message_notifications" class="anchored"><td class="def field"><a href="#type-t.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td><td class="doc"><p>0 = All messages, 1 = Only mentions</p></td></tr><tr id="type-t.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-t.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td><td class="doc"><p>0 = Disabled, 1 = For members with no roles, 2 = All members</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> list;</code></td><td class="doc"><p>List of roles in the guild.</p></td></tr><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td><td class="doc"><p>List of custom emojis in the guild.</p></td></tr><tr id="type-t.features" class="anchored"><td class="def field"><a href="#type-t.features" class="anchor"></a><code>features : string list;</code></td><td class="doc"><p>A List of features enabled for the guild.</p></td></tr><tr id="type-t.mfa_level" class="anchored"><td class="def field"><a href="#type-t.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td><td class="doc"><p>0 = None, 1 = Elevated</p></td></tr><tr id="type-t.application_id" class="anchored"><td class="def field"><a href="#type-t.application_id" class="anchor"></a><code>application_id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Snowflake ID if the guild is bot-created.</p></td></tr><tr id="type-t.widget_enabled" class="anchored"><td class="def field"><a href="#type-t.widget_enabled" class="anchor"></a><code>widget_enabled : bool;</code></td><td class="doc"><p>Whether the widget is enabled.</p></td></tr><tr id="type-t.widget_channel_id" class="anchored"><td class="def field"><a href="#type-t.widget_channel_id" class="anchor"></a><code>widget_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID for the widget, if enabled.</p></td></tr><tr id="type-t.system_channel_id" class="anchored"><td class="def field"><a href="#type-t.system_channel_id" class="anchor"></a><code>system_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID where system messages are sent.</p></td></tr><tr id="type-t.large" class="anchored"><td class="def field"><a href="#type-t.large" class="anchor"></a><code>large : bool;</code></td><td class="doc"><p>Whether the guild exceeds the configured large threshold.</p></td></tr><tr id="type-t.unavailable" class="anchored"><td class="def field"><a href="#type-t.unavailable" class="anchor"></a><code>unavailable : bool;</code></td><td class="doc"><p>Whether the guild is unavailable or not.</p></td></tr><tr id="type-t.member_count" class="anchored"><td class="def field"><a href="#type-t.member_count" class="anchor"></a><code>member_count : int option;</code></td><td class="doc"><p>Total number of members in the guild.</p></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> list;</code></td><td class="doc"><p>List of guild members.</p></td></tr><tr id="type-t.channels" class="anchored"><td class="def field"><a href="#type-t.channels" class="anchor"></a><code>channels : <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> list;</code></td><td class="doc"><p>List of guild channels.</p></td></tr></table><code>}</code></dt><dd><p>A Guild object</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-pre">pre</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../Disml__/S/index.html#module-type-GuildImpl">Disml__.S.GuildImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../Disml__/S/module-type-GuildImpl/index.html#type-t">t</a> := <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Ban_t/index.html#type-t">Disml__.Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Ban_t/index.html#type-t">Disml__.Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-get_channel"><a href="#val-get_channel" class="anchor"></a><code><span class="keyword">val </span>get_channel : id:<a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Get a channel belonging to this guild. This does not make an HTTP request.</p></dd></dl><dl><dt class="spec value" id="val-get_member"><a href="#val-get_member" class="anchor"></a><code><span class="keyword">val </span>get_member : id:<a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Get a member belonging to this guild. This does not make an HTTP request.</p></dd></dl><dl><dt class="spec value" id="val-get_role"><a href="#val-get_role" class="anchor"></a><code><span class="keyword">val </span>get_role : id:<a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> option</code></dt><dd><p>Get a role belonging to this guild. This does not make an HTTP request.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Guild_id/.dune-keep b/docs/disml/Disml__Guild_id/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__Guild_id/.dune-keep diff --git a/docs/disml/Disml__Guild_id/index.html b/docs/disml/Disml__Guild_id/index.html new file mode 100644 index 0000000..55f0644 --- /dev/null +++ b/docs/disml/Disml__Guild_id/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Guild_id (disml.Disml__Guild_id)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Guild_id</nav><h1>Module <code>Disml__Guild_id</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Guild_id_t">Disml__.Guild_id_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Guild_id" class="anchored"><td class="def constructor"><a href="#type-t.Guild_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Guild_id<span class="keyword"> of </span><a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../Disml__/S/index.html#module-type-GuildImpl">Disml__.S.GuildImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../Disml__/S/module-type-GuildImpl/index.html#type-t">t</a> := <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Ban_t/index.html#type-t">Disml__.Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Ban_t/index.html#type-t">Disml__.Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Guild_id_t/.dune-keep b/docs/disml/Disml__Guild_id_t/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__Guild_id_t/.dune-keep diff --git a/docs/disml/Disml__Guild_id_t/index.html b/docs/disml/Disml__Guild_id_t/index.html new file mode 100644 index 0000000..f7c3f70 --- /dev/null +++ b/docs/disml/Disml__Guild_id_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Guild_id_t (disml.Disml__Guild_id_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Guild_id_t</nav><h1>Module <code>Disml__Guild_id_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Guild_id" class="anchored"><td class="def constructor"><a href="#type-t.Guild_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Guild_id<span class="keyword"> of </span><a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Guild_t/index.html b/docs/disml/Disml__Guild_t/index.html index cafc0f3..9e740aa 100644 --- a/docs/disml/Disml__Guild_t/index.html +++ b/docs/disml/Disml__Guild_t/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Guild_t (disml.Disml__Guild_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Guild_t</nav><h1>Module <code>Disml__Guild_t</code></h1></header><dl><dt class="spec type" id="type-pre"><a href="#type-pre" class="anchor"></a><code><span class="keyword">type </span>pre</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-pre.id" class="anchored"><td class="def field"><a href="#type-pre.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-pre.name" class="anchored"><td class="def field"><a href="#type-pre.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-pre.icon" class="anchored"><td class="def field"><a href="#type-pre.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-pre.splash" class="anchored"><td class="def field"><a href="#type-pre.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-pre.owner_id" class="anchored"><td class="def field"><a href="#type-pre.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-pre.region" class="anchored"><td class="def field"><a href="#type-pre.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-pre.afk_channel_id" class="anchored"><td class="def field"><a href="#type-pre.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.afk_timeout" class="anchored"><td class="def field"><a href="#type-pre.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-pre.embed_enabled" class="anchored"><td class="def field"><a href="#type-pre.embed_enabled" class="anchor"></a><code>embed_enabled : bool option;</code></td></tr><tr id="type-pre.embed_channel_id" class="anchored"><td class="def field"><a href="#type-pre.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.verification_level" class="anchored"><td class="def field"><a href="#type-pre.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-pre.default_message_notifications" class="anchored"><td class="def field"><a href="#type-pre.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-pre.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-pre.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-pre.roles" class="anchored"><td class="def field"><a href="#type-pre.roles" class="anchor"></a><code>roles : <a href="../Disml/Role_t/index.html#type-role">Disml.Role_t.role</a> list;</code></td></tr><tr id="type-pre.emojis" class="anchored"><td class="def field"><a href="#type-pre.emojis" class="anchor"></a><code>emojis : <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a> list;</code></td></tr><tr id="type-pre.features" class="anchored"><td class="def field"><a href="#type-pre.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-pre.mfa_level" class="anchored"><td class="def field"><a href="#type-pre.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-pre.application_id" class="anchored"><td class="def field"><a href="#type-pre.application_id" class="anchor"></a><code>application_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.widget_enabled" class="anchored"><td class="def field"><a href="#type-pre.widget_enabled" class="anchor"></a><code>widget_enabled : bool option;</code></td></tr><tr id="type-pre.widget_channel" class="anchored"><td class="def field"><a href="#type-pre.widget_channel" class="anchor"></a><code>widget_channel : <a href="../Disml/Channel_t/index.html#type-channel_wrapper">Disml.Channel_t.channel_wrapper</a> option;</code></td></tr><tr id="type-pre.system_channel" class="anchored"><td class="def field"><a href="#type-pre.system_channel" class="anchor"></a><code>system_channel : <a href="../Disml/Channel_t/index.html#type-channel_wrapper">Disml.Channel_t.channel_wrapper</a> option;</code></td></tr><tr id="type-pre.large" class="anchored"><td class="def field"><a href="#type-pre.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-pre.unavailable" class="anchored"><td class="def field"><a href="#type-pre.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-pre.member_count" class="anchored"><td class="def field"><a href="#type-pre.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-pre.members" class="anchored"><td class="def field"><a href="#type-pre.members" class="anchor"></a><code>members : <a href="../Disml/Member_t/index.html#type-member">Disml.Member_t.member</a> list;</code></td></tr><tr id="type-pre.channels" class="anchored"><td class="def field"><a href="#type-pre.channels" class="anchor"></a><code>channels : <a href="../Disml/Channel_t/index.html#type-channel_wrapper">Disml.Channel_t.channel_wrapper</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-pre_of_sexp"><a href="#val-pre_of_sexp" class="anchor"></a><code><span class="keyword">val </span>pre_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-pre">pre</a></code></dt><dt class="spec value" id="val-sexp_of_pre"><a href="#val-sexp_of_pre" class="anchor"></a><code><span class="keyword">val </span>sexp_of_pre : <a href="index.html#type-pre">pre</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-pre_to_yojson"><a href="#val-pre_to_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_to_yojson : <a href="index.html#type-pre">pre</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-pre_of_yojson"><a href="#val-pre_of_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-pre_of_yojson_exn"><a href="#val-pre_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.icon" class="anchored"><td class="def field"><a href="#type-t.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-t.splash" class="anchored"><td class="def field"><a href="#type-t.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-t.owner_id" class="anchored"><td class="def field"><a href="#type-t.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.region" class="anchored"><td class="def field"><a href="#type-t.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-t.afk_channel_id" class="anchored"><td class="def field"><a href="#type-t.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.afk_timeout" class="anchored"><td class="def field"><a href="#type-t.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-t.embed_enabled" class="anchored"><td class="def field"><a href="#type-t.embed_enabled" class="anchor"></a><code>embed_enabled : bool option;</code></td></tr><tr id="type-t.embed_channel_id" class="anchored"><td class="def field"><a href="#type-t.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.verification_level" class="anchored"><td class="def field"><a href="#type-t.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-t.default_message_notifications" class="anchored"><td class="def field"><a href="#type-t.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-t.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-t.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> list;</code></td></tr><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a> list;</code></td></tr><tr id="type-t.features" class="anchored"><td class="def field"><a href="#type-t.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-t.mfa_level" class="anchored"><td class="def field"><a href="#type-t.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-t.application_id" class="anchored"><td class="def field"><a href="#type-t.application_id" class="anchor"></a><code>application_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.widget_enabled" class="anchored"><td class="def field"><a href="#type-t.widget_enabled" class="anchor"></a><code>widget_enabled : bool option;</code></td></tr><tr id="type-t.widget_channel" class="anchored"><td class="def field"><a href="#type-t.widget_channel" class="anchor"></a><code>widget_channel : <a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> option;</code></td></tr><tr id="type-t.system_channel" class="anchored"><td class="def field"><a href="#type-t.system_channel" class="anchor"></a><code>system_channel : <a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> option;</code></td></tr><tr id="type-t.large" class="anchored"><td class="def field"><a href="#type-t.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-t.unavailable" class="anchored"><td class="def field"><a href="#type-t.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-t.member_count" class="anchored"><td class="def field"><a href="#type-t.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> list;</code></td></tr><tr id="type-t.channels" class="anchored"><td class="def field"><a href="#type-t.channels" class="anchor"></a><code>channels : <a href="../Disml/Channel_t/index.html#type-t">Disml.Channel_t.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-pre">pre</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Guild_t (disml.Disml__Guild_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Guild_t</nav><h1>Module <code>Disml__Guild_t</code></h1></header><dl><dt class="spec type" id="type-unavailable"><a href="#type-unavailable" class="anchor"></a><code><span class="keyword">type </span>unavailable</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-unavailable.id" class="anchored"><td class="def field"><a href="#type-unavailable.id" class="anchor"></a><code>id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-unavailable_of_sexp"><a href="#val-unavailable_of_sexp" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-unavailable">unavailable</a></code></dt><dt class="spec value" id="val-sexp_of_unavailable"><a href="#val-sexp_of_unavailable" class="anchor"></a><code><span class="keyword">val </span>sexp_of_unavailable : <a href="index.html#type-unavailable">unavailable</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-unavailable_to_yojson"><a href="#val-unavailable_to_yojson" class="anchor"></a><code><span class="keyword">val </span>unavailable_to_yojson : <a href="index.html#type-unavailable">unavailable</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-unavailable_of_yojson"><a href="#val-unavailable_of_yojson" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-unavailable">unavailable</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-unavailable_of_yojson_exn"><a href="#val-unavailable_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>unavailable_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-unavailable">unavailable</a></code></dt></dl><dl><dt class="spec type" id="type-pre"><a href="#type-pre" class="anchor"></a><code><span class="keyword">type </span>pre</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-pre.id" class="anchored"><td class="def field"><a href="#type-pre.id" class="anchor"></a><code>id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-pre.name" class="anchored"><td class="def field"><a href="#type-pre.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-pre.icon" class="anchored"><td class="def field"><a href="#type-pre.icon" class="anchor"></a><code>icon : string option;</code></td></tr><tr id="type-pre.splash" class="anchored"><td class="def field"><a href="#type-pre.splash" class="anchor"></a><code>splash : string option;</code></td></tr><tr id="type-pre.owner_id" class="anchored"><td class="def field"><a href="#type-pre.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-pre.region" class="anchored"><td class="def field"><a href="#type-pre.region" class="anchor"></a><code>region : string;</code></td></tr><tr id="type-pre.afk_channel_id" class="anchored"><td class="def field"><a href="#type-pre.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.afk_timeout" class="anchored"><td class="def field"><a href="#type-pre.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td></tr><tr id="type-pre.embed_enabled" class="anchored"><td class="def field"><a href="#type-pre.embed_enabled" class="anchor"></a><code>embed_enabled : bool;</code></td></tr><tr id="type-pre.embed_channel_id" class="anchored"><td class="def field"><a href="#type-pre.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.verification_level" class="anchored"><td class="def field"><a href="#type-pre.verification_level" class="anchor"></a><code>verification_level : int;</code></td></tr><tr id="type-pre.default_message_notifications" class="anchored"><td class="def field"><a href="#type-pre.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td></tr><tr id="type-pre.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-pre.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td></tr><tr id="type-pre.roles" class="anchored"><td class="def field"><a href="#type-pre.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_t/index.html#type-role">Disml__.Role_t.role</a> list;</code></td></tr><tr id="type-pre.emojis" class="anchored"><td class="def field"><a href="#type-pre.emojis" class="anchor"></a><code>emojis : <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td></tr><tr id="type-pre.features" class="anchored"><td class="def field"><a href="#type-pre.features" class="anchor"></a><code>features : string list;</code></td></tr><tr id="type-pre.mfa_level" class="anchored"><td class="def field"><a href="#type-pre.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td></tr><tr id="type-pre.application_id" class="anchored"><td class="def field"><a href="#type-pre.application_id" class="anchor"></a><code>application_id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td></tr><tr id="type-pre.widget_enabled" class="anchored"><td class="def field"><a href="#type-pre.widget_enabled" class="anchor"></a><code>widget_enabled : bool;</code></td></tr><tr id="type-pre.widget_channel_id" class="anchored"><td class="def field"><a href="#type-pre.widget_channel_id" class="anchor"></a><code>widget_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.system_channel_id" class="anchored"><td class="def field"><a href="#type-pre.system_channel_id" class="anchor"></a><code>system_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td></tr><tr id="type-pre.large" class="anchored"><td class="def field"><a href="#type-pre.large" class="anchor"></a><code>large : bool;</code></td></tr><tr id="type-pre.unavailable" class="anchored"><td class="def field"><a href="#type-pre.unavailable" class="anchor"></a><code>unavailable : bool;</code></td></tr><tr id="type-pre.member_count" class="anchored"><td class="def field"><a href="#type-pre.member_count" class="anchor"></a><code>member_count : int option;</code></td></tr><tr id="type-pre.members" class="anchored"><td class="def field"><a href="#type-pre.members" class="anchor"></a><code>members : <a href="../Disml__/Member_t/index.html#type-member">Disml__.Member_t.member</a> list;</code></td></tr><tr id="type-pre.channels" class="anchored"><td class="def field"><a href="#type-pre.channels" class="anchor"></a><code>channels : <a href="../Disml__/Channel_t/index.html#type-channel_wrapper">Disml__.Channel_t.channel_wrapper</a> list;</code></td></tr></table><code>}</code></dt><dd><p>Used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-pre_of_sexp"><a href="#val-pre_of_sexp" class="anchor"></a><code><span class="keyword">val </span>pre_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-pre">pre</a></code></dt><dt class="spec value" id="val-sexp_of_pre"><a href="#val-sexp_of_pre" class="anchor"></a><code><span class="keyword">val </span>sexp_of_pre : <a href="index.html#type-pre">pre</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-pre_to_yojson"><a href="#val-pre_to_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_to_yojson : <a href="index.html#type-pre">pre</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-pre_of_yojson"><a href="#val-pre_of_yojson" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-pre_of_yojson_exn"><a href="#val-pre_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>pre_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-pre">pre</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild's snowflake ID.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The guild name.</p></td></tr><tr id="type-t.icon" class="anchored"><td class="def field"><a href="#type-t.icon" class="anchor"></a><code>icon : string option;</code></td><td class="doc"><p>The guild icon hash, if one is set.</p></td></tr><tr id="type-t.splash" class="anchored"><td class="def field"><a href="#type-t.splash" class="anchor"></a><code>splash : string option;</code></td><td class="doc"><p>The guild splash hash, if one is set.</p></td></tr><tr id="type-t.owner_id" class="anchored"><td class="def field"><a href="#type-t.owner_id" class="anchor"></a><code>owner_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td><td class="doc"><p>The user ID of the owner.</p></td></tr><tr id="type-t.region" class="anchored"><td class="def field"><a href="#type-t.region" class="anchor"></a><code>region : string;</code></td><td class="doc"><p>The region the guild is in.</p></td></tr><tr id="type-t.afk_channel_id" class="anchored"><td class="def field"><a href="#type-t.afk_channel_id" class="anchor"></a><code>afk_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The AFK channel ID, if one is set.</p></td></tr><tr id="type-t.afk_timeout" class="anchored"><td class="def field"><a href="#type-t.afk_timeout" class="anchor"></a><code>afk_timeout : int;</code></td><td class="doc"><p>The time before a user is moved to the AFK channel.</p></td></tr><tr id="type-t.embed_enabled" class="anchored"><td class="def field"><a href="#type-t.embed_enabled" class="anchor"></a><code>embed_enabled : bool;</code></td><td class="doc"><p>Whether the embed is enabled.</p></td></tr><tr id="type-t.embed_channel_id" class="anchored"><td class="def field"><a href="#type-t.embed_channel_id" class="anchor"></a><code>embed_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID of the embed channel, if it is enabled.</p></td></tr><tr id="type-t.verification_level" class="anchored"><td class="def field"><a href="#type-t.verification_level" class="anchor"></a><code>verification_level : int;</code></td><td class="doc"><p>See <a href="https://discordapp.com/developers/docs/resources/guild#guild-object-verification-level">the discord docs</a> for details.</p></td></tr><tr id="type-t.default_message_notifications" class="anchored"><td class="def field"><a href="#type-t.default_message_notifications" class="anchor"></a><code>default_message_notifications : int;</code></td><td class="doc"><p>0 = All messages, 1 = Only mentions</p></td></tr><tr id="type-t.explicit_content_filter" class="anchored"><td class="def field"><a href="#type-t.explicit_content_filter" class="anchor"></a><code>explicit_content_filter : int;</code></td><td class="doc"><p>0 = Disabled, 1 = For members with no roles, 2 = All members</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> list;</code></td><td class="doc"><p>List of roles in the guild.</p></td></tr><tr id="type-t.emojis" class="anchored"><td class="def field"><a href="#type-t.emojis" class="anchor"></a><code>emojis : <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> list;</code></td><td class="doc"><p>List of custom emojis in the guild.</p></td></tr><tr id="type-t.features" class="anchored"><td class="def field"><a href="#type-t.features" class="anchor"></a><code>features : string list;</code></td><td class="doc"><p>A List of features enabled for the guild.</p></td></tr><tr id="type-t.mfa_level" class="anchored"><td class="def field"><a href="#type-t.mfa_level" class="anchor"></a><code>mfa_level : int;</code></td><td class="doc"><p>0 = None, 1 = Elevated</p></td></tr><tr id="type-t.application_id" class="anchored"><td class="def field"><a href="#type-t.application_id" class="anchor"></a><code>application_id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Snowflake ID if the guild is bot-created.</p></td></tr><tr id="type-t.widget_enabled" class="anchored"><td class="def field"><a href="#type-t.widget_enabled" class="anchor"></a><code>widget_enabled : bool;</code></td><td class="doc"><p>Whether the widget is enabled.</p></td></tr><tr id="type-t.widget_channel_id" class="anchored"><td class="def field"><a href="#type-t.widget_channel_id" class="anchor"></a><code>widget_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID for the widget, if enabled.</p></td></tr><tr id="type-t.system_channel_id" class="anchored"><td class="def field"><a href="#type-t.system_channel_id" class="anchor"></a><code>system_channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a> option;</code></td><td class="doc"><p>The channel ID where system messages are sent.</p></td></tr><tr id="type-t.large" class="anchored"><td class="def field"><a href="#type-t.large" class="anchor"></a><code>large : bool;</code></td><td class="doc"><p>Whether the guild exceeds the configured large threshold.</p></td></tr><tr id="type-t.unavailable" class="anchored"><td class="def field"><a href="#type-t.unavailable" class="anchor"></a><code>unavailable : bool;</code></td><td class="doc"><p>Whether the guild is unavailable or not.</p></td></tr><tr id="type-t.member_count" class="anchored"><td class="def field"><a href="#type-t.member_count" class="anchor"></a><code>member_count : int option;</code></td><td class="doc"><p>Total number of members in the guild.</p></td></tr><tr id="type-t.members" class="anchored"><td class="def field"><a href="#type-t.members" class="anchor"></a><code>members : <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> list;</code></td><td class="doc"><p>List of guild members.</p></td></tr><tr id="type-t.channels" class="anchored"><td class="def field"><a href="#type-t.channels" class="anchor"></a><code>channels : <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> list;</code></td><td class="doc"><p>List of guild channels.</p></td></tr></table><code>}</code></dt><dd><p>A Guild object</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : <a href="index.html#type-pre">pre</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Http/index.html b/docs/disml/Disml__Http/index.html index 8895fff..10354cc 100644 --- a/docs/disml/Disml__Http/index.html +++ b/docs/disml/Disml__Http/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Http (disml.Disml__Http)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Http</nav><h1>Module <code>Disml__Http</code></h1></header><div class="spec module" id="module-Base"><a href="#module-Base" class="anchor"></a><code><span class="keyword">module </span><a href="Base/index.html">Base</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-get_gateway"><a href="#val-get_gateway" class="anchor"></a><code><span class="keyword">val </span>get_gateway : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_gateway_bot"><a href="#val-get_gateway_bot" class="anchor"></a><code><span class="keyword">val </span>get_gateway_bot : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel"><a href="#val-get_channel" class="anchor"></a><code><span class="keyword">val </span>get_channel : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_channel"><a href="#val-modify_channel" class="anchor"></a><code><span class="keyword">val </span>modify_channel : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel"><a href="#val-delete_channel" class="anchor"></a><code><span class="keyword">val </span>delete_channel : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : int <span>-></span> int <span>-></span> (string<span class="keyword"> * </span>int) <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_message"><a href="#val-create_message" class="anchor"></a><code><span class="keyword">val </span>create_message : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_reaction"><a href="#val-create_reaction" class="anchor"></a><code><span class="keyword">val </span>create_reaction : int <span>-></span> int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_own_reaction"><a href="#val-delete_own_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_own_reaction : int <span>-></span> int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reaction"><a href="#val-delete_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_reaction : int <span>-></span> int <span>-></span> string <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_reactions"><a href="#val-get_reactions" class="anchor"></a><code><span class="keyword">val </span>get_reactions : int <span>-></span> int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reactions"><a href="#val-delete_reactions" class="anchor"></a><code><span class="keyword">val </span>delete_reactions : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_message"><a href="#val-edit_message" class="anchor"></a><code><span class="keyword">val </span>edit_message : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_message"><a href="#val-delete_message" class="anchor"></a><code><span class="keyword">val </span>delete_message : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-bulk_delete"><a href="#val-bulk_delete" class="anchor"></a><code><span class="keyword">val </span>bulk_delete : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_channel_permissions"><a href="#val-edit_channel_permissions" class="anchor"></a><code><span class="keyword">val </span>edit_channel_permissions : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_invites"><a href="#val-get_channel_invites" class="anchor"></a><code><span class="keyword">val </span>get_channel_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel_invite"><a href="#val-create_channel_invite" class="anchor"></a><code><span class="keyword">val </span>create_channel_invite : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel_permission"><a href="#val-delete_channel_permission" class="anchor"></a><code><span class="keyword">val </span>delete_channel_permission : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pinned_messages"><a href="#val-get_pinned_messages" class="anchor"></a><code><span class="keyword">val </span>get_pinned_messages : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-pin_message"><a href="#val-pin_message" class="anchor"></a><code><span class="keyword">val </span>pin_message : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unpin_message"><a href="#val-unpin_message" class="anchor"></a><code><span class="keyword">val </span>unpin_message : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_add"><a href="#val-group_recipient_add" class="anchor"></a><code><span class="keyword">val </span>group_recipient_add : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_remove"><a href="#val-group_recipient_remove" class="anchor"></a><code><span class="keyword">val </span>group_recipient_remove : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emojis"><a href="#val-get_emojis" class="anchor"></a><code><span class="keyword">val </span>get_emojis : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_emoji"><a href="#val-edit_emoji" class="anchor"></a><code><span class="keyword">val </span>edit_emoji : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_emoji"><a href="#val-delete_emoji" class="anchor"></a><code><span class="keyword">val </span>delete_emoji : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild"><a href="#val-create_guild" class="anchor"></a><code><span class="keyword">val </span>create_guild : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild"><a href="#val-get_guild" class="anchor"></a><code><span class="keyword">val </span>get_guild : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild"><a href="#val-edit_guild" class="anchor"></a><code><span class="keyword">val </span>edit_guild : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_guild"><a href="#val-delete_guild" class="anchor"></a><code><span class="keyword">val </span>delete_guild : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_channels"><a href="#val-get_guild_channels" class="anchor"></a><code><span class="keyword">val </span>get_guild_channels : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild_channel"><a href="#val-create_guild_channel" class="anchor"></a><code><span class="keyword">val </span>create_guild_channel : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_guild_channel_positions"><a href="#val-modify_guild_channel_positions" class="anchor"></a><code><span class="keyword">val </span>modify_guild_channel_positions : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_member"><a href="#val-get_member" class="anchor"></a><code><span class="keyword">val </span>get_member : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_members"><a href="#val-get_members" class="anchor"></a><code><span class="keyword">val </span>get_members : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member"><a href="#val-add_member" class="anchor"></a><code><span class="keyword">val </span>add_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_member"><a href="#val-edit_member" class="anchor"></a><code><span class="keyword">val </span>edit_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member"><a href="#val-remove_member" class="anchor"></a><code><span class="keyword">val </span>remove_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-change_nickname"><a href="#val-change_nickname" class="anchor"></a><code><span class="keyword">val </span>change_nickname : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member_role"><a href="#val-add_member_role" class="anchor"></a><code><span class="keyword">val </span>add_member_role : int <span>-></span> int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member_role"><a href="#val-remove_member_role" class="anchor"></a><code><span class="keyword">val </span>remove_member_role : int <span>-></span> int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_add"><a href="#val-guild_ban_add" class="anchor"></a><code><span class="keyword">val </span>guild_ban_add : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_remove"><a href="#val-guild_ban_remove" class="anchor"></a><code><span class="keyword">val </span>guild_ban_remove : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_roles"><a href="#val-get_roles" class="anchor"></a><code><span class="keyword">val </span>get_roles : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_add"><a href="#val-guild_role_add" class="anchor"></a><code><span class="keyword">val </span>guild_role_add : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_roles_edit"><a href="#val-guild_roles_edit" class="anchor"></a><code><span class="keyword">val </span>guild_roles_edit : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_edit"><a href="#val-guild_role_edit" class="anchor"></a><code><span class="keyword">val </span>guild_role_edit : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_remove"><a href="#val-guild_role_remove" class="anchor"></a><code><span class="keyword">val </span>guild_role_remove : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_count"><a href="#val-guild_prune_count" class="anchor"></a><code><span class="keyword">val </span>guild_prune_count : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_start"><a href="#val-guild_prune_start" class="anchor"></a><code><span class="keyword">val </span>guild_prune_start : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_voice_regions"><a href="#val-get_guild_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_guild_voice_regions : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_invites"><a href="#val-get_guild_invites" class="anchor"></a><code><span class="keyword">val </span>get_guild_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_integrations"><a href="#val-get_integrations" class="anchor"></a><code><span class="keyword">val </span>get_integrations : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_integration"><a href="#val-add_integration" class="anchor"></a><code><span class="keyword">val </span>add_integration : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_integration"><a href="#val-edit_integration" class="anchor"></a><code><span class="keyword">val </span>edit_integration : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_integration"><a href="#val-delete_integration" class="anchor"></a><code><span class="keyword">val </span>delete_integration : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-sync_integration"><a href="#val-sync_integration" class="anchor"></a><code><span class="keyword">val </span>sync_integration : int <span>-></span> int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_embed"><a href="#val-get_guild_embed" class="anchor"></a><code><span class="keyword">val </span>get_guild_embed : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild_embed"><a href="#val-edit_guild_embed" class="anchor"></a><code><span class="keyword">val </span>edit_guild_embed : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_vanity_url"><a href="#val-get_vanity_url" class="anchor"></a><code><span class="keyword">val </span>get_vanity_url : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invite"><a href="#val-get_invite" class="anchor"></a><code><span class="keyword">val </span>get_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_invite"><a href="#val-delete_invite" class="anchor"></a><code><span class="keyword">val </span>delete_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_current_user"><a href="#val-get_current_user" class="anchor"></a><code><span class="keyword">val </span>get_current_user : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_current_user"><a href="#val-edit_current_user" class="anchor"></a><code><span class="keyword">val </span>edit_current_user : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guilds"><a href="#val-get_guilds" class="anchor"></a><code><span class="keyword">val </span>get_guilds : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave_guild"><a href="#val-leave_guild" class="anchor"></a><code><span class="keyword">val </span>leave_guild : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_private_channels"><a href="#val-get_private_channels" class="anchor"></a><code><span class="keyword">val </span>get_private_channels : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_dm"><a href="#val-create_dm" class="anchor"></a><code><span class="keyword">val </span>create_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_group_dm"><a href="#val-create_group_dm" class="anchor"></a><code><span class="keyword">val </span>create_group_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_connections"><a href="#val-get_connections" class="anchor"></a><code><span class="keyword">val </span>get_connections : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_user"><a href="#val-get_user" class="anchor"></a><code><span class="keyword">val </span>get_user : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_voice_regions"><a href="#val-get_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_voice_regions : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_webhook"><a href="#val-create_webhook" class="anchor"></a><code><span class="keyword">val </span>create_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_webhooks"><a href="#val-get_channel_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_channel_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_webhooks"><a href="#val-get_guild_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_guild_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook"><a href="#val-get_webhook" class="anchor"></a><code><span class="keyword">val </span>get_webhook : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook_with_token"><a href="#val-get_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>get_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook"><a href="#val-edit_webhook" class="anchor"></a><code><span class="keyword">val </span>edit_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook_with_token"><a href="#val-edit_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>edit_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook"><a href="#val-delete_webhook" class="anchor"></a><code><span class="keyword">val </span>delete_webhook : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook_with_token"><a href="#val-delete_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>delete_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_webhook"><a href="#val-execute_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_slack_webhook"><a href="#val-execute_slack_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_slack_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_git_webhook"><a href="#val-execute_git_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_git_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_audit_logs"><a href="#val-get_audit_logs" class="anchor"></a><code><span class="keyword">val </span>get_audit_logs : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Http (disml.Disml__Http)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Http</nav><h1>Module <code>Disml__Http</code></h1></header><div class="spec module" id="module-Base"><a href="#module-Base" class="anchor"></a><code><span class="keyword">module </span><a href="Base/index.html">Base</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-get_gateway"><a href="#val-get_gateway" class="anchor"></a><code><span class="keyword">val </span>get_gateway : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_gateway_bot"><a href="#val-get_gateway_bot" class="anchor"></a><code><span class="keyword">val </span>get_gateway_bot : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel"><a href="#val-get_channel" class="anchor"></a><code><span class="keyword">val </span>get_channel : int <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_channel"><a href="#val-modify_channel" class="anchor"></a><code><span class="keyword">val </span>modify_channel : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel"><a href="#val-delete_channel" class="anchor"></a><code><span class="keyword">val </span>delete_channel : int <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : int <span>-></span> int <span>-></span> (string<span class="keyword"> * </span>int) <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : int <span>-></span> int <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_message"><a href="#val-create_message" class="anchor"></a><code><span class="keyword">val </span>create_message : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_reaction"><a href="#val-create_reaction" class="anchor"></a><code><span class="keyword">val </span>create_reaction : int <span>-></span> int <span>-></span> string <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_own_reaction"><a href="#val-delete_own_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_own_reaction : int <span>-></span> int <span>-></span> string <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reaction"><a href="#val-delete_reaction" class="anchor"></a><code><span class="keyword">val </span>delete_reaction : int <span>-></span> int <span>-></span> string <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_reactions"><a href="#val-get_reactions" class="anchor"></a><code><span class="keyword">val </span>get_reactions : int <span>-></span> int <span>-></span> string <span>-></span> <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_reactions"><a href="#val-delete_reactions" class="anchor"></a><code><span class="keyword">val </span>delete_reactions : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_message"><a href="#val-edit_message" class="anchor"></a><code><span class="keyword">val </span>edit_message : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_message"><a href="#val-delete_message" class="anchor"></a><code><span class="keyword">val </span>delete_message : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-bulk_delete"><a href="#val-bulk_delete" class="anchor"></a><code><span class="keyword">val </span>bulk_delete : int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_channel_permissions"><a href="#val-edit_channel_permissions" class="anchor"></a><code><span class="keyword">val </span>edit_channel_permissions : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_invites"><a href="#val-get_channel_invites" class="anchor"></a><code><span class="keyword">val </span>get_channel_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel_invite"><a href="#val-create_channel_invite" class="anchor"></a><code><span class="keyword">val </span>create_channel_invite : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_channel_permission"><a href="#val-delete_channel_permission" class="anchor"></a><code><span class="keyword">val </span>delete_channel_permission : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pinned_messages"><a href="#val-get_pinned_messages" class="anchor"></a><code><span class="keyword">val </span>get_pinned_messages : int <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-pin_message"><a href="#val-pin_message" class="anchor"></a><code><span class="keyword">val </span>pin_message : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unpin_message"><a href="#val-unpin_message" class="anchor"></a><code><span class="keyword">val </span>unpin_message : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_add"><a href="#val-group_recipient_add" class="anchor"></a><code><span class="keyword">val </span>group_recipient_add : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-group_recipient_remove"><a href="#val-group_recipient_remove" class="anchor"></a><code><span class="keyword">val </span>group_recipient_remove : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emojis"><a href="#val-get_emojis" class="anchor"></a><code><span class="keyword">val </span>get_emojis : int <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : int <span>-></span> int <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_emoji"><a href="#val-edit_emoji" class="anchor"></a><code><span class="keyword">val </span>edit_emoji : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_emoji"><a href="#val-delete_emoji" class="anchor"></a><code><span class="keyword">val </span>delete_emoji : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild"><a href="#val-create_guild" class="anchor"></a><code><span class="keyword">val </span>create_guild : Yojson.Safe.json <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild"><a href="#val-get_guild" class="anchor"></a><code><span class="keyword">val </span>get_guild : int <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild"><a href="#val-edit_guild" class="anchor"></a><code><span class="keyword">val </span>edit_guild : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_guild"><a href="#val-delete_guild" class="anchor"></a><code><span class="keyword">val </span>delete_guild : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_channels"><a href="#val-get_guild_channels" class="anchor"></a><code><span class="keyword">val </span>get_guild_channels : int <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_guild_channel"><a href="#val-create_guild_channel" class="anchor"></a><code><span class="keyword">val </span>create_guild_channel : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-modify_guild_channel_positions"><a href="#val-modify_guild_channel_positions" class="anchor"></a><code><span class="keyword">val </span>modify_guild_channel_positions : int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_member"><a href="#val-get_member" class="anchor"></a><code><span class="keyword">val </span>get_member : int <span>-></span> int <span>-></span> <a href="../Disml__/Member/index.html#type-t">Disml__.Member.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_members"><a href="#val-get_members" class="anchor"></a><code><span class="keyword">val </span>get_members : int <span>-></span> <a href="../Disml__/Member/index.html#type-t">Disml__.Member.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member"><a href="#val-add_member" class="anchor"></a><code><span class="keyword">val </span>add_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Member/index.html#type-t">Disml__.Member.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_member"><a href="#val-edit_member" class="anchor"></a><code><span class="keyword">val </span>edit_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member"><a href="#val-remove_member" class="anchor"></a><code><span class="keyword">val </span>remove_member : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-change_nickname"><a href="#val-change_nickname" class="anchor"></a><code><span class="keyword">val </span>change_nickname : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_member_role"><a href="#val-add_member_role" class="anchor"></a><code><span class="keyword">val </span>add_member_role : int <span>-></span> int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_member_role"><a href="#val-remove_member_role" class="anchor"></a><code><span class="keyword">val </span>remove_member_role : int <span>-></span> int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : int <span>-></span> <a href="../Disml__/Ban/index.html#type-t">Disml__.Ban.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : int <span>-></span> int <span>-></span> <a href="../Disml__/Ban/index.html#type-t">Disml__.Ban.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_add"><a href="#val-guild_ban_add" class="anchor"></a><code><span class="keyword">val </span>guild_ban_add : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_ban_remove"><a href="#val-guild_ban_remove" class="anchor"></a><code><span class="keyword">val </span>guild_ban_remove : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_roles"><a href="#val-get_roles" class="anchor"></a><code><span class="keyword">val </span>get_roles : int <span>-></span> <a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_add"><a href="#val-guild_role_add" class="anchor"></a><code><span class="keyword">val </span>guild_role_add : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_roles_edit"><a href="#val-guild_roles_edit" class="anchor"></a><code><span class="keyword">val </span>guild_roles_edit : int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_edit"><a href="#val-guild_role_edit" class="anchor"></a><code><span class="keyword">val </span>guild_role_edit : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> <a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_role_remove"><a href="#val-guild_role_remove" class="anchor"></a><code><span class="keyword">val </span>guild_role_remove : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_count"><a href="#val-guild_prune_count" class="anchor"></a><code><span class="keyword">val </span>guild_prune_count : int <span>-></span> int <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-guild_prune_start"><a href="#val-guild_prune_start" class="anchor"></a><code><span class="keyword">val </span>guild_prune_start : int <span>-></span> int <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_voice_regions"><a href="#val-get_guild_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_guild_voice_regions : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_invites"><a href="#val-get_guild_invites" class="anchor"></a><code><span class="keyword">val </span>get_guild_invites : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_integrations"><a href="#val-get_integrations" class="anchor"></a><code><span class="keyword">val </span>get_integrations : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-add_integration"><a href="#val-add_integration" class="anchor"></a><code><span class="keyword">val </span>add_integration : int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_integration"><a href="#val-edit_integration" class="anchor"></a><code><span class="keyword">val </span>edit_integration : int <span>-></span> int <span>-></span> Yojson.Safe.json <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_integration"><a href="#val-delete_integration" class="anchor"></a><code><span class="keyword">val </span>delete_integration : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-sync_integration"><a href="#val-sync_integration" class="anchor"></a><code><span class="keyword">val </span>sync_integration : int <span>-></span> int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_embed"><a href="#val-get_guild_embed" class="anchor"></a><code><span class="keyword">val </span>get_guild_embed : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_guild_embed"><a href="#val-edit_guild_embed" class="anchor"></a><code><span class="keyword">val </span>edit_guild_embed : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_vanity_url"><a href="#val-get_vanity_url" class="anchor"></a><code><span class="keyword">val </span>get_vanity_url : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invite"><a href="#val-get_invite" class="anchor"></a><code><span class="keyword">val </span>get_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_invite"><a href="#val-delete_invite" class="anchor"></a><code><span class="keyword">val </span>delete_invite : string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_current_user"><a href="#val-get_current_user" class="anchor"></a><code><span class="keyword">val </span>get_current_user : unit <span>-></span> <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_current_user"><a href="#val-edit_current_user" class="anchor"></a><code><span class="keyword">val </span>edit_current_user : Yojson.Safe.json <span>-></span> <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guilds"><a href="#val-get_guilds" class="anchor"></a><code><span class="keyword">val </span>get_guilds : unit <span>-></span> <a href="../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave_guild"><a href="#val-leave_guild" class="anchor"></a><code><span class="keyword">val </span>leave_guild : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_private_channels"><a href="#val-get_private_channels" class="anchor"></a><code><span class="keyword">val </span>get_private_channels : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_dm"><a href="#val-create_dm" class="anchor"></a><code><span class="keyword">val </span>create_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_group_dm"><a href="#val-create_group_dm" class="anchor"></a><code><span class="keyword">val </span>create_group_dm : Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_connections"><a href="#val-get_connections" class="anchor"></a><code><span class="keyword">val </span>get_connections : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_user"><a href="#val-get_user" class="anchor"></a><code><span class="keyword">val </span>get_user : int <span>-></span> <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_voice_regions"><a href="#val-get_voice_regions" class="anchor"></a><code><span class="keyword">val </span>get_voice_regions : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_webhook"><a href="#val-create_webhook" class="anchor"></a><code><span class="keyword">val </span>create_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_channel_webhooks"><a href="#val-get_channel_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_channel_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_guild_webhooks"><a href="#val-get_guild_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_guild_webhooks : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook"><a href="#val-get_webhook" class="anchor"></a><code><span class="keyword">val </span>get_webhook : int <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhook_with_token"><a href="#val-get_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>get_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook"><a href="#val-edit_webhook" class="anchor"></a><code><span class="keyword">val </span>edit_webhook : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-edit_webhook_with_token"><a href="#val-edit_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>edit_webhook_with_token : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook"><a href="#val-delete_webhook" class="anchor"></a><code><span class="keyword">val </span>delete_webhook : int <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete_webhook_with_token"><a href="#val-delete_webhook_with_token" class="anchor"></a><code><span class="keyword">val </span>delete_webhook_with_token : int <span>-></span> string <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_webhook"><a href="#val-execute_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_slack_webhook"><a href="#val-execute_slack_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_slack_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-execute_git_webhook"><a href="#val-execute_git_webhook" class="anchor"></a><code><span class="keyword">val </span>execute_git_webhook : int <span>-></span> string <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_audit_logs"><a href="#val-get_audit_logs" class="anchor"></a><code><span class="keyword">val </span>get_audit_logs : int <span>-></span> Yojson.Safe.json <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_application_info"><a href="#val-get_application_info" class="anchor"></a><code><span class="keyword">val </span>get_application_info : unit <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Impl/.dune-keep b/docs/disml/Disml__Impl/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__Impl/.dune-keep diff --git a/docs/disml/Disml__Impl/Channel/argument-1-T/index.html b/docs/disml/Disml__Impl/Channel/argument-1-T/index.html new file mode 100644 index 0000000..21de699 --- /dev/null +++ b/docs/disml/Disml__Impl/Channel/argument-1-T/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-T (disml.Disml__Impl.Channel.1-T)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__Impl</a> » <a href="../index.html">Channel</a> » 1-T</nav><h1>Parameter <code>Channel.1-T</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Impl/Channel/index.html b/docs/disml/Disml__Impl/Channel/index.html new file mode 100644 index 0000000..d953f09 --- /dev/null +++ b/docs/disml/Disml__Impl/Channel/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Channel (disml.Disml__Impl.Channel)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Impl</a> » Channel</nav><h1>Module <code>Disml__Impl.Channel</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-T/index.html">T</a> : <a href="../../Disml__/S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../../Disml__/Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <a href="index.html#exception-Invalid_message"><code>Invalid_message</code></a> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!hello" msg.content then
+ let embed = Embed.(default |> title "Hello World!") in
+ Channel_id.send_message ~embed msg.channel_id >>> ignore
+
+ Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p><code>say str ch</code> is equivalent to <code>send_message ~content:str ch</code>.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Impl/Guild/argument-1-T/index.html b/docs/disml/Disml__Impl/Guild/argument-1-T/index.html new file mode 100644 index 0000000..32e1320 --- /dev/null +++ b/docs/disml/Disml__Impl/Guild/argument-1-T/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-T (disml.Disml__Impl.Guild.1-T)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__Impl</a> » <a href="../index.html">Guild</a> » 1-T</nav><h1>Parameter <code>Guild.1-T</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Impl/Guild/index.html b/docs/disml/Disml__Impl/Guild/index.html new file mode 100644 index 0000000..cde7414 --- /dev/null +++ b/docs/disml/Disml__Impl/Guild/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Guild (disml.Disml__Impl.Guild)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Impl</a> » Guild</nav><h1>Module <code>Disml__Impl.Guild</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-T/index.html">T</a> : <a href="../../Disml__/S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Ban_t/index.html#type-t">Disml__.Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Ban_t/index.html#type-t">Disml__.Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Impl/User/argument-1-T/index.html b/docs/disml/Disml__Impl/User/argument-1-T/index.html new file mode 100644 index 0000000..200dd5d --- /dev/null +++ b/docs/disml/Disml__Impl/User/argument-1-T/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>1-T (disml.Disml__Impl.User.1-T)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../../index.html">disml</a> » <a href="../../index.html">Disml__Impl</a> » <a href="../index.html">User</a> » 1-T</nav><h1>Parameter <code>User.1-T</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Impl/User/index.html b/docs/disml/Disml__Impl/User/index.html new file mode 100644 index 0000000..6011e65 --- /dev/null +++ b/docs/disml/Disml__Impl/User/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>User (disml.Disml__Impl.User)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Impl</a> » User</nav><h1>Module <code>Disml__Impl.User</code></h1></header><h3 class="heading">Parameters</h3><dl><code><a href="argument-1-T/index.html">T</a> : <a href="../../Disml__/S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a></code></dl><h3 class="heading">Signature</h3><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Impl/index.html b/docs/disml/Disml__Impl/index.html new file mode 100644 index 0000000..1f851d1 --- /dev/null +++ b/docs/disml/Disml__Impl/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Impl (disml.Disml__Impl)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Impl</nav><h1>Module <code>Disml__Impl</code></h1></header><div class="spec module" id="module-Channel"><a href="#module-Channel" class="anchor"></a><code><span class="keyword">module </span><a href="Channel/index.html">Channel</a> : <span class="keyword">functor</span> (<a href="Channel/argument-1-T/index.html">T</a> : <a href="../Disml__/S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a>) <span>-></span> <a href="../Disml__/S/index.html#module-type-ChannelImpl">Disml__.S.ChannelImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="Channel/index.html#type-t">t</a> := <a href="Channel/argument-1-T/index.html#type-t">T.t</a></code></div><div class="spec module" id="module-Guild"><a href="#module-Guild" class="anchor"></a><code><span class="keyword">module </span><a href="Guild/index.html">Guild</a> : <span class="keyword">functor</span> (<a href="Guild/argument-1-T/index.html">T</a> : <a href="../Disml__/S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a>) <span>-></span> <a href="../Disml__/S/index.html#module-type-GuildImpl">Disml__.S.GuildImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="Guild/index.html#type-t">t</a> := <a href="Guild/argument-1-T/index.html#type-t">T.t</a></code></div><div class="spec module" id="module-User"><a href="#module-User" class="anchor"></a><code><span class="keyword">module </span><a href="User/index.html">User</a> : <span class="keyword">functor</span> (<a href="User/argument-1-T/index.html">T</a> : <a href="../Disml__/S/index.html#module-type-HasSnowflake">Disml__.S.HasSnowflake</a>) <span>-></span> <a href="../Disml__/S/index.html#module-type-UserImpl">Disml__.S.UserImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="User/index.html#type-t">t</a> := <a href="User/argument-1-T/index.html#type-t">T.t</a></code></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Member/index.html b/docs/disml/Disml__Member/index.html index 09cd5a8..a983c95 100644 --- a/docs/disml/Disml__Member/index.html +++ b/docs/disml/Disml__Member/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Member (disml.Disml__Member)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Member</nav><h1>Module <code>Disml__Member</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-Member_t">Disml.Member_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-add_role"><a href="#val-add_role" class="anchor"></a><code><span class="keyword">val </span>add_role : role:<a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> <span>-></span> <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_role"><a href="#val-remove_role" class="anchor"></a><code><span class="keyword">val </span>remove_role : role:<a href="../Disml/Role_t/index.html#type-t">Disml.Role_t.t</a> <span>-></span> <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-ban"><a href="#val-ban" class="anchor"></a><code><span class="keyword">val </span>ban : ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick"><a href="#val-kick" class="anchor"></a><code><span class="keyword">val </span>kick : ?⁠reason:string <span>-></span> <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-mute"><a href="#val-mute" class="anchor"></a><code><span class="keyword">val </span>mute : <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-deafen"><a href="#val-deafen" class="anchor"></a><code><span class="keyword">val </span>deafen : <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unmute"><a href="#val-unmute" class="anchor"></a><code><span class="keyword">val </span>unmute : <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-undeafen"><a href="#val-undeafen" class="anchor"></a><code><span class="keyword">val </span>undeafen : <a href="../Disml/Member_t/index.html#type-t">Disml.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Member (disml.Disml__Member)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Member</nav><h1>Module <code>Disml__Member</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Member_t">Disml__.Member_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td><td class="doc"><p>The nickname of the member, if they have one set.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>The roles the member has.</p></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td><td class="doc"><p>An ISO8601 timestamp of when the user joined.</p></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td><td class="doc"><p>Whether the user is deafened.</p></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td><td class="doc"><p>Whether the user is muted.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The underlying user object for the member.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which the member exists.</p></td></tr></table><code>}</code></dt><dd><p>A member object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-add_role"><a href="#val-add_role" class="anchor"></a><code><span class="keyword">val </span>add_role : role:<a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> <span>-></span> <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Adds a role to the member.</p></dd></dl><dl><dt class="spec value" id="val-remove_role"><a href="#val-remove_role" class="anchor"></a><code><span class="keyword">val </span>remove_role : role:<a href="../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> <span>-></span> <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Removes a role from the member.</p></dd></dl><dl><dt class="spec value" id="val-ban"><a href="#val-ban" class="anchor"></a><code><span class="keyword">val </span>ban : ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Bans the member with optional reason and days of messages to delete.</p></dd></dl><dl><dt class="spec value" id="val-kick"><a href="#val-kick" class="anchor"></a><code><span class="keyword">val </span>kick : ?⁠reason:string <span>-></span> <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Kicks the member with the optional reason.</p></dd></dl><dl><dt class="spec value" id="val-mute"><a href="#val-mute" class="anchor"></a><code><span class="keyword">val </span>mute : <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Mutes the member, preventing them from speaking in voice chats.</p></dd></dl><dl><dt class="spec value" id="val-deafen"><a href="#val-deafen" class="anchor"></a><code><span class="keyword">val </span>deafen : <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Deafens the member, preventing them from hearing others in voice chats.</p></dd></dl><dl><dt class="spec value" id="val-unmute"><a href="#val-unmute" class="anchor"></a><code><span class="keyword">val </span>unmute : <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Opposite of <a href="index.html#type-partial_member.mute"><code>mute</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-undeafen"><a href="#val-undeafen" class="anchor"></a><code><span class="keyword">val </span>undeafen : <a href="../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Opposite of <a href="index.html#val-deafen"><code>deafen</code></a>.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Member_t/index.html b/docs/disml/Disml__Member_t/index.html index 8a5ef8b..52aa952 100644 --- a/docs/disml/Disml__Member_t/index.html +++ b/docs/disml/Disml__Member_t/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Member_t (disml.Disml__Member_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Member_t</nav><h1>Module <code>Disml__Member_t</code></h1></header><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Member_t (disml.Disml__Member_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Member_t</nav><h1>Module <code>Disml__Member_t</code></h1></header><dl><dt class="spec type" id="type-partial_member"><a href="#type-partial_member" class="anchor"></a><code><span class="keyword">type </span>partial_member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_member.nick" class="anchored"><td class="def field"><a href="#type-partial_member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-partial_member.roles" class="anchored"><td class="def field"><a href="#type-partial_member.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-partial_member.joined_at" class="anchored"><td class="def field"><a href="#type-partial_member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-partial_member.deaf" class="anchored"><td class="def field"><a href="#type-partial_member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-partial_member.mute" class="anchored"><td class="def field"><a href="#type-partial_member.mute" class="anchor"></a><code>mute : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_member_of_sexp"><a href="#val-partial_member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt><dt class="spec value" id="val-sexp_of_partial_member"><a href="#val-sexp_of_partial_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_member : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_member_to_yojson"><a href="#val-partial_member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_to_yojson : <a href="index.html#type-partial_member">partial_member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_member_of_yojson"><a href="#val-partial_member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_member_of_yojson_exn"><a href="#val-partial_member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_member">partial_member</a></code></dt></dl><dl><dt class="spec type" id="type-member"><a href="#type-member" class="anchor"></a><code><span class="keyword">type </span>member</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member.nick" class="anchored"><td class="def field"><a href="#type-member.nick" class="anchor"></a><code>nick : string option;</code></td></tr><tr id="type-member.roles" class="anchored"><td class="def field"><a href="#type-member.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member.joined_at" class="anchored"><td class="def field"><a href="#type-member.joined_at" class="anchor"></a><code>joined_at : string;</code></td></tr><tr id="type-member.deaf" class="anchored"><td class="def field"><a href="#type-member.deaf" class="anchor"></a><code>deaf : bool;</code></td></tr><tr id="type-member.mute" class="anchored"><td class="def field"><a href="#type-member.mute" class="anchor"></a><code>mute : bool;</code></td></tr><tr id="type-member.user" class="anchored"><td class="def field"><a href="#type-member.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_of_sexp"><a href="#val-member_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member">member</a></code></dt><dt class="spec value" id="val-sexp_of_member"><a href="#val-sexp_of_member" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member : <a href="index.html#type-member">member</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_to_yojson"><a href="#val-member_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_to_yojson : <a href="index.html#type-member">member</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_of_yojson"><a href="#val-member_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_of_yojson_exn"><a href="#val-member_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member">member</a></code></dt></dl><dl><dt class="spec type" id="type-member_wrapper"><a href="#type-member_wrapper" class="anchor"></a><code><span class="keyword">type </span>member_wrapper</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_wrapper.guild_id" class="anchored"><td class="def field"><a href="#type-member_wrapper.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_wrapper.user" class="anchored"><td class="def field"><a href="#type-member_wrapper.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_wrapper_of_sexp"><a href="#val-member_wrapper_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt><dt class="spec value" id="val-sexp_of_member_wrapper"><a href="#val-sexp_of_member_wrapper" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_wrapper : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_wrapper_to_yojson"><a href="#val-member_wrapper_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_to_yojson : <a href="index.html#type-member_wrapper">member_wrapper</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson"><a href="#val-member_wrapper_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_wrapper_of_yojson_exn"><a href="#val-member_wrapper_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_wrapper_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_wrapper">member_wrapper</a></code></dt></dl><dl><dt class="spec type" id="type-member_update"><a href="#type-member_update" class="anchor"></a><code><span class="keyword">type </span>member_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-member_update.guild_id" class="anchored"><td class="def field"><a href="#type-member_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td></tr><tr id="type-member_update.roles" class="anchored"><td class="def field"><a href="#type-member_update.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td></tr><tr id="type-member_update.user" class="anchored"><td class="def field"><a href="#type-member_update.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td></tr><tr id="type-member_update.nick" class="anchored"><td class="def field"><a href="#type-member_update.nick" class="anchor"></a><code>nick : string option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-member_update_of_sexp"><a href="#val-member_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>member_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt><dt class="spec value" id="val-sexp_of_member_update"><a href="#val-sexp_of_member_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_member_update : <a href="index.html#type-member_update">member_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-member_update_to_yojson"><a href="#val-member_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_to_yojson : <a href="index.html#type-member_update">member_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-member_update_of_yojson"><a href="#val-member_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-member_update_of_yojson_exn"><a href="#val-member_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>member_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-member_update">member_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.nick" class="anchored"><td class="def field"><a href="#type-t.nick" class="anchor"></a><code>nick : string option;</code></td><td class="doc"><p>The nickname of the member, if they have one set.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>The roles the member has.</p></td></tr><tr id="type-t.joined_at" class="anchored"><td class="def field"><a href="#type-t.joined_at" class="anchor"></a><code>joined_at : string;</code></td><td class="doc"><p>An ISO8601 timestamp of when the user joined.</p></td></tr><tr id="type-t.deaf" class="anchored"><td class="def field"><a href="#type-t.deaf" class="anchor"></a><code>deaf : bool;</code></td><td class="doc"><p>Whether the user is deafened.</p></td></tr><tr id="type-t.mute" class="anchored"><td class="def field"><a href="#type-t.mute" class="anchor"></a><code>mute : bool;</code></td><td class="doc"><p>Whether the user is muted.</p></td></tr><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>The underlying user object for the member.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which the member exists.</p></td></tr></table><code>}</code></dt><dd><p>A member object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-member">member</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Message/index.html b/docs/disml/Disml__Message/index.html index 522ee5b..dd06c87 100644 --- a/docs/disml/Disml__Message/index.html +++ b/docs/disml/Disml__Message/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Message (disml.Disml__Message)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Message</nav><h1>Module <code>Disml__Message</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-Message_t">Disml.Message_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-message_update"><a href="#type-message_update" class="anchor"></a><code><span class="keyword">type </span>message_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-message_update.id" class="anchored"><td class="def field"><a href="#type-message_update.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-message_update.author" class="anchored"><td class="def field"><a href="#type-message_update.author" class="anchor"></a><code>author : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a> option;</code></td></tr><tr id="type-message_update.channel_id" class="anchored"><td class="def field"><a href="#type-message_update.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-message_update.member" class="anchored"><td class="def field"><a href="#type-message_update.member" class="anchor"></a><code>member : <a href="../Disml/Member_t/index.html#type-partial_member">Disml.Member_t.partial_member</a> option;</code></td></tr><tr id="type-message_update.guild_id" class="anchored"><td class="def field"><a href="#type-message_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.content" class="anchored"><td class="def field"><a href="#type-message_update.content" class="anchor"></a><code>content : string option;</code></td></tr><tr id="type-message_update.timestamp" class="anchored"><td class="def field"><a href="#type-message_update.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-message_update.editedimestamp" class="anchored"><td class="def field"><a href="#type-message_update.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-message_update.tts" class="anchored"><td class="def field"><a href="#type-message_update.tts" class="anchor"></a><code>tts : bool option;</code></td></tr><tr id="type-message_update.mention_everyone" class="anchored"><td class="def field"><a href="#type-message_update.mention_everyone" class="anchor"></a><code>mention_everyone : bool option;</code></td></tr><tr id="type-message_update.mentions" class="anchored"><td class="def field"><a href="#type-message_update.mentions" class="anchor"></a><code>mentions : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.role_mentions" class="anchored"><td class="def field"><a href="#type-message_update.role_mentions" class="anchor"></a><code>role_mentions : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.attachments" class="anchored"><td class="def field"><a href="#type-message_update.attachments" class="anchor"></a><code>attachments : <a href="../Disml/Attachment/index.html#type-t">Disml.Attachment.t</a> list;</code></td></tr><tr id="type-message_update.embeds" class="anchored"><td class="def field"><a href="#type-message_update.embeds" class="anchor"></a><code>embeds : <a href="../Disml/Embed/index.html#type-t">Disml.Embed.t</a> list;</code></td></tr><tr id="type-message_update.reactions" class="anchored"><td class="def field"><a href="#type-message_update.reactions" class="anchor"></a><code>reactions : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.nonce" class="anchored"><td class="def field"><a href="#type-message_update.nonce" class="anchor"></a><code>nonce : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.pinned" class="anchored"><td class="def field"><a href="#type-message_update.pinned" class="anchor"></a><code>pinned : bool option;</code></td></tr><tr id="type-message_update.webhook_id" class="anchored"><td class="def field"><a href="#type-message_update.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.kind" class="anchored"><td class="def field"><a href="#type-message_update.kind" class="anchor"></a><code>kind : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-message_update_of_sexp"><a href="#val-message_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>message_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-message_update">message_update</a></code></dt><dt class="spec value" id="val-sexp_of_message_update"><a href="#val-sexp_of_message_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_message_update : <a href="index.html#type-message_update">message_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-message_update_to_yojson"><a href="#val-message_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>message_update_to_yojson : <a href="index.html#type-message_update">message_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-message_update_of_yojson"><a href="#val-message_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>message_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-message_update">message_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-message_update_of_yojson_exn"><a href="#val-message_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>message_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-message_update">message_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../Disml/Member_t/index.html#type-partial_member">Disml.Member_t.partial_member</a> option;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string;</code></td></tr><tr id="type-t.editedimestamp" class="anchored"><td class="def field"><a href="#type-t.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool;</code></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool;</code></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../Disml/Attachment/index.html#type-t">Disml.Attachment.t</a> list;</code></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../Disml/Embed/index.html#type-t">Disml.Embed.t</a> list;</code></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool;</code></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-add_reaction"><a href="#val-add_reaction" class="anchor"></a><code><span class="keyword">val </span>add_reaction : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-remove_reaction"><a href="#val-remove_reaction" class="anchor"></a><code><span class="keyword">val </span>remove_reaction : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a> <span>-></span> <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-clear_reactions"><a href="#val-clear_reactions" class="anchor"></a><code><span class="keyword">val </span>clear_reactions : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-pin"><a href="#val-pin" class="anchor"></a><code><span class="keyword">val </span>pin : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unpin"><a href="#val-unpin" class="anchor"></a><code><span class="keyword">val </span>unpin : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-reply"><a href="#val-reply" class="anchor"></a><code><span class="keyword">val </span>reply : <a href="index.html#type-t">t</a> <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-reply_with"><a href="#val-reply_with" class="anchor"></a><code><span class="keyword">val </span>reply_with : ?⁠embed:<a href="../Disml/Embed/index.html#type-t">Disml.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Message_t/index.html#type-t">Disml.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_content"><a href="#val-set_content" class="anchor"></a><code><span class="keyword">val </span>set_content : <a href="index.html#type-t">t</a> <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_embed"><a href="#val-set_embed" class="anchor"></a><code><span class="keyword">val </span>set_embed : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml/Embed/index.html#type-t">Disml.Embed.t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Message (disml.Disml__Message)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Message</nav><h1>Module <code>Disml__Message</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Message_t">Disml__.Message_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td><td class="doc"><p>Snowflake ID of the message.</p></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>User that authored the message.</p></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td><td class="doc"><p>Channel ID the message exists in.</p></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../Disml__/Member_t/index.html#type-partial_member">Disml__.Member_t.partial_member</a> option;</code></td><td class="doc"><p>A partial member if the message was sent in a guild.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td><td class="doc"><p>Guild ID if the message was sent in a guild.</p></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string;</code></td><td class="doc"><p>Content of the message.</p></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string;</code></td><td class="doc"><p>ISO8601 timestamp of when the message was created.</p></td></tr><tr id="type-t.edited_timestamp" class="anchored"><td class="def field"><a href="#type-t.edited_timestamp" class="anchor"></a><code>edited_timestamp : string option;</code></td><td class="doc"><p>Like timestamp, but for last edit, if any.</p></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool;</code></td><td class="doc"><p>Whether the message used text-to-speech.</p></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool;</code></td><td class="doc"><p>Whether the message mentioned <code>@everyone</code> or <code>@here</code></p></td></tr><tr id="type-t.mentions" class="anchored"><td class="def field"><a href="#type-t.mentions" class="anchor"></a><code>mentions : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> list;</code></td><td class="doc"><p>A List of users that were mentioned in the message.</p></td></tr><tr id="type-t.mention_roles" class="anchored"><td class="def field"><a href="#type-t.mention_roles" class="anchor"></a><code>mention_roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>A list of roles that were mentioned in the message.</p></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../Disml__/Attachment/index.html#type-t">Disml__.Attachment.t</a> list;</code></td><td class="doc"><p>A list of attachments.</p></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../Disml__/Embed/index.html#type-t">Disml__.Embed.t</a> list;</code></td><td class="doc"><p>A List of embeds on the message.</p></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> list;</code></td><td class="doc"><p>A list of reactions.</p></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Used in verification, safe to ignore.</p></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool;</code></td><td class="doc"><p>Whether the message is pinned.</p></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>The webhook ID, if the message was sent by a webhook.</p></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td><td class="doc"><p>See <a href="https://discordapp.com/developers/docs/resources/channel#message-object-message-types">the discord docs</a> for message type enumeration.</p></td></tr></table><code>}</code></dt><dd><p>Represents a message object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-add_reaction"><a href="#val-add_reaction" class="anchor"></a><code><span class="keyword">val </span>add_reaction : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Add the given emoji as a reaction.</p></dd></dl><dl><dt class="spec value" id="val-remove_reaction"><a href="#val-remove_reaction" class="anchor"></a><code><span class="keyword">val </span>remove_reaction : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> <span>-></span> <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Remove the reaction. Must also specify the user.</p></dd></dl><dl><dt class="spec value" id="val-clear_reactions"><a href="#val-clear_reactions" class="anchor"></a><code><span class="keyword">val </span>clear_reactions : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Remove all reactions from the message.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Delete the message.</p></dd></dl><dl><dt class="spec value" id="val-pin"><a href="#val-pin" class="anchor"></a><code><span class="keyword">val </span>pin : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Pin the message.</p></dd></dl><dl><dt class="spec value" id="val-unpin"><a href="#val-unpin" class="anchor"></a><code><span class="keyword">val </span>unpin : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Unping the message.</p></dd></dl><dl><dt class="spec value" id="val-reply"><a href="#val-reply" class="anchor"></a><code><span class="keyword">val </span>reply : <a href="index.html#type-t">t</a> <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Sugar for <code>Channel_id.say msg.channel_id content</code>.</p></dd></dl><dl><dt class="spec value" id="val-reply_with"><a href="#val-reply_with" class="anchor"></a><code><span class="keyword">val </span>reply_with : ?⁠embed:<a href="../Disml__/Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Sugar for <code>Channel_id.send_message ?embed ?content ?file ?tts msg.channel_id</code>.</p></dd></dl><dl><dt class="spec value" id="val-set_content"><a href="#val-set_content" class="anchor"></a><code><span class="keyword">val </span>set_content : <a href="index.html#type-t">t</a> <span>-></span> string <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Set the content of the message.</p></dd></dl><dl><dt class="spec value" id="val-set_embed"><a href="#val-set_embed" class="anchor"></a><code><span class="keyword">val </span>set_embed : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Set the embed of the message.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Message_id/.dune-keep b/docs/disml/Disml__Message_id/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__Message_id/.dune-keep diff --git a/docs/disml/Disml__Message_id/index.html b/docs/disml/Disml__Message_id/index.html new file mode 100644 index 0000000..3dbfde4 --- /dev/null +++ b/docs/disml/Disml__Message_id/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Message_id (disml.Disml__Message_id)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Message_id</nav><h1>Module <code>Disml__Message_id</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Message_id" class="anchored"><td class="def constructor"><a href="#type-t.Message_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Message_id<span class="keyword"> of </span><a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Message_t/index.html b/docs/disml/Disml__Message_t/index.html index 5b28413..247a140 100644 --- a/docs/disml/Disml__Message_t/index.html +++ b/docs/disml/Disml__Message_t/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Message_t (disml.Disml__Message_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Message_t</nav><h1>Module <code>Disml__Message_t</code></h1></header><dl><dt class="spec type" id="type-message_update"><a href="#type-message_update" class="anchor"></a><code><span class="keyword">type </span>message_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-message_update.id" class="anchored"><td class="def field"><a href="#type-message_update.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-message_update.author" class="anchored"><td class="def field"><a href="#type-message_update.author" class="anchor"></a><code>author : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a> option;</code></td></tr><tr id="type-message_update.channel_id" class="anchored"><td class="def field"><a href="#type-message_update.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-message_update.member" class="anchored"><td class="def field"><a href="#type-message_update.member" class="anchor"></a><code>member : <a href="../Disml/Member_t/index.html#type-partial_member">Disml.Member_t.partial_member</a> option;</code></td></tr><tr id="type-message_update.guild_id" class="anchored"><td class="def field"><a href="#type-message_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.content" class="anchored"><td class="def field"><a href="#type-message_update.content" class="anchor"></a><code>content : string option;</code></td></tr><tr id="type-message_update.timestamp" class="anchored"><td class="def field"><a href="#type-message_update.timestamp" class="anchor"></a><code>timestamp : string option;</code></td></tr><tr id="type-message_update.editedimestamp" class="anchored"><td class="def field"><a href="#type-message_update.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-message_update.tts" class="anchored"><td class="def field"><a href="#type-message_update.tts" class="anchor"></a><code>tts : bool option;</code></td></tr><tr id="type-message_update.mention_everyone" class="anchored"><td class="def field"><a href="#type-message_update.mention_everyone" class="anchor"></a><code>mention_everyone : bool option;</code></td></tr><tr id="type-message_update.mentions" class="anchored"><td class="def field"><a href="#type-message_update.mentions" class="anchor"></a><code>mentions : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.role_mentions" class="anchored"><td class="def field"><a href="#type-message_update.role_mentions" class="anchor"></a><code>role_mentions : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.attachments" class="anchored"><td class="def field"><a href="#type-message_update.attachments" class="anchor"></a><code>attachments : <a href="../Disml/Attachment/index.html#type-t">Disml.Attachment.t</a> list;</code></td></tr><tr id="type-message_update.embeds" class="anchored"><td class="def field"><a href="#type-message_update.embeds" class="anchor"></a><code>embeds : <a href="../Disml/Embed/index.html#type-t">Disml.Embed.t</a> list;</code></td></tr><tr id="type-message_update.reactions" class="anchored"><td class="def field"><a href="#type-message_update.reactions" class="anchor"></a><code>reactions : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-message_update.nonce" class="anchored"><td class="def field"><a href="#type-message_update.nonce" class="anchor"></a><code>nonce : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.pinned" class="anchored"><td class="def field"><a href="#type-message_update.pinned" class="anchor"></a><code>pinned : bool option;</code></td></tr><tr id="type-message_update.webhook_id" class="anchored"><td class="def field"><a href="#type-message_update.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-message_update.kind" class="anchored"><td class="def field"><a href="#type-message_update.kind" class="anchor"></a><code>kind : int option;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-message_update_of_sexp"><a href="#val-message_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>message_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-message_update">message_update</a></code></dt><dt class="spec value" id="val-sexp_of_message_update"><a href="#val-sexp_of_message_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_message_update : <a href="index.html#type-message_update">message_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-message_update_to_yojson"><a href="#val-message_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>message_update_to_yojson : <a href="index.html#type-message_update">message_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-message_update_of_yojson"><a href="#val-message_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>message_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-message_update">message_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-message_update_of_yojson_exn"><a href="#val-message_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>message_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-message_update">message_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../Disml/User_t/index.html#type-t">Disml.User_t.t</a>;</code></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../Disml/Member_t/index.html#type-partial_member">Disml.Member_t.partial_member</a> option;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string;</code></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string;</code></td></tr><tr id="type-t.editedimestamp" class="anchored"><td class="def field"><a href="#type-t.editedimestamp" class="anchor"></a><code>editedimestamp : string option;</code></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool;</code></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool;</code></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../Disml/Attachment/index.html#type-t">Disml.Attachment.t</a> list;</code></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../Disml/Embed/index.html#type-t">Disml.Embed.t</a> list;</code></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool;</code></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Message_t (disml.Disml__Message_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Message_t</nav><h1>Module <code>Disml__Message_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td><td class="doc"><p>Snowflake ID of the message.</p></td></tr><tr id="type-t.author" class="anchored"><td class="def field"><a href="#type-t.author" class="anchor"></a><code>author : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a>;</code></td><td class="doc"><p>User that authored the message.</p></td></tr><tr id="type-t.channel_id" class="anchored"><td class="def field"><a href="#type-t.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td><td class="doc"><p>Channel ID the message exists in.</p></td></tr><tr id="type-t.member" class="anchored"><td class="def field"><a href="#type-t.member" class="anchor"></a><code>member : <a href="../Disml__/Member_t/index.html#type-partial_member">Disml__.Member_t.partial_member</a> option;</code></td><td class="doc"><p>A partial member if the message was sent in a guild.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td><td class="doc"><p>Guild ID if the message was sent in a guild.</p></td></tr><tr id="type-t.content" class="anchored"><td class="def field"><a href="#type-t.content" class="anchor"></a><code>content : string;</code></td><td class="doc"><p>Content of the message.</p></td></tr><tr id="type-t.timestamp" class="anchored"><td class="def field"><a href="#type-t.timestamp" class="anchor"></a><code>timestamp : string;</code></td><td class="doc"><p>ISO8601 timestamp of when the message was created.</p></td></tr><tr id="type-t.edited_timestamp" class="anchored"><td class="def field"><a href="#type-t.edited_timestamp" class="anchor"></a><code>edited_timestamp : string option;</code></td><td class="doc"><p>Like timestamp, but for last edit, if any.</p></td></tr><tr id="type-t.tts" class="anchored"><td class="def field"><a href="#type-t.tts" class="anchor"></a><code>tts : bool;</code></td><td class="doc"><p>Whether the message used text-to-speech.</p></td></tr><tr id="type-t.mention_everyone" class="anchored"><td class="def field"><a href="#type-t.mention_everyone" class="anchor"></a><code>mention_everyone : bool;</code></td><td class="doc"><p>Whether the message mentioned <code>@everyone</code> or <code>@here</code></p></td></tr><tr id="type-t.mentions" class="anchored"><td class="def field"><a href="#type-t.mentions" class="anchor"></a><code>mentions : <a href="../Disml__/User_t/index.html#type-t">Disml__.User_t.t</a> list;</code></td><td class="doc"><p>A List of users that were mentioned in the message.</p></td></tr><tr id="type-t.mention_roles" class="anchored"><td class="def field"><a href="#type-t.mention_roles" class="anchor"></a><code>mention_roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>A list of roles that were mentioned in the message.</p></td></tr><tr id="type-t.attachments" class="anchored"><td class="def field"><a href="#type-t.attachments" class="anchor"></a><code>attachments : <a href="../Disml__/Attachment/index.html#type-t">Disml__.Attachment.t</a> list;</code></td><td class="doc"><p>A list of attachments.</p></td></tr><tr id="type-t.embeds" class="anchored"><td class="def field"><a href="#type-t.embeds" class="anchor"></a><code>embeds : <a href="../Disml__/Embed/index.html#type-t">Disml__.Embed.t</a> list;</code></td><td class="doc"><p>A List of embeds on the message.</p></td></tr><tr id="type-t.reactions" class="anchored"><td class="def field"><a href="#type-t.reactions" class="anchor"></a><code>reactions : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> list;</code></td><td class="doc"><p>A list of reactions.</p></td></tr><tr id="type-t.nonce" class="anchored"><td class="def field"><a href="#type-t.nonce" class="anchor"></a><code>nonce : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>Used in verification, safe to ignore.</p></td></tr><tr id="type-t.pinned" class="anchored"><td class="def field"><a href="#type-t.pinned" class="anchor"></a><code>pinned : bool;</code></td><td class="doc"><p>Whether the message is pinned.</p></td></tr><tr id="type-t.webhook_id" class="anchored"><td class="def field"><a href="#type-t.webhook_id" class="anchor"></a><code>webhook_id : <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> option;</code></td><td class="doc"><p>The webhook ID, if the message was sent by a webhook.</p></td></tr><tr id="type-t.kind" class="anchored"><td class="def field"><a href="#type-t.kind" class="anchor"></a><code>kind : int;</code></td><td class="doc"><p>See <a href="https://discordapp.com/developers/docs/resources/channel#message-object-message-types">the discord docs</a> for message type enumeration.</p></td></tr></table><code>}</code></dt><dd><p>Represents a message object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Presence/index.html b/docs/disml/Disml__Presence/index.html index 76e643b..a6f04ca 100644 --- a/docs/disml/Disml__Presence/index.html +++ b/docs/disml/Disml__Presence/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Presence (disml.Disml__Presence)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Presence</nav><h1>Module <code>Disml__Presence</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml/User_t/index.html#type-partial_user">Disml.User_t.partial_user</a>;</code></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> list;</code></td></tr><tr id="type-t.game" class="anchored"><td class="def field"><a href="#type-t.game" class="anchor"></a><code>game : <a href="../Disml/Activity/index.html#type-t">Disml.Activity.t</a> option;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.status" class="anchored"><td class="def field"><a href="#type-t.status" class="anchor"></a><code>status : string;</code></td></tr><tr id="type-t.activities" class="anchored"><td class="def field"><a href="#type-t.activities" class="anchor"></a><code>activities : <a href="../Disml/Activity/index.html#type-t">Disml.Activity.t</a> list;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Presence (disml.Disml__Presence)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Presence</nav><h1>Module <code>Disml__Presence</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.user" class="anchored"><td class="def field"><a href="#type-t.user" class="anchor"></a><code>user : <a href="../Disml__/User_t/index.html#type-partial_user">Disml__.User_t.partial_user</a>;</code></td><td class="doc"><p>A partial user that this presence belongs to.</p></td></tr><tr id="type-t.roles" class="anchored"><td class="def field"><a href="#type-t.roles" class="anchor"></a><code>roles : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a> list;</code></td><td class="doc"><p>A list of roles that the user has.</p></td></tr><tr id="type-t.game" class="anchored"><td class="def field"><a href="#type-t.game" class="anchor"></a><code>game : <a href="../Disml__/Activity/index.html#type-t">Disml__.Activity.t</a> option;</code></td><td class="doc"><p>The current activity of the user, if any.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID in which this presence exists.</p></td></tr><tr id="type-t.status" class="anchored"><td class="def field"><a href="#type-t.status" class="anchor"></a><code>status : string;</code></td><td class="doc"><p>One of <code>online</code>, <code>idle</code>, <code>offline</code>, or <code>dnd</code>.</p></td></tr><tr id="type-t.activities" class="anchored"><td class="def field"><a href="#type-t.activities" class="anchor"></a><code>activities : <a href="../Disml__/Activity/index.html#type-t">Disml__.Activity.t</a> list;</code></td><td class="doc"><p>A list of all of the user's current activities.</p></td></tr></table><code>}</code></dt><dd><p>A user presence.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Reaction/index.html b/docs/disml/Disml__Reaction/index.html index 22832de..3293c96 100644 --- a/docs/disml/Disml__Reaction/index.html +++ b/docs/disml/Disml__Reaction/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Reaction (disml.Disml__Reaction)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Reaction</nav><h1>Module <code>Disml__Reaction</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-Reaction_t">Disml.Reaction_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-reaction_event"><a href="#type-reaction_event" class="anchor"></a><code><span class="keyword">type </span>reaction_event</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-reaction_event.user_id" class="anchored"><td class="def field"><a href="#type-reaction_event.user_id" class="anchor"></a><code>user_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.channel_id" class="anchored"><td class="def field"><a href="#type-reaction_event.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.message_id" class="anchored"><td class="def field"><a href="#type-reaction_event.message_id" class="anchor"></a><code>message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.guild_id" class="anchored"><td class="def field"><a href="#type-reaction_event.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-reaction_event.emoji" class="anchored"><td class="def field"><a href="#type-reaction_event.emoji" class="anchor"></a><code>emoji : <a href="../Disml/Emoji/index.html#type-partial_emoji">Disml.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-reaction_event_of_sexp"><a href="#val-reaction_event_of_sexp" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt><dt class="spec value" id="val-sexp_of_reaction_event"><a href="#val-sexp_of_reaction_event" class="anchor"></a><code><span class="keyword">val </span>sexp_of_reaction_event : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-reaction_event_to_yojson"><a href="#val-reaction_event_to_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_to_yojson : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-reaction_event_of_yojson"><a href="#val-reaction_event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-reaction_event_of_yojson_exn"><a href="#val-reaction_event_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.count" class="anchored"><td class="def field"><a href="#type-t.count" class="anchor"></a><code>count : int;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Reaction (disml.Disml__Reaction)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Reaction</nav><h1>Module <code>Disml__Reaction</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Reaction_t">Disml__.Reaction_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-reaction_event"><a href="#type-reaction_event" class="anchor"></a><code><span class="keyword">type </span>reaction_event</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-reaction_event.user_id" class="anchored"><td class="def field"><a href="#type-reaction_event.user_id" class="anchor"></a><code>user_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-reaction_event.channel_id" class="anchored"><td class="def field"><a href="#type-reaction_event.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-reaction_event.message_id" class="anchored"><td class="def field"><a href="#type-reaction_event.message_id" class="anchor"></a><code>message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-reaction_event.guild_id" class="anchored"><td class="def field"><a href="#type-reaction_event.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-reaction_event.emoji" class="anchored"><td class="def field"><a href="#type-reaction_event.emoji" class="anchor"></a><code>emoji : <a href="../Disml__/Emoji/index.html#type-partial_emoji">Disml__.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt><dd><p>Represents a single reaction as received over the gateway.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-reaction_event_of_sexp"><a href="#val-reaction_event_of_sexp" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt><dt class="spec value" id="val-sexp_of_reaction_event"><a href="#val-sexp_of_reaction_event" class="anchor"></a><code><span class="keyword">val </span>sexp_of_reaction_event : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-reaction_event_to_yojson"><a href="#val-reaction_event_to_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_to_yojson : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-reaction_event_of_yojson"><a href="#val-reaction_event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-reaction_event_of_yojson_exn"><a href="#val-reaction_event_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.count" class="anchored"><td class="def field"><a href="#type-t.count" class="anchor"></a><code>count : int;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>Represents a number of emojis used as a reaction on a message.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Reaction_t/index.html b/docs/disml/Disml__Reaction_t/index.html index f3a9571..5dd4c84 100644 --- a/docs/disml/Disml__Reaction_t/index.html +++ b/docs/disml/Disml__Reaction_t/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Reaction_t (disml.Disml__Reaction_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Reaction_t</nav><h1>Module <code>Disml__Reaction_t</code></h1></header><dl><dt class="spec type" id="type-reaction_event"><a href="#type-reaction_event" class="anchor"></a><code><span class="keyword">type </span>reaction_event</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-reaction_event.user_id" class="anchored"><td class="def field"><a href="#type-reaction_event.user_id" class="anchor"></a><code>user_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.channel_id" class="anchored"><td class="def field"><a href="#type-reaction_event.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.message_id" class="anchored"><td class="def field"><a href="#type-reaction_event.message_id" class="anchor"></a><code>message_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-reaction_event.guild_id" class="anchored"><td class="def field"><a href="#type-reaction_event.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> option;</code></td></tr><tr id="type-reaction_event.emoji" class="anchored"><td class="def field"><a href="#type-reaction_event.emoji" class="anchor"></a><code>emoji : <a href="../Disml/Emoji/index.html#type-partial_emoji">Disml.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-reaction_event_of_sexp"><a href="#val-reaction_event_of_sexp" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt><dt class="spec value" id="val-sexp_of_reaction_event"><a href="#val-sexp_of_reaction_event" class="anchor"></a><code><span class="keyword">val </span>sexp_of_reaction_event : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-reaction_event_to_yojson"><a href="#val-reaction_event_to_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_to_yojson : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-reaction_event_of_yojson"><a href="#val-reaction_event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-reaction_event_of_yojson_exn"><a href="#val-reaction_event_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.count" class="anchored"><td class="def field"><a href="#type-t.count" class="anchor"></a><code>count : int;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../Disml/Emoji/index.html#type-t">Disml.Emoji.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Reaction_t (disml.Disml__Reaction_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Reaction_t</nav><h1>Module <code>Disml__Reaction_t</code></h1></header><dl><dt class="spec type" id="type-reaction_event"><a href="#type-reaction_event" class="anchor"></a><code><span class="keyword">type </span>reaction_event</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-reaction_event.user_id" class="anchored"><td class="def field"><a href="#type-reaction_event.user_id" class="anchor"></a><code>user_id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr><tr id="type-reaction_event.channel_id" class="anchored"><td class="def field"><a href="#type-reaction_event.channel_id" class="anchor"></a><code>channel_id : <a href="../Disml__/Channel_id_t/index.html#type-t">Disml__.Channel_id_t.t</a>;</code></td></tr><tr id="type-reaction_event.message_id" class="anchored"><td class="def field"><a href="#type-reaction_event.message_id" class="anchor"></a><code>message_id : <a href="../Disml__/Message_id/index.html#type-t">Disml__.Message_id.t</a>;</code></td></tr><tr id="type-reaction_event.guild_id" class="anchored"><td class="def field"><a href="#type-reaction_event.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a> option;</code></td></tr><tr id="type-reaction_event.emoji" class="anchored"><td class="def field"><a href="#type-reaction_event.emoji" class="anchor"></a><code>emoji : <a href="../Disml__/Emoji/index.html#type-partial_emoji">Disml__.Emoji.partial_emoji</a>;</code></td></tr></table><code>}</code></dt><dd><p>Represents a single reaction as received over the gateway.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-reaction_event_of_sexp"><a href="#val-reaction_event_of_sexp" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt><dt class="spec value" id="val-sexp_of_reaction_event"><a href="#val-sexp_of_reaction_event" class="anchor"></a><code><span class="keyword">val </span>sexp_of_reaction_event : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-reaction_event_to_yojson"><a href="#val-reaction_event_to_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_to_yojson : <a href="index.html#type-reaction_event">reaction_event</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-reaction_event_of_yojson"><a href="#val-reaction_event_of_yojson" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-reaction_event_of_yojson_exn"><a href="#val-reaction_event_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>reaction_event_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-reaction_event">reaction_event</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.count" class="anchored"><td class="def field"><a href="#type-t.count" class="anchor"></a><code>count : int;</code></td></tr><tr id="type-t.emoji" class="anchored"><td class="def field"><a href="#type-t.emoji" class="anchor"></a><code>emoji : <a href="../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>Represents a number of emojis used as a reaction on a message.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Role/index.html b/docs/disml/Disml__Role/index.html index 3a02aac..5c25b15 100644 --- a/docs/disml/Disml__Role/index.html +++ b/docs/disml/Disml__Role/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Role (disml.Disml__Role)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Role</nav><h1>Module <code>Disml__Role</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-Role_t">Disml.Role_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-role"><a href="#type-role" class="anchor"></a><code><span class="keyword">type </span>role</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role.id" class="anchored"><td class="def field"><a href="#type-role.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-role.name" class="anchored"><td class="def field"><a href="#type-role.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-role.colour" class="anchored"><td class="def field"><a href="#type-role.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-role.hoist" class="anchored"><td class="def field"><a href="#type-role.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-role.position" class="anchored"><td class="def field"><a href="#type-role.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-role.permissions" class="anchored"><td class="def field"><a href="#type-role.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-role.managed" class="anchored"><td class="def field"><a href="#type-role.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-role.mentionable" class="anchored"><td class="def field"><a href="#type-role.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_of_sexp"><a href="#val-role_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role">role</a></code></dt><dt class="spec value" id="val-sexp_of_role"><a href="#val-sexp_of_role" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role : <a href="index.html#type-role">role</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_to_yojson"><a href="#val-role_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_to_yojson : <a href="index.html#type-role">role</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_of_yojson"><a href="#val-role_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_of_yojson_exn"><a href="#val-role_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a></code></dt></dl><dl><dt class="spec type" id="type-role_update"><a href="#type-role_update" class="anchor"></a><code><span class="keyword">type </span>role_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role_update.role" class="anchored"><td class="def field"><a href="#type-role_update.role" class="anchor"></a><code>role : <a href="index.html#type-role">role</a>;</code></td></tr><tr id="type-role_update.guild_id" class="anchored"><td class="def field"><a href="#type-role_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_update_of_sexp"><a href="#val-role_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role_update">role_update</a></code></dt><dt class="spec value" id="val-sexp_of_role_update"><a href="#val-sexp_of_role_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role_update : <a href="index.html#type-role_update">role_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_update_to_yojson"><a href="#val-role_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_update_to_yojson : <a href="index.html#type-role_update">role_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_update_of_yojson"><a href="#val-role_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role_update">role_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_update_of_yojson_exn"><a href="#val-role_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role_update">role_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-t.hoist" class="anchored"><td class="def field"><a href="#type-t.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-t.position" class="anchored"><td class="def field"><a href="#type-t.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-t.permissions" class="anchored"><td class="def field"><a href="#type-t.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-t.mentionable" class="anchored"><td class="def field"><a href="#type-t.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-role">role</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-allow_mention"><a href="#val-allow_mention" class="anchor"></a><code><span class="keyword">val </span>allow_mention : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-disallow_mention"><a href="#val-disallow_mention" class="anchor"></a><code><span class="keyword">val </span>disallow_mention : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-hoist"><a href="#val-hoist" class="anchor"></a><code><span class="keyword">val </span>hoist : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_colour"><a href="#val-set_colour" class="anchor"></a><code><span class="keyword">val </span>set_colour : colour:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unhoist"><a href="#val-unhoist" class="anchor"></a><code><span class="keyword">val </span>unhoist : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Role (disml.Disml__Role)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Role</nav><h1>Module <code>Disml__Role</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-Role_t">Disml__.Role_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-role"><a href="#type-role" class="anchor"></a><code><span class="keyword">type </span>role</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role.id" class="anchored"><td class="def field"><a href="#type-role.id" class="anchor"></a><code>id : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td></tr><tr id="type-role.name" class="anchored"><td class="def field"><a href="#type-role.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-role.colour" class="anchored"><td class="def field"><a href="#type-role.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-role.hoist" class="anchored"><td class="def field"><a href="#type-role.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-role.position" class="anchored"><td class="def field"><a href="#type-role.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-role.permissions" class="anchored"><td class="def field"><a href="#type-role.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-role.managed" class="anchored"><td class="def field"><a href="#type-role.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-role.mentionable" class="anchored"><td class="def field"><a href="#type-role.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr></table><code>}</code></dt><dd><p>A role as Discord sends it. Only difference between this and <a href="index.html#type-t"><code>t</code></a> is the lack of the guild_id field.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_of_sexp"><a href="#val-role_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role">role</a></code></dt><dt class="spec value" id="val-sexp_of_role"><a href="#val-sexp_of_role" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role : <a href="index.html#type-role">role</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_to_yojson"><a href="#val-role_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_to_yojson : <a href="index.html#type-role">role</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_of_yojson"><a href="#val-role_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_of_yojson_exn"><a href="#val-role_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td><td class="doc"><p>The role's snowflake ID.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The role's name.</p></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int;</code></td><td class="doc"><p>The integer representation of the role colour.</p></td></tr><tr id="type-t.hoist" class="anchored"><td class="def field"><a href="#type-t.hoist" class="anchor"></a><code>hoist : bool;</code></td><td class="doc"><p>Whether the role is hoisted. This property controls whether the role is separated on the sidebar.</p></td></tr><tr id="type-t.position" class="anchored"><td class="def field"><a href="#type-t.position" class="anchor"></a><code>position : int;</code></td><td class="doc"><p>The position of the role. <code>@everyone</code> begins the list at 0.</p></td></tr><tr id="type-t.permissions" class="anchored"><td class="def field"><a href="#type-t.permissions" class="anchor"></a><code>permissions : int;</code></td><td class="doc"><p>The integer representation of the permissions the role has.</p></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td><td class="doc"><p>Whether the guild is managed by an integration.</p></td></tr><tr id="type-t.mentionable" class="anchored"><td class="def field"><a href="#type-t.mentionable" class="anchor"></a><code>mentionable : bool;</code></td><td class="doc"><p>Whether the role can be mentioned.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID this role belongs to.</p></td></tr></table><code>}</code></dt><dd><p>A role object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-role">role</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Convenience method to produce <a href="index.html#type-t"><code>t</code></a> from <a href="index.html#type-role"><code>role</code></a> and a snowflake.</p></dd></dl></details></div></div></div><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dd><p>Deletes the role. This is permanent.</p></dd></dl><dl><dt class="spec value" id="val-allow_mention"><a href="#val-allow_mention" class="anchor"></a><code><span class="keyword">val </span>allow_mention : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Edits the role to allow mentions.</p></dd></dl><dl><dt class="spec value" id="val-disallow_mention"><a href="#val-disallow_mention" class="anchor"></a><code><span class="keyword">val </span>disallow_mention : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Opposite of <a href="index.html#val-allow_mention"><code>allow_mention</code></a></p></dd></dl><dl><dt class="spec value" id="val-hoist"><a href="#val-hoist" class="anchor"></a><code><span class="keyword">val </span>hoist : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Hoists the role. See <span class="xref-unresolved" title="unresolved reference to "Role.t.hoist""><span class="xref-unresolved" title="unresolved reference to "Role.t""><code>Role</code>.t</span>.hoist</span>.</p></dd></dl><dl><dt class="spec value" id="val-unhoist"><a href="#val-unhoist" class="anchor"></a><code><span class="keyword">val </span>unhoist : <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Opposite of <a href="index.html#type-role.hoist"><code>hoist</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-set_colour"><a href="#val-set_colour" class="anchor"></a><code><span class="keyword">val </span>set_colour : colour:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Sets the colour of the role.</p></dd></dl><dl><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Sets the name of the role.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Role_id/.dune-keep b/docs/disml/Disml__Role_id/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__Role_id/.dune-keep diff --git a/docs/disml/Disml__Role_id/index.html b/docs/disml/Disml__Role_id/index.html new file mode 100644 index 0000000..c7d25c0 --- /dev/null +++ b/docs/disml/Disml__Role_id/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Role_id (disml.Disml__Role_id)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Role_id</nav><h1>Module <code>Disml__Role_id</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.Role_id" class="anchored"><td class="def constructor"><a href="#type-t.Role_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`Role_id<span class="keyword"> of </span><a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Role_t/index.html b/docs/disml/Disml__Role_t/index.html index 927e302..23ce4a9 100644 --- a/docs/disml/Disml__Role_t/index.html +++ b/docs/disml/Disml__Role_t/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Role_t (disml.Disml__Role_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Role_t</nav><h1>Module <code>Disml__Role_t</code></h1></header><dl><dt class="spec type" id="type-role"><a href="#type-role" class="anchor"></a><code><span class="keyword">type </span>role</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role.id" class="anchored"><td class="def field"><a href="#type-role.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-role.name" class="anchored"><td class="def field"><a href="#type-role.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-role.colour" class="anchored"><td class="def field"><a href="#type-role.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-role.hoist" class="anchored"><td class="def field"><a href="#type-role.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-role.position" class="anchored"><td class="def field"><a href="#type-role.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-role.permissions" class="anchored"><td class="def field"><a href="#type-role.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-role.managed" class="anchored"><td class="def field"><a href="#type-role.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-role.mentionable" class="anchored"><td class="def field"><a href="#type-role.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_of_sexp"><a href="#val-role_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role">role</a></code></dt><dt class="spec value" id="val-sexp_of_role"><a href="#val-sexp_of_role" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role : <a href="index.html#type-role">role</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_to_yojson"><a href="#val-role_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_to_yojson : <a href="index.html#type-role">role</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_of_yojson"><a href="#val-role_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_of_yojson_exn"><a href="#val-role_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a></code></dt></dl><dl><dt class="spec type" id="type-role_update"><a href="#type-role_update" class="anchor"></a><code><span class="keyword">type </span>role_update</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role_update.role" class="anchored"><td class="def field"><a href="#type-role_update.role" class="anchor"></a><code>role : <a href="index.html#type-role">role</a>;</code></td></tr><tr id="type-role_update.guild_id" class="anchored"><td class="def field"><a href="#type-role_update.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_update_of_sexp"><a href="#val-role_update_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_update_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role_update">role_update</a></code></dt><dt class="spec value" id="val-sexp_of_role_update"><a href="#val-sexp_of_role_update" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role_update : <a href="index.html#type-role_update">role_update</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_update_to_yojson"><a href="#val-role_update_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_update_to_yojson : <a href="index.html#type-role_update">role_update</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_update_of_yojson"><a href="#val-role_update_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_update_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role_update">role_update</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_update_of_yojson_exn"><a href="#val-role_update_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_update_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role_update">role_update</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-t.hoist" class="anchored"><td class="def field"><a href="#type-t.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-t.position" class="anchored"><td class="def field"><a href="#type-t.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-t.permissions" class="anchored"><td class="def field"><a href="#type-t.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-t.mentionable" class="anchored"><td class="def field"><a href="#type-t.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-role">role</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Role_t (disml.Disml__Role_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Role_t</nav><h1>Module <code>Disml__Role_t</code></h1></header><dl><dt class="spec type" id="type-role"><a href="#type-role" class="anchor"></a><code><span class="keyword">type </span>role</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-role.id" class="anchored"><td class="def field"><a href="#type-role.id" class="anchor"></a><code>id : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td></tr><tr id="type-role.name" class="anchored"><td class="def field"><a href="#type-role.name" class="anchor"></a><code>name : string;</code></td></tr><tr id="type-role.colour" class="anchored"><td class="def field"><a href="#type-role.colour" class="anchor"></a><code>colour : int;</code></td></tr><tr id="type-role.hoist" class="anchored"><td class="def field"><a href="#type-role.hoist" class="anchor"></a><code>hoist : bool;</code></td></tr><tr id="type-role.position" class="anchored"><td class="def field"><a href="#type-role.position" class="anchor"></a><code>position : int;</code></td></tr><tr id="type-role.permissions" class="anchored"><td class="def field"><a href="#type-role.permissions" class="anchor"></a><code>permissions : int;</code></td></tr><tr id="type-role.managed" class="anchored"><td class="def field"><a href="#type-role.managed" class="anchor"></a><code>managed : bool;</code></td></tr><tr id="type-role.mentionable" class="anchored"><td class="def field"><a href="#type-role.mentionable" class="anchor"></a><code>mentionable : bool;</code></td></tr></table><code>}</code></dt><dd><p>A role as Discord sends it. Only difference between this and <a href="index.html#type-t"><code>t</code></a> is the lack of the guild_id field.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-role_of_sexp"><a href="#val-role_of_sexp" class="anchor"></a><code><span class="keyword">val </span>role_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-role">role</a></code></dt><dt class="spec value" id="val-sexp_of_role"><a href="#val-sexp_of_role" class="anchor"></a><code><span class="keyword">val </span>sexp_of_role : <a href="index.html#type-role">role</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-role_to_yojson"><a href="#val-role_to_yojson" class="anchor"></a><code><span class="keyword">val </span>role_to_yojson : <a href="index.html#type-role">role</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-role_of_yojson"><a href="#val-role_of_yojson" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-role_of_yojson_exn"><a href="#val-role_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>role_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-role">role</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/Role_id/index.html#type-t">Disml__.Role_id.t</a>;</code></td><td class="doc"><p>The role's snowflake ID.</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>The role's name.</p></td></tr><tr id="type-t.colour" class="anchored"><td class="def field"><a href="#type-t.colour" class="anchor"></a><code>colour : int;</code></td><td class="doc"><p>The integer representation of the role colour.</p></td></tr><tr id="type-t.hoist" class="anchored"><td class="def field"><a href="#type-t.hoist" class="anchor"></a><code>hoist : bool;</code></td><td class="doc"><p>Whether the role is hoisted. This property controls whether the role is separated on the sidebar.</p></td></tr><tr id="type-t.position" class="anchored"><td class="def field"><a href="#type-t.position" class="anchor"></a><code>position : int;</code></td><td class="doc"><p>The position of the role. <code>@everyone</code> begins the list at 0.</p></td></tr><tr id="type-t.permissions" class="anchored"><td class="def field"><a href="#type-t.permissions" class="anchor"></a><code>permissions : int;</code></td><td class="doc"><p>The integer representation of the permissions the role has.</p></td></tr><tr id="type-t.managed" class="anchored"><td class="def field"><a href="#type-t.managed" class="anchor"></a><code>managed : bool;</code></td><td class="doc"><p>Whether the guild is managed by an integration.</p></td></tr><tr id="type-t.mentionable" class="anchored"><td class="def field"><a href="#type-t.mentionable" class="anchor"></a><code>mentionable : bool;</code></td><td class="doc"><p>Whether the role can be mentioned.</p></td></tr><tr id="type-t.guild_id" class="anchored"><td class="def field"><a href="#type-t.guild_id" class="anchor"></a><code>guild_id : <a href="../Disml__/Guild_id_t/index.html#type-t">Disml__.Guild_id_t.t</a>;</code></td><td class="doc"><p>The guild ID this role belongs to.</p></td></tr></table><code>}</code></dt><dd><p>A role object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-wrap"><a href="#val-wrap" class="anchor"></a><code><span class="keyword">val </span>wrap : guild_id:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-role">role</a> <span>-></span> <a href="index.html#type-t">t</a></code></dt><dd><p>Convenience method to produce <a href="index.html#type-t"><code>t</code></a> from <a href="index.html#type-role"><code>role</code></a> and a snowflake.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__S/.dune-keep b/docs/disml/Disml__S/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__S/.dune-keep diff --git a/docs/disml/Disml__S/index.html b/docs/disml/Disml__S/index.html new file mode 100644 index 0000000..777355f --- /dev/null +++ b/docs/disml/Disml__S/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__S (disml.Disml__S)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__S</nav><h1>Module <code>Disml__S</code></h1></header><div class="spec module-type" id="module-type-HasSnowflake"><a href="#module-type-HasSnowflake" class="anchor"></a><code><span class="keyword">module type </span><a href="module-type-HasSnowflake/index.html">HasSnowflake</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module-type" id="module-type-ChannelImpl"><a href="#module-type-ChannelImpl" class="anchor"></a><code><span class="keyword">module type </span><a href="module-type-ChannelImpl/index.html">ChannelImpl</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module-type" id="module-type-GuildImpl"><a href="#module-type-GuildImpl" class="anchor"></a><code><span class="keyword">module type </span><a href="module-type-GuildImpl/index.html">GuildImpl</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><div class="spec module-type" id="module-type-UserImpl"><a href="#module-type-UserImpl" class="anchor"></a><code><span class="keyword">module type </span><a href="module-type-UserImpl/index.html">UserImpl</a> = <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__S/module-type-ChannelImpl/index.html b/docs/disml/Disml__S/module-type-ChannelImpl/index.html new file mode 100644 index 0000000..85825cc --- /dev/null +++ b/docs/disml/Disml__S/module-type-ChannelImpl/index.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>ChannelImpl (disml.Disml__S.ChannelImpl)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__S</a> » ChannelImpl</nav><h1>Module type <code>Disml__S.ChannelImpl</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec exception" id="exception-Invalid_message"><a href="#exception-Invalid_message" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_message</span></code></dt><dt class="spec exception" id="exception-No_message_found"><a href="#exception-No_message_found" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">No_message_found</span></code></dt></dl><dl><dt class="spec value" id="val-send_message"><a href="#val-send_message" class="anchor"></a><code><span class="keyword">val </span>send_message : ?⁠embed:<a href="../../Disml__/Embed/index.html#type-t">Disml__.Embed.t</a> <span>-></span> ?⁠content:string <span>-></span> ?⁠file:string <span>-></span> ?⁠tts:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p>Advanced message sending.</p><p>Raises <a href="index.html#exception-Invalid_message"><code>Invalid_message</code></a> if one of content or embed is not set.</p><h3 id="examples"><a href="#examples" class="anchor"></a>Examples</h3><pre><code class="ml"> open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!hello" msg.content then
+ let embed = Embed.(default |> title "Hello World!") in
+ Channel_id.send_message ~embed msg.channel_id >>> ignore
+
+ Client.message_create := check_command</code></pre></dd></dl><dl><dt class="spec value" id="val-say"><a href="#val-say" class="anchor"></a><code><span class="keyword">val </span>say : string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dd><p><code>say str ch</code> is equivalent to <code>send_message ~content:str ch</code>.</p></dd></dl><dl><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_message"><a href="#val-get_message" class="anchor"></a><code><span class="keyword">val </span>get_message : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_messages"><a href="#val-get_messages" class="anchor"></a><code><span class="keyword">val </span>get_messages : ?⁠mode:[ `Before<span class="keyword"> | </span>`After<span class="keyword"> | </span>`Around ] <span>-></span> ?⁠id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠limit:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-broadcast_typing"><a href="#val-broadcast_typing" class="anchor"></a><code><span class="keyword">val </span>broadcast_typing : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_pins"><a href="#val-get_pins" class="anchor"></a><code><span class="keyword">val </span>get_pins : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Message_t/index.html#type-t">Disml__.Message_t.t</a> list Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__S/module-type-GuildImpl/index.html b/docs/disml/Disml__S/module-type-GuildImpl/index.html new file mode 100644 index 0000000..054d8eb --- /dev/null +++ b/docs/disml/Disml__S/module-type-GuildImpl/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GuildImpl (disml.Disml__S.GuildImpl)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__S</a> » GuildImpl</nav><h1>Module type <code>Disml__S.GuildImpl</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-ban_user"><a href="#val-ban_user" class="anchor"></a><code><span class="keyword">val </span>ban_user : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> ?⁠days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_emoji"><a href="#val-create_emoji" class="anchor"></a><code><span class="keyword">val </span>create_emoji : name:string <span>-></span> image:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_role"><a href="#val-create_role" class="anchor"></a><code><span class="keyword">val </span>create_role : name:string <span>-></span> ?⁠colour:int <span>-></span> ?⁠permissions:int <span>-></span> ?⁠hoist:bool <span>-></span> ?⁠mentionable:bool <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Role_t/index.html#type-t">Disml__.Role_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-create_channel"><a href="#val-create_channel" class="anchor"></a><code><span class="keyword">val </span>create_channel : mode:[ `Text<span class="keyword"> | </span>`Voice<span class="keyword"> | </span>`Category ] <span>-></span> name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Channel_t/index.html#type-t">Disml__.Channel_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-delete"><a href="#val-delete" class="anchor"></a><code><span class="keyword">val </span>delete : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_ban"><a href="#val-get_ban" class="anchor"></a><code><span class="keyword">val </span>get_ban : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Ban_t/index.html#type-t">Disml__.Ban_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_bans"><a href="#val-get_bans" class="anchor"></a><code><span class="keyword">val </span>get_bans : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Ban_t/index.html#type-t">Disml__.Ban_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_emoji"><a href="#val-get_emoji" class="anchor"></a><code><span class="keyword">val </span>get_emoji : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Emoji/index.html#type-t">Disml__.Emoji.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_invites"><a href="#val-get_invites" class="anchor"></a><code><span class="keyword">val </span>get_invites : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_prune_count"><a href="#val-get_prune_count" class="anchor"></a><code><span class="keyword">val </span>get_prune_count : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-get_webhooks"><a href="#val-get_webhooks" class="anchor"></a><code><span class="keyword">val </span>get_webhooks : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-kick_user"><a href="#val-kick_user" class="anchor"></a><code><span class="keyword">val </span>kick_user : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-leave"><a href="#val-leave" class="anchor"></a><code><span class="keyword">val </span>leave : <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-list_voice_regions"><a href="#val-list_voice_regions" class="anchor"></a><code><span class="keyword">val </span>list_voice_regions : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-prune"><a href="#val-prune" class="anchor"></a><code><span class="keyword">val </span>prune : days:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> int Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-request_members"><a href="#val-request_members" class="anchor"></a><code><span class="keyword">val </span>request_members : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Member_t/index.html#type-t">Disml__.Member_t.t</a> list Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_channel"><a href="#val-set_afk_channel" class="anchor"></a><code><span class="keyword">val </span>set_afk_channel : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_afk_timeout"><a href="#val-set_afk_timeout" class="anchor"></a><code><span class="keyword">val </span>set_afk_timeout : timeout:int <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_name"><a href="#val-set_name" class="anchor"></a><code><span class="keyword">val </span>set_name : name:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-set_icon"><a href="#val-set_icon" class="anchor"></a><code><span class="keyword">val </span>set_icon : icon:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Guild_t/index.html#type-t">Disml__.Guild_t.t</a> Async.Deferred.Or_error.t</code></dt><dt class="spec value" id="val-unban_user"><a href="#val-unban_user" class="anchor"></a><code><span class="keyword">val </span>unban_user : id:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> ?⁠reason:string <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> unit Async.Deferred.Or_error.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__S/module-type-HasSnowflake/index.html b/docs/disml/Disml__S/module-type-HasSnowflake/index.html new file mode 100644 index 0000000..c68747c --- /dev/null +++ b/docs/disml/Disml__S/module-type-HasSnowflake/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>HasSnowflake (disml.Disml__S.HasSnowflake)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__S</a> » HasSnowflake</nav><h1>Module type <code>Disml__S.HasSnowflake</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__S/module-type-UserImpl/index.html b/docs/disml/Disml__S/module-type-UserImpl/index.html new file mode 100644 index 0000000..31c3151 --- /dev/null +++ b/docs/disml/Disml__S/module-type-UserImpl/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>UserImpl (disml.Disml__S.UserImpl)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__S</a> » UserImpl</nav><h1>Module type <code>Disml__S.UserImpl</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Sharder/Shard/index.html b/docs/disml/Disml__Sharder/Shard/index.html index dd012b2..ade0568 100644 --- a/docs/disml/Disml__Sharder/Shard/index.html +++ b/docs/disml/Disml__Sharder/Shard/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Shard (disml.Disml__Sharder.Shard)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Sharder</a> » Shard</nav><h1>Module <code>Disml__Sharder.Shard</code></h1><p>Module representing a single shard.</p></header><dl><dt class="spec type" id="type-shard"><a href="#type-shard" class="anchor"></a><code><span class="keyword">type </span>shard</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-shard.hb_interval" class="anchored"><td class="def field"><a href="#type-shard.hb_interval" class="anchor"></a><code>hb_interval : Core.Time.Span.t Async.Ivar.t;</code></td><td class="doc"><p>Time span between heartbeats, wrapped in an Ivar.</p></td></tr><tr id="type-shard.seq" class="anchored"><td class="def field"><a href="#type-shard.seq" class="anchor"></a><code>seq : int;</code></td><td class="doc"><p>Current sequence number</p></td></tr><tr id="type-shard.session" class="anchored"><td class="def field"><a href="#type-shard.session" class="anchor"></a><code>session : string option;</code></td><td class="doc"><p>Session id, if one exists.</p></td></tr><tr id="type-shard.pipe" class="anchored"><td class="def field"><a href="#type-shard.pipe" class="anchor"></a><code>pipe : Websocket_async.Frame.t Async.Pipe.Reader.t<span class="keyword"> * </span>Websocket_async.Frame.t Async.Pipe.Writer.t;</code></td><td class="doc"><p>Raw frame IO pipe used for websocket communications.</p></td></tr><tr id="type-shard.ready" class="anchored"><td class="def field"><a href="#type-shard.ready" class="anchor"></a><code>ready : unit Async.Ivar.t;</code></td><td class="doc"><p>A simple Ivar indicating if the shard has received READY.</p></td></tr><tr id="type-shard.url" class="anchored"><td class="def field"><a href="#type-shard.url" class="anchor"></a><code>url : string;</code></td><td class="doc"><p>The websocket URL in use.</p></td></tr><tr id="type-shard.id" class="anchored"><td class="def field"><a href="#type-shard.id" class="anchor"></a><code>id : int<span class="keyword"> * </span>int;</code></td><td class="doc"><p>A tuple as expected by Discord. First element is the current shard index, second element is the total shard count.</p></td></tr></table><code>}</code></dt><dd><p>Representation of the state of a shard.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>'a t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.state" class="anchored"><td class="def field"><a href="#type-t.state" class="anchor"></a><code><span class="keyword">mutable </span>state : <span class="type-var">'a</span>;</code></td></tr></table><code>}</code></dt><dd><p>Wrapper around an internal state, used to wrap <a href="index.html#type-shard"><code>shard</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-heartbeat"><a href="#val-heartbeat" class="anchor"></a><code><span class="keyword">val </span>heartbeat : <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Send a heartbeat to Discord. This is handled automatically.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Set the status of the shard.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Request guild members for the shard's guild. Causes dispatch of multiple <span class="xref-unresolved" title="unresolved reference to "Dispatch.members_chunk""><span>member chunk</span></span> events.</p></dd></dl><dl><dt class="spec value" id="val-create"><a href="#val-create" class="anchor"></a><code><span class="keyword">val </span>create : url:string <span>-></span> shards:(int<span class="keyword"> * </span>int) <span>-></span> unit <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Create a new shard</p></dd></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Shard (disml.Disml__Sharder.Shard)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">disml</a> » <a href="../index.html">Disml__Sharder</a> » Shard</nav><h1>Module <code>Disml__Sharder.Shard</code></h1><p>Module representing a single shard.</p></header><dl><dt class="spec type" id="type-shard"><a href="#type-shard" class="anchor"></a><code><span class="keyword">type </span>shard</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-shard.hb_interval" class="anchored"><td class="def field"><a href="#type-shard.hb_interval" class="anchor"></a><code>hb_interval : Core.Time.Span.t Async.Ivar.t;</code></td><td class="doc"><p>Time span between heartbeats, wrapped in an Ivar.</p></td></tr><tr id="type-shard.seq" class="anchored"><td class="def field"><a href="#type-shard.seq" class="anchor"></a><code>seq : int;</code></td><td class="doc"><p>Current sequence number</p></td></tr><tr id="type-shard.session" class="anchored"><td class="def field"><a href="#type-shard.session" class="anchor"></a><code>session : string option;</code></td><td class="doc"><p>Session id, if one exists.</p></td></tr><tr id="type-shard.pipe" class="anchored"><td class="def field"><a href="#type-shard.pipe" class="anchor"></a><code>pipe : Websocket_async.Frame.t Async.Pipe.Reader.t<span class="keyword"> * </span>Websocket_async.Frame.t Async.Pipe.Writer.t;</code></td><td class="doc"><p>Raw frame IO pipe used for websocket communications.</p></td></tr><tr id="type-shard.ready" class="anchored"><td class="def field"><a href="#type-shard.ready" class="anchor"></a><code>ready : unit Async.Ivar.t;</code></td><td class="doc"><p>A simple Ivar indicating if the shard has received READY.</p></td></tr><tr id="type-shard.url" class="anchored"><td class="def field"><a href="#type-shard.url" class="anchor"></a><code>url : string;</code></td><td class="doc"><p>The websocket URL in use.</p></td></tr><tr id="type-shard.id" class="anchored"><td class="def field"><a href="#type-shard.id" class="anchor"></a><code>id : int<span class="keyword"> * </span>int;</code></td><td class="doc"><p>A tuple as expected by Discord. First element is the current shard index, second element is the total shard count.</p></td></tr><tr id="type-shard._internal" class="anchored"><td class="def field"><a href="#type-shard._internal" class="anchor"></a><code>_internal : Async.Reader.t<span class="keyword"> * </span>Async.Writer.t;</code></td></tr></table><code>}</code></dt><dd><p>Representation of the state of a shard.</p></dd></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>'a t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.state" class="anchored"><td class="def field"><a href="#type-t.state" class="anchor"></a><code><span class="keyword">mutable </span>state : <span class="type-var">'a</span>;</code></td></tr></table><code>}</code></dt><dd><p>Wrapper around an internal state, used to wrap <a href="index.html#type-shard"><code>shard</code></a>.</p></dd></dl><dl><dt class="spec value" id="val-heartbeat"><a href="#val-heartbeat" class="anchor"></a><code><span class="keyword">val </span>heartbeat : <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Send a heartbeat to Discord. This is handled automatically.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Set the status of the shard.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-shard">shard</a> <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Request guild members for the shard's guild. Causes dispatch of multiple <span class="xref-unresolved" title="unresolved reference to "Dispatch.members_chunk""><span>member chunk</span></span> events.</p></dd></dl><dl><dt class="spec value" id="val-create"><a href="#val-create" class="anchor"></a><code><span class="keyword">val </span>create : url:string <span>-></span> shards:(int<span class="keyword"> * </span>int) <span>-></span> unit <span>-></span> <a href="index.html#type-shard">shard</a> Async.Deferred.t</code></dt><dd><p>Create a new shard</p></dd></dl><dl><dt class="spec value" id="val-shutdown_clean"><a href="#val-shutdown_clean" class="anchor"></a><code><span class="keyword">val </span>shutdown_clean : <a href="index.html#type-shard">shard</a> <span>-></span> unit Async.Deferred.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Sharder/index.html b/docs/disml/Disml__Sharder/index.html index 69dfbe7..c0928a9 100644 --- a/docs/disml/Disml__Sharder/index.html +++ b/docs/disml/Disml__Sharder/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Sharder (disml.Disml__Sharder)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Sharder</nav><h1>Module <code>Disml__Sharder</code></h1><p>Internal sharding manager. Most of this is accessed through <code>Client</code>.</p></header><dl><dt class="spec exception" id="exception-Invalid_Payload"><a href="#exception-Invalid_Payload" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_Payload</span></code></dt><dt class="spec exception" id="exception-Failure_to_Establish_Heartbeat"><a href="#exception-Failure_to_Establish_Heartbeat" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Failure_to_Establish_Heartbeat</span></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> unit <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Sharder. This is called by <span class="xref-unresolved" title="unresolved reference to "Client.start""><code>Client</code>.start</span>.</p></dd></dl><dl><dt class="spec module" id="module-Shard"><a href="#module-Shard" class="anchor"></a><code><span class="keyword">module </span><a href="Shard/index.html">Shard</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Module representing a single shard.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-set_status"><code>Shard.set_status</code></a> for each shard registered with the sharder.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="Shard/index.html#type-shard">Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Like <a href="index.html#val-set_status"><code>set_status</code></a> but takes a function with a <a href="Shard/index.html#type-shard"><span>shard</span></a> as its parameter and <span class="xref-unresolved" title="unresolved reference to "Yojson.Safe.json""><span>json</span></span> for its return.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-request_guild_members"><code>Shard.request_guild_members</code></a> for each shard registered with the sharder.</p></dd></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Sharder (disml.Disml__Sharder)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Sharder</nav><h1>Module <code>Disml__Sharder</code></h1><p>Internal sharding manager. Most of this is accessed through <code>Client</code>.</p></header><dl><dt class="spec exception" id="exception-Invalid_Payload"><a href="#exception-Invalid_Payload" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Invalid_Payload</span></code></dt><dt class="spec exception" id="exception-Failure_to_Establish_Heartbeat"><a href="#exception-Failure_to_Establish_Heartbeat" class="anchor"></a><code><span class="keyword">exception </span></code><code><span class="exception">Failure_to_Establish_Heartbeat</span></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl><dl><dt class="spec value" id="val-start"><a href="#val-start" class="anchor"></a><code><span class="keyword">val </span>start : ?⁠count:int <span>-></span> unit <span>-></span> <a href="index.html#type-t">t</a> Async.Deferred.t</code></dt><dd><p>Start the Sharder. This is called by <span class="xref-unresolved" title="unresolved reference to "Client.start""><code>Client</code>.start</span>.</p></dd></dl><dl><dt class="spec module" id="module-Shard"><a href="#module-Shard" class="anchor"></a><code><span class="keyword">module </span><a href="Shard/index.html">Shard</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></dt><dd><p>Module representing a single shard.</p></dd></dl><dl><dt class="spec value" id="val-set_status"><a href="#val-set_status" class="anchor"></a><code><span class="keyword">val </span>set_status : status:Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-set_status"><code>Shard.set_status</code></a> for each shard registered with the sharder.</p></dd></dl><dl><dt class="spec value" id="val-set_status_with"><a href="#val-set_status_with" class="anchor"></a><code><span class="keyword">val </span>set_status_with : f:(<a href="Shard/index.html#type-shard">Shard.shard</a> <span>-></span> Yojson.Safe.json) <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Like <a href="index.html#val-set_status"><code>set_status</code></a> but takes a function with a <a href="Shard/index.html#type-shard"><span>shard</span></a> as its parameter and <span class="xref-unresolved" title="unresolved reference to "Yojson.Safe.json""><span>json</span></span> for its return.</p></dd></dl><dl><dt class="spec value" id="val-request_guild_members"><a href="#val-request_guild_members" class="anchor"></a><code><span class="keyword">val </span>request_guild_members : ?⁠query:string <span>-></span> ?⁠limit:int <span>-></span> guild:<a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a> <span>-></span> <a href="index.html#type-t">t</a> <span>-></span> <a href="Shard/index.html#type-shard">Shard.shard</a> list Async.Deferred.t</code></dt><dd><p>Calls <a href="Shard/index.html#val-request_guild_members"><code>Shard.request_guild_members</code></a> for each shard registered with the sharder.</p></dd></dl><dl><dt class="spec value" id="val-shutdown_all"><a href="#val-shutdown_all" class="anchor"></a><code><span class="keyword">val </span>shutdown_all : <a href="index.html#type-t">t</a> <span>-></span> unit list Async.Deferred.t</code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__Snowflake/index.html b/docs/disml/Disml__Snowflake/index.html index ef6befe..f0f5bf7 100644 --- a/docs/disml/Disml__Snowflake/index.html +++ b/docs/disml/Disml__Snowflake/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Snowflake (disml.Disml__Snowflake)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Snowflake</nav><h1>Module <code>Disml__Snowflake</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span>Core.Int.t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-timestamp"><a href="#val-timestamp" class="anchor"></a><code><span class="keyword">val </span>timestamp : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dt class="spec value" id="val-timestamp_iso"><a href="#val-timestamp_iso" class="anchor"></a><code><span class="keyword">val </span>timestamp_iso : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__Snowflake (disml.Disml__Snowflake)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__Snowflake</nav><h1>Module <code>Disml__Snowflake</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span>Core.Int.t</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-time_of_t"><a href="#val-time_of_t" class="anchor"></a><code><span class="keyword">val </span>time_of_t : <a href="index.html#type-t">t</a> <span>-></span> Core.Time.t</code></dt><dd><p>Convert a snowflake into a <span class="xref-unresolved" title="unresolved reference to "Core.Time.t""><span class="xref-unresolved" title="unresolved reference to "Core.Time""><code>Core</code>.Time</span>.t</span></p></dd></dl><dl><dt class="spec value" id="val-timestamp"><a href="#val-timestamp" class="anchor"></a><code><span class="keyword">val </span>timestamp : <a href="index.html#type-t">t</a> <span>-></span> int</code></dt><dd><p>Convert a snowflake into a Unix timestamp. Millisecond precision.</p></dd></dl><dl><dt class="spec value" id="val-timestamp_iso"><a href="#val-timestamp_iso" class="anchor"></a><code><span class="keyword">val </span>timestamp_iso : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>Convert a snowflake into an ISO8601 timestamp string. This is equivalent to calling <code>Snowflake.time_of_t snowflake |> Time.(to_string_iso8601_basic ~zone:Zone.utc)</code></p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__User/index.html b/docs/disml/Disml__User/index.html index b88ff5e..e3b8a80 100644 --- a/docs/disml/Disml__User/index.html +++ b/docs/disml/Disml__User/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__User (disml.Disml__User)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__User</nav><h1>Module <code>Disml__User</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml/index.html#module-User_t">Disml.User_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_user"><a href="#type-partial_user" class="anchor"></a><code><span class="keyword">type </span>partial_user</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_user.id" class="anchored"><td class="def field"><a href="#type-partial_user.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_user_of_sexp"><a href="#val-partial_user_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt><dt class="spec value" id="val-sexp_of_partial_user"><a href="#val-sexp_of_partial_user" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_user : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_user_to_yojson"><a href="#val-partial_user_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_to_yojson : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_user_of_yojson"><a href="#val-partial_user_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_user_of_yojson_exn"><a href="#val-partial_user_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.username" class="anchored"><td class="def field"><a href="#type-t.username" class="anchor"></a><code>username : string;</code></td></tr><tr id="type-t.discriminator" class="anchored"><td class="def field"><a href="#type-t.discriminator" class="anchor"></a><code>discriminator : string;</code></td></tr><tr id="type-t.avatar" class="anchored"><td class="def field"><a href="#type-t.avatar" class="anchor"></a><code>avatar : string option;</code></td></tr><tr id="type-t.bot" class="anchored"><td class="def field"><a href="#type-t.bot" class="anchor"></a><code>bot : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-tag"><a href="#val-tag" class="anchor"></a><code><span class="keyword">val </span>tag : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-mention"><a href="#val-mention" class="anchor"></a><code><span class="keyword">val </span>mention : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-default_avatar"><a href="#val-default_avatar" class="anchor"></a><code><span class="keyword">val </span>default_avatar : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dt class="spec value" id="val-face"><a href="#val-face" class="anchor"></a><code><span class="keyword">val </span>face : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__User (disml.Disml__User)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__User</nav><h1>Module <code>Disml__User</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-User_t">Disml__.User_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-partial_user"><a href="#type-partial_user" class="anchor"></a><code><span class="keyword">type </span>partial_user</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_user.id" class="anchored"><td class="def field"><a href="#type-partial_user.id" class="anchor"></a><code>id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>A partial user. Used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_user_of_sexp"><a href="#val-partial_user_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt><dt class="spec value" id="val-sexp_of_partial_user"><a href="#val-sexp_of_partial_user" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_user : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_user_to_yojson"><a href="#val-partial_user_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_to_yojson : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_user_of_yojson"><a href="#val-partial_user_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_user_of_yojson_exn"><a href="#val-partial_user_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td><td class="doc"><p>The user's Snowflake ID, wrapped in the convenience <code>`User_id</code> type.</p></td></tr><tr id="type-t.username" class="anchored"><td class="def field"><a href="#type-t.username" class="anchor"></a><code>username : string;</code></td><td class="doc"><p>The username of the user.</p></td></tr><tr id="type-t.discriminator" class="anchored"><td class="def field"><a href="#type-t.discriminator" class="anchor"></a><code>discriminator : string;</code></td><td class="doc"><p>The 4 digits, as a string, that come after the '#' in a Discord username.</p></td></tr><tr id="type-t.avatar" class="anchored"><td class="def field"><a href="#type-t.avatar" class="anchor"></a><code>avatar : string option;</code></td><td class="doc"><p>The hash of the user avatar, if they have one set. See <span class="xref-unresolved" title="unresolved reference to "User.face""><code>User</code>.face</span> to get the avatar URL.</p></td></tr><tr id="type-t.bot" class="anchored"><td class="def field"><a href="#type-t.bot" class="anchor"></a><code>bot : bool;</code></td><td class="doc"><p>Whether the user is a bot.</p></td></tr></table><code>}</code></dt><dd><p>A user object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></details></div></div></div><dl><dt class="spec value" id="val-tag"><a href="#val-tag" class="anchor"></a><code><span class="keyword">val </span>tag : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>The user tag. Equivalent to concatenating the username and discriminator, separated by a '#'.</p></dd></dl><dl><dt class="spec value" id="val-mention"><a href="#val-mention" class="anchor"></a><code><span class="keyword">val </span>mention : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>The mention string for the user. Equivalent to <code><@USER_ID></code>.</p></dd></dl><dl><dt class="spec value" id="val-default_avatar"><a href="#val-default_avatar" class="anchor"></a><code><span class="keyword">val </span>default_avatar : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>The default avatar for the user.</p></dd></dl><dl><dt class="spec value" id="val-face"><a href="#val-face" class="anchor"></a><code><span class="keyword">val </span>face : <a href="index.html#type-t">t</a> <span>-></span> string</code></dt><dd><p>The avatar url of the user, falling back to the default avatar.</p></dd></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__User_id/.dune-keep b/docs/disml/Disml__User_id/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__User_id/.dune-keep diff --git a/docs/disml/Disml__User_id/index.html b/docs/disml/Disml__User_id/index.html new file mode 100644 index 0000000..f022d31 --- /dev/null +++ b/docs/disml/Disml__User_id/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__User_id (disml.Disml__User_id)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__User_id</nav><h1>Module <code>Disml__User_id</code></h1></header><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">module type of </span><a href="../Disml__/index.html#module-User_id_t">Disml__.User_id_t</a></code></span></summary><aside></aside><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.User_id" class="anchored"><td class="def constructor"><a href="#type-t.User_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`User_id<span class="keyword"> of </span><a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></details></div></div></div><div><div class="spec include"><div class="doc"><details open="open"><summary><span class="def"><code><span class="keyword">include </span><a href="../Disml__/S/index.html#module-type-UserImpl">Disml__.S.UserImpl</a><span class="keyword"> with </span><span class="keyword">type </span><a href="../Disml__/S/module-type-UserImpl/index.html#type-t">t</a> := <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a></code></span></summary><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code></dt></dl></details></div></div></div></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__User_id_t/.dune-keep b/docs/disml/Disml__User_id_t/.dune-keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/docs/disml/Disml__User_id_t/.dune-keep diff --git a/docs/disml/Disml__User_id_t/index.html b/docs/disml/Disml__User_id_t/index.html new file mode 100644 index 0000000..a46063d --- /dev/null +++ b/docs/disml/Disml__User_id_t/index.html @@ -0,0 +1,2 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__User_id_t (disml.Disml__User_id_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__User_id_t</nav><h1>Module <code>Disml__User_id_t</code></h1></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><span class="keyword"> = </span><code>[ </code><table class="variant"><tr id="type-t.User_id" class="anchored"><td class="def constructor"><a href="#type-t.User_id" class="anchor"></a><code><span class="keyword">| </span></code><code>`User_id<span class="keyword"> of </span><a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></td></tr></table><code> ]</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-__t_of_sexp__"><a href="#val-__t_of_sexp__" class="anchor"></a><code><span class="keyword">val </span>__t_of_sexp__ : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-get_id"><a href="#val-get_id" class="anchor"></a><code><span class="keyword">val </span>get_id : <a href="index.html#type-t">t</a> <span>-></span> <a href="../Disml__/Snowflake/index.html#type-t">Disml__.Snowflake.t</a></code></dt></dl></div></body></html>
\ No newline at end of file diff --git a/docs/disml/Disml__User_t/index.html b/docs/disml/Disml__User_t/index.html index baecc2a..df4a113 100644 --- a/docs/disml/Disml__User_t/index.html +++ b/docs/disml/Disml__User_t/index.html @@ -1,2 +1,2 @@ <!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__User_t (disml.Disml__User_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__User_t</nav><h1>Module <code>Disml__User_t</code></h1></header><dl><dt class="spec type" id="type-partial_user"><a href="#type-partial_user" class="anchor"></a><code><span class="keyword">type </span>partial_user</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_user.id" class="anchored"><td class="def field"><a href="#type-partial_user.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_user_of_sexp"><a href="#val-partial_user_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt><dt class="spec value" id="val-sexp_of_partial_user"><a href="#val-sexp_of_partial_user" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_user : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_user_to_yojson"><a href="#val-partial_user_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_to_yojson : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_user_of_yojson"><a href="#val-partial_user_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_user_of_yojson_exn"><a href="#val-partial_user_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml/Snowflake/index.html#type-t">Disml.Snowflake.t</a>;</code></td></tr><tr id="type-t.username" class="anchored"><td class="def field"><a href="#type-t.username" class="anchor"></a><code>username : string;</code></td></tr><tr id="type-t.discriminator" class="anchored"><td class="def field"><a href="#type-t.discriminator" class="anchor"></a><code>discriminator : string;</code></td></tr><tr id="type-t.avatar" class="anchored"><td class="def field"><a href="#type-t.avatar" class="anchor"></a><code>avatar : string option;</code></td></tr><tr id="type-t.bot" class="anchored"><td class="def field"><a href="#type-t.bot" class="anchor"></a><code>bot : bool;</code></td></tr></table><code>}</code></dt></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Disml__User_t (disml.Disml__User_t)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../index.html">disml</a> » Disml__User_t</nav><h1>Module <code>Disml__User_t</code></h1></header><dl><dt class="spec type" id="type-partial_user"><a href="#type-partial_user" class="anchor"></a><code><span class="keyword">type </span>partial_user</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-partial_user.id" class="anchored"><td class="def field"><a href="#type-partial_user.id" class="anchor"></a><code>id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td></tr></table><code>}</code></dt><dd><p>A partial user. Used internally.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-partial_user_of_sexp"><a href="#val-partial_user_of_sexp" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt><dt class="spec value" id="val-sexp_of_partial_user"><a href="#val-sexp_of_partial_user" class="anchor"></a><code><span class="keyword">val </span>sexp_of_partial_user : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-partial_user_to_yojson"><a href="#val-partial_user_to_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_to_yojson : <a href="index.html#type-partial_user">partial_user</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-partial_user_of_yojson"><a href="#val-partial_user_of_yojson" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-partial_user_of_yojson_exn"><a href="#val-partial_user_of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>partial_user_of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-partial_user">partial_user</a></code></dt></dl><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type </span>t</code><code><span class="keyword"> = </span></code><code>{</code><table class="record"><tr id="type-t.id" class="anchored"><td class="def field"><a href="#type-t.id" class="anchor"></a><code>id : <a href="../Disml__/User_id_t/index.html#type-t">Disml__.User_id_t.t</a>;</code></td><td class="doc"><p>The user's Snowflake ID, wrapped in the convenience <code>`User_id</code> type.</p></td></tr><tr id="type-t.username" class="anchored"><td class="def field"><a href="#type-t.username" class="anchor"></a><code>username : string;</code></td><td class="doc"><p>The username of the user.</p></td></tr><tr id="type-t.discriminator" class="anchored"><td class="def field"><a href="#type-t.discriminator" class="anchor"></a><code>discriminator : string;</code></td><td class="doc"><p>The 4 digits, as a string, that come after the '#' in a Discord username.</p></td></tr><tr id="type-t.avatar" class="anchored"><td class="def field"><a href="#type-t.avatar" class="anchor"></a><code>avatar : string option;</code></td><td class="doc"><p>The hash of the user avatar, if they have one set. See <span class="xref-unresolved" title="unresolved reference to "User.face""><code>User</code>.face</span> to get the avatar URL.</p></td></tr><tr id="type-t.bot" class="anchored"><td class="def field"><a href="#type-t.bot" class="anchor"></a><code>bot : bool;</code></td><td class="doc"><p>Whether the user is a bot.</p></td></tr></table><code>}</code></dt><dd><p>A user object.</p></dd></dl><div><div class="spec include"><div class="doc"><dl><dt class="spec value" id="val-t_of_sexp"><a href="#val-t_of_sexp" class="anchor"></a><code><span class="keyword">val </span>t_of_sexp : Ppx_sexp_conv_lib.Sexp.t <span>-></span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-sexp_of_t"><a href="#val-sexp_of_t" class="anchor"></a><code><span class="keyword">val </span>sexp_of_t : <a href="index.html#type-t">t</a> <span>-></span> Ppx_sexp_conv_lib.Sexp.t</code></dt></dl></div></div></div><dl><dt class="spec value" id="val-to_yojson"><a href="#val-to_yojson" class="anchor"></a><code><span class="keyword">val </span>to_yojson : <a href="index.html#type-t">t</a> <span>-></span> Yojson.Safe.json</code></dt><dt class="spec value" id="val-of_yojson"><a href="#val-of_yojson" class="anchor"></a><code><span class="keyword">val </span>of_yojson : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a> Ppx_deriving_yojson_runtime.error_or</code></dt><dt class="spec value" id="val-of_yojson_exn"><a href="#val-of_yojson_exn" class="anchor"></a><code><span class="keyword">val </span>of_yojson_exn : Yojson.Safe.json <span>-></span> <a href="index.html#type-t">t</a></code></dt></dl></div></body></html>
\ No newline at end of file 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 diff --git a/lib/client.mli b/lib/client.mli index 3e79a39..a05810b 100644 --- a/lib/client.mli +++ b/lib/client.mli @@ -1,37 +1,37 @@ -open Async - -include module type of Client_options -include module type of Dispatch - -(** Type of the Client, it isn't recommended to access the fields directly. *) -type t = { - sharder: Sharder.t; -} - -(** Start the Client. This begins shard connections to Discord and event handlers should be registered prior to calling this. - {3 Example} - {[ - open Async - open Disml - - let main () = - let token = "a valid bot token" in - Client.start ~count:5 token >>> print_endline "Client launched" - - let _ = - Scheduler.go_main ~main () - ]} - @param ?count Optional amount of shards to launch. Defaults to autosharding - @param string The token used for authentication - @return A deferred client object -*) -val start : ?count:int -> string -> t Deferred.t - -(** Same as {!Sharder.set_status} where [client.sharder] is passed. *) -val set_status : status:Yojson.Safe.json -> t -> Sharder.Shard.shard list Deferred.t - -(** Same as {!Sharder.set_status_with} where [client.sharder] is passed. *) -val set_status_with : f:(Sharder.Shard.shard -> Yojson.Safe.json) -> t -> Sharder.Shard.shard list Deferred.t - -(** Same as {!Sharder.request_guild_members} where [client.sharder] is passed. *) +open Async
+
+include module type of Client_options
+include module type of Dispatch
+
+(** Type of the Client, it isn't recommended to access the fields directly. *)
+type t = {
+ sharder: Sharder.t;
+}
+
+(** Start the Client. This begins shard connections to Discord and event handlers should be registered prior to calling this.
+ {3 Example}
+ {[
+ open Async
+ open Disml
+
+ let main () =
+ let token = "a valid bot token" in
+ Client.start ~count:5 token >>> print_endline "Client launched"
+
+ let _ =
+ Scheduler.go_main ~main ()
+ ]}
+ @param ?count Optional amount of shards to launch. Defaults to autosharding
+ @param string The token used for authentication
+ @return A deferred client object
+*)
+val start : ?count:int -> string -> t Deferred.t
+
+(** Same as {!Sharder.set_status} where [client.sharder] is passed. *)
+val set_status : status:Yojson.Safe.json -> t -> Sharder.Shard.shard list Deferred.t
+
+(** Same as {!Sharder.set_status_with} where [client.sharder] is passed. *)
+val set_status_with : f:(Sharder.Shard.shard -> Yojson.Safe.json) -> t -> Sharder.Shard.shard list Deferred.t
+
+(** Same as {!Sharder.request_guild_members} where [client.sharder] is passed. *)
val request_guild_members : guild:Snowflake.t -> ?query:string -> ?limit:int -> t -> Sharder.Shard.shard list Deferred.t
\ No newline at end of file diff --git a/lib/client_options.mli b/lib/client_options.mli index ee46aae..edf80e1 100644 --- a/lib/client_options.mli +++ b/lib/client_options.mli @@ -1,2 +1,2 @@ -(** Token that is set when using {!Client.start} *) +(** Token that is set when using {!Client.start} *)
val token : string ref
\ No newline at end of file diff --git a/lib/disml.ml b/lib/disml.ml index 021ceb0..c7c4c34 100644 --- a/lib/disml.ml +++ b/lib/disml.ml @@ -1,24 +1,24 @@ -module Client = Client -module Http = Http -module Sharder = Sharder - -module Models = struct - module Activity = Activity - module Attachment = Attachment - module Ban = Ban - module Channel = Channel - module Channel_id = Channel_id - module Embed = Embed - module Emoji = Emoji - module Guild = Guild - module Guild_id = Guild_id - module Member = Member - module Message = Message - module Presence = Presence - module Reaction = Reaction - module Role = Role - module Snowflake = Snowflake - module User = User - - module Event = Event_models +module Client = Client
+module Http = Http
+module Sharder = Sharder
+
+module Models = struct
+ module Activity = Activity
+ module Attachment = Attachment
+ module Ban = Ban
+ module Channel = Channel
+ module Channel_id = Channel_id
+ module Embed = Embed
+ module Emoji = Emoji
+ module Guild = Guild
+ module Guild_id = Guild_id
+ module Member = Member
+ module Message = Message
+ module Presence = Presence
+ module Reaction = Reaction
+ module Role = Role
+ module Snowflake = Snowflake
+ module User = User
+
+ module Event = Event_models
end
\ No newline at end of file diff --git a/lib/dispatch.ml b/lib/dispatch.ml index ef53442..3103285 100644 --- a/lib/dispatch.ml +++ b/lib/dispatch.ml @@ -1,36 +1,36 @@ -open Event_models - -let ready = ref (fun (_:Ready.t) -> ()) -let resumed = ref (fun (_:Resumed.t) -> ()) -let channel_create = ref (fun (_:ChannelCreate.t) -> ()) -let channel_update = ref (fun (_:ChannelUpdate.t) -> ()) -let channel_delete = ref (fun (_:ChannelDelete.t) -> ()) -let channel_pins_update = ref (fun (_:ChannelPinsUpdate.t) -> ()) -let guild_create = ref (fun (_:GuildCreate.t) -> ()) -let guild_update = ref (fun (_:GuildUpdate.t) -> ()) -let guild_delete = ref (fun (_:GuildDelete.t) -> ()) -let member_ban = ref (fun (_:GuildBanAdd.t) -> ()) -let member_unban = ref (fun (_:GuildBanRemove.t) -> ()) -let guild_emojis_update = ref (fun (_:GuildEmojisUpdate.t) -> ()) -(* let integrations_update = ref (fun (_:Yojson.Safe.json) -> ()) *) -let member_join = ref (fun (_:GuildMemberAdd.t) -> ()) -let member_leave = ref (fun (_:GuildMemberRemove.t) -> ()) -let member_update = ref (fun (_:GuildMemberUpdate.t) -> ()) -let members_chunk = ref (fun (_:GuildMembersChunk.t) -> ()) -let role_create = ref (fun (_:GuildRoleCreate.t) -> ()) -let role_update = ref (fun (_:GuildRoleUpdate.t) -> ()) -let role_delete = ref (fun (_:GuildRoleDelete.t) -> ()) -let message_create = ref (fun (_:MessageCreate.t) -> ()) -let message_update = ref (fun (_:MessageUpdate.t) -> ()) -let message_delete = ref (fun (_:MessageDelete.t) -> ()) -let message_delete_bulk = ref (fun (_:MessageDeleteBulk.t) -> ()) -let reaction_add = ref (fun (_:ReactionAdd.t) -> ()) -let reaction_remove = ref (fun (_:ReactionRemove.t) -> ()) -let reaction_remove_all = ref (fun (_:ReactionRemoveAll.t) -> ()) -let presence_update = ref (fun (_:PresenceUpdate.t) -> ()) -let typing_start = ref (fun (_:TypingStart.t) -> ()) -let user_update = ref (fun (_:UserUpdate.t) -> ()) -(* let voice_state_update = ref (fun (_:Yojson.Safe.json) -> ()) *) -(* let voice_server_update = ref (fun (_:Yojson.Safe.json) -> ()) *) -let webhook_update = ref (fun (_:WebhookUpdate.t) -> ()) +open Event_models
+
+let ready = ref (fun (_:Ready.t) -> ())
+let resumed = ref (fun (_:Resumed.t) -> ())
+let channel_create = ref (fun (_:ChannelCreate.t) -> ())
+let channel_update = ref (fun (_:ChannelUpdate.t) -> ())
+let channel_delete = ref (fun (_:ChannelDelete.t) -> ())
+let channel_pins_update = ref (fun (_:ChannelPinsUpdate.t) -> ())
+let guild_create = ref (fun (_:GuildCreate.t) -> ())
+let guild_update = ref (fun (_:GuildUpdate.t) -> ())
+let guild_delete = ref (fun (_:GuildDelete.t) -> ())
+let member_ban = ref (fun (_:GuildBanAdd.t) -> ())
+let member_unban = ref (fun (_:GuildBanRemove.t) -> ())
+let guild_emojis_update = ref (fun (_:GuildEmojisUpdate.t) -> ())
+(* let integrations_update = ref (fun (_:Yojson.Safe.json) -> ()) *)
+let member_join = ref (fun (_:GuildMemberAdd.t) -> ())
+let member_leave = ref (fun (_:GuildMemberRemove.t) -> ())
+let member_update = ref (fun (_:GuildMemberUpdate.t) -> ())
+let members_chunk = ref (fun (_:GuildMembersChunk.t) -> ())
+let role_create = ref (fun (_:GuildRoleCreate.t) -> ())
+let role_update = ref (fun (_:GuildRoleUpdate.t) -> ())
+let role_delete = ref (fun (_:GuildRoleDelete.t) -> ())
+let message_create = ref (fun (_:MessageCreate.t) -> ())
+let message_update = ref (fun (_:MessageUpdate.t) -> ())
+let message_delete = ref (fun (_:MessageDelete.t) -> ())
+let message_delete_bulk = ref (fun (_:MessageDeleteBulk.t) -> ())
+let reaction_add = ref (fun (_:ReactionAdd.t) -> ())
+let reaction_remove = ref (fun (_:ReactionRemove.t) -> ())
+let reaction_remove_all = ref (fun (_:ReactionRemoveAll.t) -> ())
+let presence_update = ref (fun (_:PresenceUpdate.t) -> ())
+let typing_start = ref (fun (_:TypingStart.t) -> ())
+let user_update = ref (fun (_:UserUpdate.t) -> ())
+(* let voice_state_update = ref (fun (_:Yojson.Safe.json) -> ()) *)
+(* let voice_server_update = ref (fun (_:Yojson.Safe.json) -> ()) *)
+let webhook_update = ref (fun (_:WebhookUpdate.t) -> ())
let unknown = ref (fun (_:Unknown.t) -> ())
\ No newline at end of file diff --git a/lib/dispatch.mli b/lib/dispatch.mli index 78126b7..36f3ece 100644 --- a/lib/dispatch.mli +++ b/lib/dispatch.mli @@ -1,120 +1,120 @@ -(** Used to store dispatch callbacks. Each event can only have one callback registered at a time. - These should be accessed through their re-export in {!Client}. - {3 Examples} - [Client.ready := (fun _ -> print_endline "Shard is Ready!")] - - [Client.guild_create := (fun guild -> print_endline guild.name)] - - {[ - open Core - open Disml - - let check_command (msg : Message.t) = - if String.is_prefix ~prefix:"!ping" msg.content then - Message.reply msg "Pong!" >>> ignore - - Client.message_create := check_command - ]} -*) - -open Event_models - -(** Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this. *) -val ready : (Ready.t -> unit) ref - -(** Dispatched when successfully reconnecting to the gateway. *) -val resumed : (Resumed.t -> unit) ref - -(** Dispatched when a channel is created which is visible to the bot. *) -val channel_create : (ChannelCreate.t -> unit) ref - -(** Dispatched when a channel visible to the bot is changed. *) -val channel_update : (ChannelUpdate.t -> unit) ref - -(** Dispatched when a channel visible to the bot is deleted. *) -val channel_delete : (ChannelDelete.t -> unit) ref - -(** Dispatched when messages are pinned or unpinned from a a channel. *) -val channel_pins_update : (ChannelPinsUpdate.t -> unit) ref - -(** Dispatched when the bot joins a guild, and during startup. *) -val guild_create : (GuildCreate.t -> unit) ref - -(** Dispatched when a guild the bot is in is edited. *) -val guild_update : (GuildUpdate.t -> unit) ref - -(** Dispatched when the bot is removed from a guild. *) -val guild_delete : (GuildDelete.t -> unit) ref - -(** Dispatched when a member is banned. *) -val member_ban : (GuildBanAdd.t -> unit) ref - -(** Dispatched when a member is unbanned. *) -val member_unban : (GuildBanRemove.t -> unit) ref - -(** Dispatched when emojis are added or removed from a guild. *) -val guild_emojis_update : (GuildEmojisUpdate.t -> unit) ref - -(** Dispatched when a guild's integrations are updated. *) -(* val integrations_update : (Yojson.Safe.json -> unit) ref *) - -(** Dispatched when a member joins a guild. *) -val member_join : (GuildMemberAdd.t -> unit) ref - -(** Dispatched when a member leaves a guild. Is Dispatched alongside {!Client.member_ban} when a user is banned. *) -val member_leave : (GuildMemberRemove.t -> unit) ref - -(** Dispatched when a member object is updated. *) -val member_update : (GuildMemberUpdate.t -> unit) ref - -(** Dispatched when requesting guild members through {!Client.request_guild_members} *) -val members_chunk : (GuildMembersChunk.t -> unit) ref - -(** Dispatched when a role is created. *) -val role_create : (GuildRoleCreate.t -> unit) ref - -(** Dispatched when a role is edited. *) -val role_update : (GuildRoleUpdate.t -> unit) ref - -(** Dispatched when a role is deleted. *) -val role_delete : (GuildRoleDelete.t -> unit) ref - -(** Dispatched when a message is sent. *) -val message_create : (MessageCreate.t -> unit) ref - -(** Dispatched when a message is edited. This does not necessarily mean the content changed. *) -val message_update : (MessageUpdate.t -> unit) ref - -(** Dispatched when a message is deleted. *) -val message_delete : (MessageDelete.t -> unit) ref - -(** Dispatched when messages are bulk deleted. *) -val message_delete_bulk : (MessageDeleteBulk.t -> unit) ref - -(** Dispatched when a rection is added to a message. *) -val reaction_add : (ReactionAdd.t -> unit) ref - -(** Dispatched when a reaction is removed from a message. *) -val reaction_remove : (ReactionRemove.t -> unit) ref - -(** Dispatched when all reactions are cleared from a message. *) -val reaction_remove_all : (ReactionRemoveAll.t -> unit) ref - -(** Dispatched when a user updates their presence. *) -val presence_update : (PresenceUpdate.t -> unit) ref - -(** Dispatched when a typing indicator is displayed. *) -val typing_start : (TypingStart.t -> unit) ref - -(** Dispatched when the current user is updated. You most likely want {!Client.member_update} or {!Client.presence_update} instead. *) -val user_update : (UserUpdate.t -> unit) ref - -(** Dispatched when a webhook is updated. *) -val webhook_update : (WebhookUpdate.t -> unit) ref - -(** Dispatched as a fallback for unknown events. *) -val unknown : (Unknown.t -> unit) ref - -(**/**) -(* val voice_state_update : (Yojson.Safe.json -> unit) ref *) +(** Used to store dispatch callbacks. Each event can only have one callback registered at a time.
+ These should be accessed through their re-export in {!Client}.
+ {3 Examples}
+ [Client.ready := (fun _ -> print_endline "Shard is Ready!")]
+
+ [Client.guild_create := (fun guild -> print_endline guild.name)]
+
+ {[
+ open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!ping" msg.content then
+ Message.reply msg "Pong!" >>> ignore
+
+ Client.message_create := check_command
+ ]}
+*)
+
+open Event_models
+
+(** Dispatched when each shard receives READY from discord after identifying on the gateway. Other event dispatch is received after this. *)
+val ready : (Ready.t -> unit) ref
+
+(** Dispatched when successfully reconnecting to the gateway. *)
+val resumed : (Resumed.t -> unit) ref
+
+(** Dispatched when a channel is created which is visible to the bot. *)
+val channel_create : (ChannelCreate.t -> unit) ref
+
+(** Dispatched when a channel visible to the bot is changed. *)
+val channel_update : (ChannelUpdate.t -> unit) ref
+
+(** Dispatched when a channel visible to the bot is deleted. *)
+val channel_delete : (ChannelDelete.t -> unit) ref
+
+(** Dispatched when messages are pinned or unpinned from a a channel. *)
+val channel_pins_update : (ChannelPinsUpdate.t -> unit) ref
+
+(** Dispatched when the bot joins a guild, and during startup. *)
+val guild_create : (GuildCreate.t -> unit) ref
+
+(** Dispatched when a guild the bot is in is edited. *)
+val guild_update : (GuildUpdate.t -> unit) ref
+
+(** Dispatched when the bot is removed from a guild. *)
+val guild_delete : (GuildDelete.t -> unit) ref
+
+(** Dispatched when a member is banned. *)
+val member_ban : (GuildBanAdd.t -> unit) ref
+
+(** Dispatched when a member is unbanned. *)
+val member_unban : (GuildBanRemove.t -> unit) ref
+
+(** Dispatched when emojis are added or removed from a guild. *)
+val guild_emojis_update : (GuildEmojisUpdate.t -> unit) ref
+
+(** Dispatched when a guild's integrations are updated. *)
+(* val integrations_update : (Yojson.Safe.json -> unit) ref *)
+
+(** Dispatched when a member joins a guild. *)
+val member_join : (GuildMemberAdd.t -> unit) ref
+
+(** Dispatched when a member leaves a guild. Is Dispatched alongside {!Client.member_ban} when a user is banned. *)
+val member_leave : (GuildMemberRemove.t -> unit) ref
+
+(** Dispatched when a member object is updated. *)
+val member_update : (GuildMemberUpdate.t -> unit) ref
+
+(** Dispatched when requesting guild members through {!Client.request_guild_members} *)
+val members_chunk : (GuildMembersChunk.t -> unit) ref
+
+(** Dispatched when a role is created. *)
+val role_create : (GuildRoleCreate.t -> unit) ref
+
+(** Dispatched when a role is edited. *)
+val role_update : (GuildRoleUpdate.t -> unit) ref
+
+(** Dispatched when a role is deleted. *)
+val role_delete : (GuildRoleDelete.t -> unit) ref
+
+(** Dispatched when a message is sent. *)
+val message_create : (MessageCreate.t -> unit) ref
+
+(** Dispatched when a message is edited. This does not necessarily mean the content changed. *)
+val message_update : (MessageUpdate.t -> unit) ref
+
+(** Dispatched when a message is deleted. *)
+val message_delete : (MessageDelete.t -> unit) ref
+
+(** Dispatched when messages are bulk deleted. *)
+val message_delete_bulk : (MessageDeleteBulk.t -> unit) ref
+
+(** Dispatched when a rection is added to a message. *)
+val reaction_add : (ReactionAdd.t -> unit) ref
+
+(** Dispatched when a reaction is removed from a message. *)
+val reaction_remove : (ReactionRemove.t -> unit) ref
+
+(** Dispatched when all reactions are cleared from a message. *)
+val reaction_remove_all : (ReactionRemoveAll.t -> unit) ref
+
+(** Dispatched when a user updates their presence. *)
+val presence_update : (PresenceUpdate.t -> unit) ref
+
+(** Dispatched when a typing indicator is displayed. *)
+val typing_start : (TypingStart.t -> unit) ref
+
+(** Dispatched when the current user is updated. You most likely want {!Client.member_update} or {!Client.presence_update} instead. *)
+val user_update : (UserUpdate.t -> unit) ref
+
+(** Dispatched when a webhook is updated. *)
+val webhook_update : (WebhookUpdate.t -> unit) ref
+
+(** Dispatched as a fallback for unknown events. *)
+val unknown : (Unknown.t -> unit) ref
+
+(**/**)
+(* val voice_state_update : (Yojson.Safe.json -> unit) ref *)
(* val voice_server_update : (Yojson.Safe.json -> unit) ref *)
\ No newline at end of file @@ -1,27 +1,27 @@ -(library - (name disml) - (public_name disml) - (synopsis "An OCaml library for interfacing with the Discord API") - (modules - activity - attachment - ban ban_t - channel channel_t channel_id channel_id_t - embed - emoji - guild guild_t guild_id guild_id_t - member member_t - message message_t message_id - presence - reaction reaction_t - role role_t role_id - snowflake - user user_t user_id user_id_t - event_models - client client_options disml dispatch endpoints event http impl opcode rl s sharder - ) - (libraries core async_ssl cohttp-async logs yojson websocket-async zlib ppx_deriving_yojson.runtime) - (preprocess (pps ppx_jane ppx_deriving_yojson)) -) - -(include_subdirs unqualified) +(library
+ (name disml)
+ (public_name disml)
+ (synopsis "An OCaml library for interfacing with the Discord API")
+ (modules
+ activity
+ attachment
+ ban ban_t
+ channel channel_t channel_id channel_id_t
+ embed
+ emoji
+ guild guild_t guild_id guild_id_t
+ member member_t
+ message message_t message_id
+ presence
+ reaction reaction_t
+ role role_t role_id
+ snowflake
+ user user_t user_id user_id_t
+ event_models
+ client client_options disml dispatch endpoints event http impl opcode rl s sharder
+ )
+ (libraries core async_ssl cohttp-async logs yojson websocket-async zlib ppx_deriving_yojson.runtime)
+ (preprocess (pps ppx_jane ppx_deriving_yojson))
+)
+
+(include_subdirs unqualified)
diff --git a/lib/event.ml b/lib/event.ml index 468acc6..3f1fa9f 100644 --- a/lib/event.ml +++ b/lib/event.ml @@ -1,114 +1,114 @@ -open Core -open Event_models - -type t = -| READY of Ready.t -| RESUMED of Resumed.t -| CHANNEL_CREATE of ChannelCreate.t -| CHANNEL_UPDATE of ChannelUpdate.t -| CHANNEL_DELETE of ChannelDelete.t -| CHANNEL_PINS_UPDATE of ChannelPinsUpdate.t -| GUILD_CREATE of GuildCreate.t -| GUILD_UPDATE of GuildUpdate.t -| GUILD_DELETE of GuildDelete.t -| GUILD_BAN_ADD of GuildBanAdd.t -| GUILD_BAN_REMOVE of GuildBanRemove.t -| GUILD_EMOJIS_UPDATE of GuildEmojisUpdate.t -(* | GUILD_INTEGRATIONS_UPDATE of Yojson.Safe.json *) -| GUILD_MEMBER_ADD of GuildMemberAdd.t -| GUILD_MEMBER_REMOVE of GuildMemberRemove.t -| GUILD_MEMBER_UPDATE of GuildMemberUpdate.t -| GUILD_MEMBERS_CHUNK of GuildMembersChunk.t -| GUILD_ROLE_CREATE of GuildRoleCreate.t -| GUILD_ROLE_UPDATE of GuildRoleUpdate.t -| GUILD_ROLE_DELETE of GuildRoleDelete.t -| MESSAGE_CREATE of MessageCreate.t -| MESSAGE_UPDATE of MessageUpdate.t -| MESSAGE_DELETE of MessageDelete.t -| MESSAGE_DELETE_BULK of MessageDeleteBulk.t -| REACTION_ADD of ReactionAdd.t -| REACTION_REMOVE of ReactionRemove.t -| REACTION_REMOVE_ALL of ReactionRemoveAll.t -| PRESENCE_UPDATE of PresenceUpdate.t -| TYPING_START of TypingStart.t -| USER_UPDATE of UserUpdate.t -(* | VOICE_STATE_UPDATE of Yojson.Safe.json *) -(* | VOICE_SERVER_UPDATE of Yojson.Safe.json *) -| WEBHOOK_UPDATE of WebhookUpdate.t -| UNKNOWN of Unknown.t - -let event_of_yojson ~contents t = match t with - | "READY" -> READY Ready.(deserialize contents) - | "RESUMED" -> RESUMED Resumed.(deserialize contents) - | "CHANNEL_CREATE" -> CHANNEL_CREATE ChannelCreate.(deserialize contents) - | "CHANNEL_UPDATE" -> CHANNEL_UPDATE ChannelUpdate.(deserialize contents) - | "CHANNEL_DELETE" -> CHANNEL_DELETE ChannelDelete.(deserialize contents) - | "CHANNEL_PINS_UPDATE" -> CHANNEL_PINS_UPDATE ChannelPinsUpdate.(deserialize contents) - | "GUILD_CREATE" -> GUILD_CREATE GuildCreate.(deserialize contents) - | "GUILD_UPDATE" -> GUILD_UPDATE GuildUpdate.(deserialize contents) - | "GUILD_DELETE" -> GUILD_DELETE GuildDelete.(deserialize contents) - | "GUILD_BAN_ADD" -> GUILD_BAN_ADD GuildBanAdd.(deserialize contents) - | "GUILD_BAN_REMOVE" -> GUILD_BAN_REMOVE GuildBanRemove.(deserialize contents) - | "GUILD_EMOJIS_UPDATE" -> GUILD_EMOJIS_UPDATE GuildEmojisUpdate.(deserialize contents) - (* | "GUILD_INTEGRATIONS_UPDATE" -> GUILD_INTEGRATIONS_UPDATE contents *) - | "GUILD_MEMBER_ADD" -> GUILD_MEMBER_ADD GuildMemberAdd.(deserialize contents) - | "GUILD_MEMBER_REMOVE" -> GUILD_MEMBER_REMOVE GuildMemberRemove.(deserialize contents) - | "GUILD_MEMBER_UPDATE" -> GUILD_MEMBER_UPDATE GuildMemberUpdate.(deserialize contents) - | "GUILD_MEMBERS_CHUNK" -> GUILD_MEMBERS_CHUNK GuildMembersChunk.(deserialize contents) - | "GUILD_ROLE_CREATE" -> GUILD_ROLE_CREATE GuildRoleCreate.(deserialize contents) - | "GUILD_ROLE_UPDATE" -> GUILD_ROLE_UPDATE GuildRoleUpdate.(deserialize contents) - | "GUILD_ROLE_DELETE" -> GUILD_ROLE_DELETE GuildRoleDelete.(deserialize contents) - | "MESSAGE_CREATE" -> MESSAGE_CREATE MessageCreate.(deserialize contents) - | "MESSAGE_UPDATE" -> MESSAGE_UPDATE MessageUpdate.(deserialize contents) - | "MESSAGE_DELETE" -> MESSAGE_DELETE MessageDelete.(deserialize contents) - | "MESSAGE_DELETE_BULK" -> MESSAGE_DELETE_BULK MessageDeleteBulk.(deserialize contents) - | "MESSAGE_REACTION_ADD" -> REACTION_ADD ReactionAdd.(deserialize contents) - | "MESSAGE_REACTION_REMOVE" -> REACTION_REMOVE ReactionRemove.(deserialize contents) - | "MESSAGE_REACTION_REMOVE_ALL" -> REACTION_REMOVE_ALL ReactionRemoveAll.(deserialize contents) - | "PRESENCE_UPDATE" -> PRESENCE_UPDATE PresenceUpdate.(deserialize contents) - | "TYPING_START" -> TYPING_START TypingStart.(deserialize contents) - | "USER_UPDATE" -> USER_UPDATE UserUpdate.(deserialize contents) - (* | "VOICE_STATE_UPDATE" -> VOICE_STATE_UPDATE contents *) - (* | "VOICE_SERVER_UPDATE" -> VOICE_SERVER_UPDATE contents *) - | "WEBHOOK_UPDATE" -> WEBHOOK_UPDATE WebhookUpdate.(deserialize contents) - | s -> UNKNOWN Unknown.(deserialize s contents) - -let dispatch ev = match ev with - | READY d -> !Dispatch.ready d - | RESUMED d -> !Dispatch.resumed d - | CHANNEL_CREATE d -> !Dispatch.channel_create d - | CHANNEL_UPDATE d -> !Dispatch.channel_update d - | CHANNEL_DELETE d -> !Dispatch.channel_delete d - | CHANNEL_PINS_UPDATE d -> !Dispatch.channel_pins_update d - | GUILD_CREATE d -> !Dispatch.guild_create d - | GUILD_UPDATE d -> !Dispatch.guild_update d - | GUILD_DELETE d -> !Dispatch.guild_delete d - | GUILD_BAN_ADD d -> !Dispatch.member_ban d - | GUILD_BAN_REMOVE d -> !Dispatch.member_unban d - | GUILD_EMOJIS_UPDATE d -> !Dispatch.guild_emojis_update d - (* | GUILD_INTEGRATIONS_UPDATE d -> !Dispatch.integrations_update d *) - | GUILD_MEMBER_ADD d -> !Dispatch.member_join d - | GUILD_MEMBER_REMOVE d -> !Dispatch.member_leave d - | GUILD_MEMBER_UPDATE d -> !Dispatch.member_update d - | GUILD_MEMBERS_CHUNK d -> !Dispatch.members_chunk d - | GUILD_ROLE_CREATE d -> !Dispatch.role_create d - | GUILD_ROLE_UPDATE d -> !Dispatch.role_update d - | GUILD_ROLE_DELETE d -> !Dispatch.role_delete d - | MESSAGE_CREATE d -> !Dispatch.message_create d - | MESSAGE_UPDATE d -> !Dispatch.message_update d - | MESSAGE_DELETE d -> !Dispatch.message_delete d - | MESSAGE_DELETE_BULK d -> !Dispatch.message_delete_bulk d - | REACTION_ADD d -> !Dispatch.reaction_add d - | REACTION_REMOVE d -> !Dispatch.reaction_remove d - | REACTION_REMOVE_ALL d -> !Dispatch.reaction_remove_all d - | PRESENCE_UPDATE d -> !Dispatch.presence_update d - | TYPING_START d -> !Dispatch.typing_start d - | USER_UPDATE d -> !Dispatch.user_update d - (* | VOICE_STATE_UPDATE d -> !Dispatch.voice_state_update d *) - (* | VOICE_SERVER_UPDATE d -> !Dispatch.voice_server_update d *) - | WEBHOOK_UPDATE d -> !Dispatch.webhook_update d - | UNKNOWN d -> !Dispatch.unknown d - -let handle_event ~ev contents = - event_of_yojson ~contents ev +open Core
+open Event_models
+
+type t =
+| READY of Ready.t
+| RESUMED of Resumed.t
+| CHANNEL_CREATE of ChannelCreate.t
+| CHANNEL_UPDATE of ChannelUpdate.t
+| CHANNEL_DELETE of ChannelDelete.t
+| CHANNEL_PINS_UPDATE of ChannelPinsUpdate.t
+| GUILD_CREATE of GuildCreate.t
+| GUILD_UPDATE of GuildUpdate.t
+| GUILD_DELETE of GuildDelete.t
+| GUILD_BAN_ADD of GuildBanAdd.t
+| GUILD_BAN_REMOVE of GuildBanRemove.t
+| GUILD_EMOJIS_UPDATE of GuildEmojisUpdate.t
+(* | GUILD_INTEGRATIONS_UPDATE of Yojson.Safe.json *)
+| GUILD_MEMBER_ADD of GuildMemberAdd.t
+| GUILD_MEMBER_REMOVE of GuildMemberRemove.t
+| GUILD_MEMBER_UPDATE of GuildMemberUpdate.t
+| GUILD_MEMBERS_CHUNK of GuildMembersChunk.t
+| GUILD_ROLE_CREATE of GuildRoleCreate.t
+| GUILD_ROLE_UPDATE of GuildRoleUpdate.t
+| GUILD_ROLE_DELETE of GuildRoleDelete.t
+| MESSAGE_CREATE of MessageCreate.t
+| MESSAGE_UPDATE of MessageUpdate.t
+| MESSAGE_DELETE of MessageDelete.t
+| MESSAGE_DELETE_BULK of MessageDeleteBulk.t
+| REACTION_ADD of ReactionAdd.t
+| REACTION_REMOVE of ReactionRemove.t
+| REACTION_REMOVE_ALL of ReactionRemoveAll.t
+| PRESENCE_UPDATE of PresenceUpdate.t
+| TYPING_START of TypingStart.t
+| USER_UPDATE of UserUpdate.t
+(* | VOICE_STATE_UPDATE of Yojson.Safe.json *)
+(* | VOICE_SERVER_UPDATE of Yojson.Safe.json *)
+| WEBHOOK_UPDATE of WebhookUpdate.t
+| UNKNOWN of Unknown.t
+
+let event_of_yojson ~contents t = match t with
+ | "READY" -> READY Ready.(deserialize contents)
+ | "RESUMED" -> RESUMED Resumed.(deserialize contents)
+ | "CHANNEL_CREATE" -> CHANNEL_CREATE ChannelCreate.(deserialize contents)
+ | "CHANNEL_UPDATE" -> CHANNEL_UPDATE ChannelUpdate.(deserialize contents)
+ | "CHANNEL_DELETE" -> CHANNEL_DELETE ChannelDelete.(deserialize contents)
+ | "CHANNEL_PINS_UPDATE" -> CHANNEL_PINS_UPDATE ChannelPinsUpdate.(deserialize contents)
+ | "GUILD_CREATE" -> GUILD_CREATE GuildCreate.(deserialize contents)
+ | "GUILD_UPDATE" -> GUILD_UPDATE GuildUpdate.(deserialize contents)
+ | "GUILD_DELETE" -> GUILD_DELETE GuildDelete.(deserialize contents)
+ | "GUILD_BAN_ADD" -> GUILD_BAN_ADD GuildBanAdd.(deserialize contents)
+ | "GUILD_BAN_REMOVE" -> GUILD_BAN_REMOVE GuildBanRemove.(deserialize contents)
+ | "GUILD_EMOJIS_UPDATE" -> GUILD_EMOJIS_UPDATE GuildEmojisUpdate.(deserialize contents)
+ (* | "GUILD_INTEGRATIONS_UPDATE" -> GUILD_INTEGRATIONS_UPDATE contents *)
+ | "GUILD_MEMBER_ADD" -> GUILD_MEMBER_ADD GuildMemberAdd.(deserialize contents)
+ | "GUILD_MEMBER_REMOVE" -> GUILD_MEMBER_REMOVE GuildMemberRemove.(deserialize contents)
+ | "GUILD_MEMBER_UPDATE" -> GUILD_MEMBER_UPDATE GuildMemberUpdate.(deserialize contents)
+ | "GUILD_MEMBERS_CHUNK" -> GUILD_MEMBERS_CHUNK GuildMembersChunk.(deserialize contents)
+ | "GUILD_ROLE_CREATE" -> GUILD_ROLE_CREATE GuildRoleCreate.(deserialize contents)
+ | "GUILD_ROLE_UPDATE" -> GUILD_ROLE_UPDATE GuildRoleUpdate.(deserialize contents)
+ | "GUILD_ROLE_DELETE" -> GUILD_ROLE_DELETE GuildRoleDelete.(deserialize contents)
+ | "MESSAGE_CREATE" -> MESSAGE_CREATE MessageCreate.(deserialize contents)
+ | "MESSAGE_UPDATE" -> MESSAGE_UPDATE MessageUpdate.(deserialize contents)
+ | "MESSAGE_DELETE" -> MESSAGE_DELETE MessageDelete.(deserialize contents)
+ | "MESSAGE_DELETE_BULK" -> MESSAGE_DELETE_BULK MessageDeleteBulk.(deserialize contents)
+ | "MESSAGE_REACTION_ADD" -> REACTION_ADD ReactionAdd.(deserialize contents)
+ | "MESSAGE_REACTION_REMOVE" -> REACTION_REMOVE ReactionRemove.(deserialize contents)
+ | "MESSAGE_REACTION_REMOVE_ALL" -> REACTION_REMOVE_ALL ReactionRemoveAll.(deserialize contents)
+ | "PRESENCE_UPDATE" -> PRESENCE_UPDATE PresenceUpdate.(deserialize contents)
+ | "TYPING_START" -> TYPING_START TypingStart.(deserialize contents)
+ | "USER_UPDATE" -> USER_UPDATE UserUpdate.(deserialize contents)
+ (* | "VOICE_STATE_UPDATE" -> VOICE_STATE_UPDATE contents *)
+ (* | "VOICE_SERVER_UPDATE" -> VOICE_SERVER_UPDATE contents *)
+ | "WEBHOOK_UPDATE" -> WEBHOOK_UPDATE WebhookUpdate.(deserialize contents)
+ | s -> UNKNOWN Unknown.(deserialize s contents)
+
+let dispatch ev = match ev with
+ | READY d -> !Dispatch.ready d
+ | RESUMED d -> !Dispatch.resumed d
+ | CHANNEL_CREATE d -> !Dispatch.channel_create d
+ | CHANNEL_UPDATE d -> !Dispatch.channel_update d
+ | CHANNEL_DELETE d -> !Dispatch.channel_delete d
+ | CHANNEL_PINS_UPDATE d -> !Dispatch.channel_pins_update d
+ | GUILD_CREATE d -> !Dispatch.guild_create d
+ | GUILD_UPDATE d -> !Dispatch.guild_update d
+ | GUILD_DELETE d -> !Dispatch.guild_delete d
+ | GUILD_BAN_ADD d -> !Dispatch.member_ban d
+ | GUILD_BAN_REMOVE d -> !Dispatch.member_unban d
+ | GUILD_EMOJIS_UPDATE d -> !Dispatch.guild_emojis_update d
+ (* | GUILD_INTEGRATIONS_UPDATE d -> !Dispatch.integrations_update d *)
+ | GUILD_MEMBER_ADD d -> !Dispatch.member_join d
+ | GUILD_MEMBER_REMOVE d -> !Dispatch.member_leave d
+ | GUILD_MEMBER_UPDATE d -> !Dispatch.member_update d
+ | GUILD_MEMBERS_CHUNK d -> !Dispatch.members_chunk d
+ | GUILD_ROLE_CREATE d -> !Dispatch.role_create d
+ | GUILD_ROLE_UPDATE d -> !Dispatch.role_update d
+ | GUILD_ROLE_DELETE d -> !Dispatch.role_delete d
+ | MESSAGE_CREATE d -> !Dispatch.message_create d
+ | MESSAGE_UPDATE d -> !Dispatch.message_update d
+ | MESSAGE_DELETE d -> !Dispatch.message_delete d
+ | MESSAGE_DELETE_BULK d -> !Dispatch.message_delete_bulk d
+ | REACTION_ADD d -> !Dispatch.reaction_add d
+ | REACTION_REMOVE d -> !Dispatch.reaction_remove d
+ | REACTION_REMOVE_ALL d -> !Dispatch.reaction_remove_all d
+ | PRESENCE_UPDATE d -> !Dispatch.presence_update d
+ | TYPING_START d -> !Dispatch.typing_start d
+ | USER_UPDATE d -> !Dispatch.user_update d
+ (* | VOICE_STATE_UPDATE d -> !Dispatch.voice_state_update d *)
+ (* | VOICE_SERVER_UPDATE d -> !Dispatch.voice_server_update d *)
+ | WEBHOOK_UPDATE d -> !Dispatch.webhook_update d
+ | UNKNOWN d -> !Dispatch.unknown d
+
+let handle_event ~ev contents =
+ event_of_yojson ~contents ev
|> dispatch
\ No newline at end of file diff --git a/lib/event.mli b/lib/event.mli index 9e05569..d4a539b 100644 --- a/lib/event.mli +++ b/lib/event.mli @@ -1,49 +1,49 @@ -(** Barebones of event dispatching. Most users will have no reason to look here. *) - -open Event_models - -(** Event dispatch type wrapper. Used internally. *) -type t = -| READY of Ready.t -| RESUMED of Resumed.t -| CHANNEL_CREATE of ChannelCreate.t -| CHANNEL_UPDATE of ChannelUpdate.t -| CHANNEL_DELETE of ChannelDelete.t -| CHANNEL_PINS_UPDATE of ChannelPinsUpdate.t -| GUILD_CREATE of GuildCreate.t -| GUILD_UPDATE of GuildUpdate.t -| GUILD_DELETE of GuildDelete.t -| GUILD_BAN_ADD of GuildBanAdd.t -| GUILD_BAN_REMOVE of GuildBanRemove.t -| GUILD_EMOJIS_UPDATE of GuildEmojisUpdate.t -(* | GUILD_INTEGRATIONS_UPDATE of Yojson.Safe.json *) -| GUILD_MEMBER_ADD of GuildMemberAdd.t -| GUILD_MEMBER_REMOVE of GuildMemberRemove.t -| GUILD_MEMBER_UPDATE of GuildMemberUpdate.t -| GUILD_MEMBERS_CHUNK of GuildMembersChunk.t -| GUILD_ROLE_CREATE of GuildRoleCreate.t -| GUILD_ROLE_UPDATE of GuildRoleUpdate.t -| GUILD_ROLE_DELETE of GuildRoleDelete.t -| MESSAGE_CREATE of MessageCreate.t -| MESSAGE_UPDATE of MessageUpdate.t -| MESSAGE_DELETE of MessageDelete.t -| MESSAGE_DELETE_BULK of MessageDeleteBulk.t -| REACTION_ADD of ReactionAdd.t -| REACTION_REMOVE of ReactionRemove.t -| REACTION_REMOVE_ALL of ReactionRemoveAll.t -| PRESENCE_UPDATE of PresenceUpdate.t -| TYPING_START of TypingStart.t -| USER_UPDATE of UserUpdate.t -(* | VOICE_STATE_UPDATE of Yojson.Safe.json *) -(* | VOICE_SERVER_UPDATE of Yojson.Safe.json *) -| WEBHOOK_UPDATE of WebhookUpdate.t -| UNKNOWN of Unknown.t - -(** Used to convert an event string and payload into a t wrapper type. *) -val event_of_yojson : contents:Yojson.Safe.json -> string -> t - -(** Sends the event to the registered handler. *) -val dispatch : t -> unit - -(** Wrapper to other functions. This is called from the shards. *) +(** Barebones of event dispatching. Most users will have no reason to look here. *)
+
+open Event_models
+
+(** Event dispatch type wrapper. Used internally. *)
+type t =
+| READY of Ready.t
+| RESUMED of Resumed.t
+| CHANNEL_CREATE of ChannelCreate.t
+| CHANNEL_UPDATE of ChannelUpdate.t
+| CHANNEL_DELETE of ChannelDelete.t
+| CHANNEL_PINS_UPDATE of ChannelPinsUpdate.t
+| GUILD_CREATE of GuildCreate.t
+| GUILD_UPDATE of GuildUpdate.t
+| GUILD_DELETE of GuildDelete.t
+| GUILD_BAN_ADD of GuildBanAdd.t
+| GUILD_BAN_REMOVE of GuildBanRemove.t
+| GUILD_EMOJIS_UPDATE of GuildEmojisUpdate.t
+(* | GUILD_INTEGRATIONS_UPDATE of Yojson.Safe.json *)
+| GUILD_MEMBER_ADD of GuildMemberAdd.t
+| GUILD_MEMBER_REMOVE of GuildMemberRemove.t
+| GUILD_MEMBER_UPDATE of GuildMemberUpdate.t
+| GUILD_MEMBERS_CHUNK of GuildMembersChunk.t
+| GUILD_ROLE_CREATE of GuildRoleCreate.t
+| GUILD_ROLE_UPDATE of GuildRoleUpdate.t
+| GUILD_ROLE_DELETE of GuildRoleDelete.t
+| MESSAGE_CREATE of MessageCreate.t
+| MESSAGE_UPDATE of MessageUpdate.t
+| MESSAGE_DELETE of MessageDelete.t
+| MESSAGE_DELETE_BULK of MessageDeleteBulk.t
+| REACTION_ADD of ReactionAdd.t
+| REACTION_REMOVE of ReactionRemove.t
+| REACTION_REMOVE_ALL of ReactionRemoveAll.t
+| PRESENCE_UPDATE of PresenceUpdate.t
+| TYPING_START of TypingStart.t
+| USER_UPDATE of UserUpdate.t
+(* | VOICE_STATE_UPDATE of Yojson.Safe.json *)
+(* | VOICE_SERVER_UPDATE of Yojson.Safe.json *)
+| WEBHOOK_UPDATE of WebhookUpdate.t
+| UNKNOWN of Unknown.t
+
+(** Used to convert an event string and payload into a t wrapper type. *)
+val event_of_yojson : contents:Yojson.Safe.json -> string -> t
+
+(** Sends the event to the registered handler. *)
+val dispatch : t -> unit
+
+(** Wrapper to other functions. This is called from the shards. *)
val handle_event : ev:string -> Yojson.Safe.json -> unit
\ No newline at end of file diff --git a/lib/http.ml b/lib/http.ml index 8927f47..9a47c65 100644 --- a/lib/http.ml +++ b/lib/http.ml @@ -1,356 +1,356 @@ -open Core -open Async -open Cohttp - -module Base = struct - exception Invalid_Method - - let rl = ref Rl.empty - - let base_url = "https://discordapp.com/api/v7" - - let process_url path = - Uri.of_string (base_url ^ path) - - let process_request_body body = - body - |> Yojson.Safe.to_string - |> Cohttp_async.Body.of_string - - let process_request_headers () = - let h = Header.init () in - Header.add_list h [ - "User-Agent", "Dis.ml v0.1.0"; - "Authorization", ("Bot " ^ !Client_options.token); - "Content-Type", "application/json"; - ] - - let process_response path ((resp:Response.t), body) = - (match Response.headers resp - |> Rl.rl_of_header with - | Some r -> Mvar.put (Rl.find_exn !rl path) r - | None -> return ()) - >>= fun () -> - match resp |> Response.status |> Code.code_of_status with - | 200 -> body |> Cohttp_async.Body.to_string >>| Yojson.Safe.from_string >>= Deferred.Or_error.return - | code -> - body |> Cohttp_async.Body.to_string >>= fun body -> - Deferred.Or_error.errorf "Unsuccessful response received: %d - %s" code body - - let request ?(body=`Null) ?(query=[]) m path = - rl := Rl.update ~f:(function - | None -> - let r = Mvar.create () in - Mvar.set r Rl.default; - r - | Some r -> r - ) !rl path; - let limit = Rl.find_exn !rl path in - Mvar.take limit >>= fun limit -> - let process () = - let uri = Uri.add_query_params' (process_url path) query in - let headers = process_request_headers () in - let body = process_request_body body in - (match m with - | `DELETE -> Cohttp_async.Client.delete ~headers ~body uri - | `GET -> Cohttp_async.Client.get ~headers uri - | `PATCH -> Cohttp_async.Client.patch ~headers ~body uri - | `POST -> Cohttp_async.Client.post ~headers ~body uri - | `PUT -> Cohttp_async.Client.put ~headers ~body uri - | _ -> raise Invalid_Method) - >>= process_response path - in if limit.remaining > 0 then process () - else Clock.at (Core.Time.(Span.of_int_sec limit.reset |> of_span_since_epoch)) >>= process -end - -let get_gateway () = - Base.request `GET Endpoints.gateway - -let get_gateway_bot () = - Base.request `GET Endpoints.gateway_bot - -let get_channel channel_id = - Base.request `GET (Endpoints.channel channel_id) >>| Result.map ~f:(fun c -> Channel_t.(channel_wrapper_of_yojson_exn c |> wrap)) - -let modify_channel channel_id body = - Base.request ~body `PATCH (Endpoints.channel channel_id) >>| Result.map ~f:(fun c -> Channel_t.(channel_wrapper_of_yojson_exn c |> wrap)) - -let delete_channel channel_id = - Base.request `DELETE (Endpoints.channel channel_id) >>| Result.map ~f:(fun c -> Channel_t.(channel_wrapper_of_yojson_exn c |> wrap)) - -let get_messages channel_id limit (kind, id) = - Base.request ~query:[(kind, string_of_int id); ("limit", string_of_int limit)] `GET (Endpoints.channel_messages channel_id) - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:Message_t.of_yojson_exn) - -let get_message channel_id message_id = - Base.request `GET (Endpoints.channel_message channel_id message_id) >>| Result.map ~f:Message_t.of_yojson_exn - -let create_message channel_id body = - Base.request ~body:body `POST (Endpoints.channel_messages channel_id) >>| Result.map ~f:Message_t.of_yojson_exn - -let create_reaction channel_id message_id emoji = - Base.request `PUT (Endpoints.channel_reaction_me channel_id message_id emoji) >>| Result.map ~f:ignore - -let delete_own_reaction channel_id message_id emoji = - Base.request `DELETE (Endpoints.channel_reaction_me channel_id message_id emoji) >>| Result.map ~f:ignore - -let delete_reaction channel_id message_id emoji user_id = - Base.request `DELETE (Endpoints.channel_reaction channel_id message_id emoji user_id) >>| Result.map ~f:ignore - -let get_reactions channel_id message_id emoji = - Base.request `GET (Endpoints.channel_reactions_get channel_id message_id emoji) - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:User_t.of_yojson_exn) - -let delete_reactions channel_id message_id = - Base.request `DELETE (Endpoints.channel_reactions_delete channel_id message_id) >>| Result.map ~f:ignore - -let edit_message channel_id message_id body = - Base.request ~body `PATCH (Endpoints.channel_message channel_id message_id) >>| Result.map ~f:Message_t.of_yojson_exn - -let delete_message channel_id message_id = - Base.request `DELETE (Endpoints.channel_message channel_id message_id) >>| Result.map ~f:ignore - -let bulk_delete channel_id body = - Base.request ~body `POST (Endpoints.channel_bulk_delete channel_id) >>| Result.map ~f:ignore - -let edit_channel_permissions channel_id overwrite_id body = - Base.request ~body `PUT (Endpoints.channel_permission channel_id overwrite_id) >>| Result.map ~f:ignore - -let get_channel_invites channel_id = - Base.request `GET (Endpoints.channel_invites channel_id) - -let create_channel_invite channel_id body = - Base.request ~body `POST (Endpoints.channel_invites channel_id) - -let delete_channel_permission channel_id overwrite_id = - Base.request `DELETE (Endpoints.channel_permission channel_id overwrite_id) >>| Result.map ~f:ignore - -let broadcast_typing channel_id = - Base.request `POST (Endpoints.channel_typing channel_id) >>| Result.map ~f:ignore - -let get_pinned_messages channel_id = - Base.request `GET (Endpoints.channel_pins channel_id) - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:Message_t.of_yojson_exn) - -let pin_message channel_id message_id = - Base.request `PUT (Endpoints.channel_pin channel_id message_id) >>| Result.map ~f:ignore - -let unpin_message channel_id message_id = - Base.request `DELETE (Endpoints.channel_pin channel_id message_id) >>| Result.map ~f:ignore - -let group_recipient_add channel_id user_id = - Base.request `PUT (Endpoints.group_recipient channel_id user_id) >>| Result.map ~f:ignore - -let group_recipient_remove channel_id user_id = - Base.request `DELETE (Endpoints.group_recipient channel_id user_id) >>| Result.map ~f:ignore - -let get_emojis guild_id = - Base.request `GET (Endpoints.guild_emojis guild_id) - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:Emoji.of_yojson_exn) - -let get_emoji guild_id emoji_id = - Base.request `GET (Endpoints.guild_emoji guild_id emoji_id) >>| Result.map ~f:Emoji.of_yojson_exn - -let create_emoji guild_id body = - Base.request ~body `POST (Endpoints.guild_emojis guild_id) >>| Result.map ~f:Emoji.of_yojson_exn - -let edit_emoji guild_id emoji_id body = - Base.request ~body `PATCH (Endpoints.guild_emoji guild_id emoji_id) >>| Result.map ~f:Emoji.of_yojson_exn - -let delete_emoji guild_id emoji_id = - Base.request `DELETE (Endpoints.guild_emoji guild_id emoji_id) >>| Result.map ~f:ignore - -let create_guild body = - Base.request ~body `POST Endpoints.guilds >>| Result.map ~f:(fun g -> Guild_t.(pre_of_yojson_exn g |> wrap)) - -let get_guild guild_id = - Base.request `GET (Endpoints.guild guild_id) >>| Result.map ~f:(fun g -> Guild_t.(pre_of_yojson_exn g |> wrap)) - -let edit_guild guild_id body = - Base.request ~body `PATCH (Endpoints.guild guild_id) >>| Result.map ~f:(fun g -> Guild_t.(pre_of_yojson_exn g |> wrap)) - -let delete_guild guild_id = - Base.request `DELETE (Endpoints.guild guild_id) >>| Result.map ~f:ignore - -let get_guild_channels guild_id = - Base.request `GET (Endpoints.guild_channels guild_id) - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun g -> Channel_t.(channel_wrapper_of_yojson_exn g |> wrap))) - -let create_guild_channel guild_id body = - Base.request ~body `POST (Endpoints.guild_channels guild_id) >>| Result.map ~f:(fun c -> Channel_t.(channel_wrapper_of_yojson_exn c |> wrap)) - -let modify_guild_channel_positions guild_id body = - Base.request ~body `PATCH (Endpoints.guild_channels guild_id) >>| Result.map ~f:ignore - -let get_member guild_id user_id = - Base.request `GET (Endpoints.guild_member guild_id user_id) >>| Result.map ~f:(fun m -> Member_t.(member_of_yojson_exn m |> wrap ~guild_id)) - -let get_members guild_id = - Base.request `GET (Endpoints.guild_members guild_id) - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun m -> Member_t.(member_of_yojson_exn m |> wrap ~guild_id))) - -let add_member guild_id user_id body = - Base.request ~body `PUT (Endpoints.guild_member guild_id user_id) - >>| Result.map ~f:(fun m -> Member_t.(member_of_yojson_exn m |> wrap ~guild_id)) - -let edit_member guild_id user_id body = - Base.request ~body `PATCH (Endpoints.guild_member guild_id user_id) >>| Result.map ~f:ignore - -let remove_member guild_id user_id body = - Base.request ~body `DELETE (Endpoints.guild_member guild_id user_id) >>| Result.map ~f:ignore - -let change_nickname guild_id body = - Base.request ~body `PATCH (Endpoints.guild_me_nick guild_id) - -let add_member_role guild_id user_id role_id = - Base.request `PUT (Endpoints.guild_member_role guild_id user_id role_id) >>| Result.map ~f:ignore - -let remove_member_role guild_id user_id role_id = - Base.request `DELETE (Endpoints.guild_member_role guild_id user_id role_id) >>| Result.map ~f:ignore - -let get_bans guild_id = - Base.request `GET (Endpoints.guild_bans guild_id) - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:Ban_t.of_yojson_exn) - -let get_ban guild_id user_id = - Base.request `GET (Endpoints.guild_ban guild_id user_id) >>| Result.map ~f:Ban_t.of_yojson_exn - -let guild_ban_add guild_id user_id body = - Base.request ~body `PUT (Endpoints.guild_ban guild_id user_id) >>| Result.map ~f:ignore - -let guild_ban_remove guild_id user_id body = - Base.request ~body `DELETE (Endpoints.guild_ban guild_id user_id) >>| Result.map ~f:ignore - -let get_roles guild_id = - Base.request `GET (Endpoints.guild_roles guild_id) - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun r -> Role_t.(role_of_yojson_exn r |> wrap ~guild_id))) - -let guild_role_add guild_id body = - Base.request ~body `POST (Endpoints.guild_roles guild_id) >>| Result.map ~f:(fun r -> Role_t.(role_of_yojson_exn r |> wrap ~guild_id)) - -let guild_roles_edit guild_id body = - Base.request ~body `PATCH (Endpoints.guild_roles guild_id) - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun r -> Role_t.(role_of_yojson_exn r |> wrap ~guild_id))) - -let guild_role_edit guild_id role_id body = - Base.request ~body `PATCH (Endpoints.guild_role guild_id role_id) >>| Result.map ~f:(fun r -> Role_t.(role_of_yojson_exn r |> wrap ~guild_id)) - -let guild_role_remove guild_id role_id = - Base.request `DELETE (Endpoints.guild_role guild_id role_id) >>| Result.map ~f:ignore - -let guild_prune_count guild_id days = - Base.request ~query:[("days", Int.to_string days)] `GET (Endpoints.guild_prune guild_id) - >>| Result.map ~f:(fun c -> Yojson.Safe.Util.(member "pruned" c |> to_int)) - -let guild_prune_start guild_id days = - Base.request ~query:[("days", Int.to_string days)] `POST (Endpoints.guild_prune guild_id) - >>| Result.map ~f:(fun c -> Yojson.Safe.Util.(member "pruned" c |> to_int)) - -let get_guild_voice_regions guild_id = - Base.request `GET (Endpoints.guild_voice_regions guild_id) - -let get_guild_invites guild_id = - Base.request `GET (Endpoints.guild_invites guild_id) - -let get_integrations guild_id = - Base.request `GET (Endpoints.guild_integrations guild_id) - -let add_integration guild_id body = - Base.request ~body `POST (Endpoints.guild_integrations guild_id) >>| Result.map ~f:ignore - -let edit_integration guild_id integration_id body = - Base.request ~body `POST (Endpoints.guild_integration guild_id integration_id) >>| Result.map ~f:ignore - -let delete_integration guild_id integration_id = - Base.request `DELETE (Endpoints.guild_integration guild_id integration_id) >>| Result.map ~f:ignore - -let sync_integration guild_id integration_id = - Base.request `POST (Endpoints.guild_integration_sync guild_id integration_id) >>| Result.map ~f:ignore - -let get_guild_embed guild_id = - Base.request `GET (Endpoints.guild_embed guild_id) - -let edit_guild_embed guild_id body = - Base.request ~body `PATCH (Endpoints.guild_embed guild_id) - -let get_vanity_url guild_id = - Base.request `GET (Endpoints.guild_vanity_url guild_id) - -let get_invite invite_code = - Base.request `GET (Endpoints.invite invite_code) - -let delete_invite invite_code = - Base.request `DELETE (Endpoints.invite invite_code) - -let get_current_user () = - Base.request `GET Endpoints.me >>| Result.map ~f:User_t.of_yojson_exn - -let edit_current_user body = - Base.request ~body `PATCH Endpoints.me >>| Result.map ~f:User_t.of_yojson_exn - -let get_guilds () = - Base.request `GET Endpoints.me_guilds - >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun g -> Guild_t.(pre_of_yojson_exn g |> wrap))) - -let leave_guild guild_id = - Base.request `DELETE (Endpoints.me_guild guild_id) >>| Result.map ~f:ignore - -let get_private_channels () = - Base.request `GET Endpoints.me_channels - -let create_dm body = - Base.request ~body `POST Endpoints.me_channels - -let create_group_dm body = - Base.request ~body `POST Endpoints.me_channels - -let get_connections () = - Base.request `GET Endpoints.me_connections - -let get_user user_id = - Base.request `GET (Endpoints.user user_id) >>| Result.map ~f:User_t.of_yojson_exn - -let get_voice_regions () = - Base.request `GET Endpoints.regions - -let create_webhook channel_id body = - Base.request ~body `POST (Endpoints.webhooks_channel channel_id) - -let get_channel_webhooks channel_id = - Base.request `GET (Endpoints.webhooks_channel channel_id) - -let get_guild_webhooks guild_id = - Base.request `GET (Endpoints.webhooks_guild guild_id) - -let get_webhook webhook_id = - Base.request `GET (Endpoints.webhook webhook_id) - -let get_webhook_with_token webhook_id token = - Base.request `GET (Endpoints.webhook_token webhook_id token) - -let edit_webhook webhook_id body = - Base.request ~body `PATCH (Endpoints.webhook webhook_id) - -let edit_webhook_with_token webhook_id token body = - Base.request ~body `PATCH (Endpoints.webhook_token webhook_id token) - -let delete_webhook webhook_id = - Base.request `DELETE (Endpoints.webhook webhook_id) >>| Result.map ~f:ignore - -let delete_webhook_with_token webhook_id token = - Base.request `DELETE (Endpoints.webhook_token webhook_id token) >>| Result.map ~f:ignore - -let execute_webhook webhook_id token body = - Base.request ~body `POST (Endpoints.webhook_token webhook_id token) - -let execute_slack_webhook webhook_id token body = - Base.request ~body `POST (Endpoints.webhook_slack webhook_id token) - -let execute_git_webhook webhook_id token body = - Base.request ~body `POST (Endpoints.webhook_git webhook_id token) - -let get_audit_logs guild_id body = - Base.request ~body `GET (Endpoints.guild_audit_logs guild_id) - -let get_application_info () = +open Core
+open Async
+open Cohttp
+
+module Base = struct
+ exception Invalid_Method
+
+ let rl = ref Rl.empty
+
+ let base_url = "https://discordapp.com/api/v7"
+
+ let process_url path =
+ Uri.of_string (base_url ^ path)
+
+ let process_request_body body =
+ body
+ |> Yojson.Safe.to_string
+ |> Cohttp_async.Body.of_string
+
+ let process_request_headers () =
+ let h = Header.init () in
+ Header.add_list h [
+ "User-Agent", "Dis.ml v0.1.0";
+ "Authorization", ("Bot " ^ !Client_options.token);
+ "Content-Type", "application/json";
+ ]
+
+ let process_response path ((resp:Response.t), body) =
+ (match Response.headers resp
+ |> Rl.rl_of_header with
+ | Some r -> Mvar.put (Rl.find_exn !rl path) r
+ | None -> return ())
+ >>= fun () ->
+ match resp |> Response.status |> Code.code_of_status with
+ | 200 -> body |> Cohttp_async.Body.to_string >>| Yojson.Safe.from_string >>= Deferred.Or_error.return
+ | code ->
+ body |> Cohttp_async.Body.to_string >>= fun body ->
+ Deferred.Or_error.errorf "Unsuccessful response received: %d - %s" code body
+
+ let request ?(body=`Null) ?(query=[]) m path =
+ rl := Rl.update ~f:(function
+ | None ->
+ let r = Mvar.create () in
+ Mvar.set r Rl.default;
+ r
+ | Some r -> r
+ ) !rl path;
+ let limit = Rl.find_exn !rl path in
+ Mvar.take limit >>= fun limit ->
+ let process () =
+ let uri = Uri.add_query_params' (process_url path) query in
+ let headers = process_request_headers () in
+ let body = process_request_body body in
+ (match m with
+ | `DELETE -> Cohttp_async.Client.delete ~headers ~body uri
+ | `GET -> Cohttp_async.Client.get ~headers uri
+ | `PATCH -> Cohttp_async.Client.patch ~headers ~body uri
+ | `POST -> Cohttp_async.Client.post ~headers ~body uri
+ | `PUT -> Cohttp_async.Client.put ~headers ~body uri
+ | _ -> raise Invalid_Method)
+ >>= process_response path
+ in if limit.remaining > 0 then process ()
+ else Clock.at (Core.Time.(Span.of_int_sec limit.reset |> of_span_since_epoch)) >>= process
+end
+
+let get_gateway () =
+ Base.request `GET Endpoints.gateway
+
+let get_gateway_bot () =
+ Base.request `GET Endpoints.gateway_bot
+
+let get_channel channel_id =
+ Base.request `GET (Endpoints.channel channel_id) >>| Result.map ~f:(fun c -> Channel_t.(channel_wrapper_of_yojson_exn c |> wrap))
+
+let modify_channel channel_id body =
+ Base.request ~body `PATCH (Endpoints.channel channel_id) >>| Result.map ~f:(fun c -> Channel_t.(channel_wrapper_of_yojson_exn c |> wrap))
+
+let delete_channel channel_id =
+ Base.request `DELETE (Endpoints.channel channel_id) >>| Result.map ~f:(fun c -> Channel_t.(channel_wrapper_of_yojson_exn c |> wrap))
+
+let get_messages channel_id limit (kind, id) =
+ Base.request ~query:[(kind, string_of_int id); ("limit", string_of_int limit)] `GET (Endpoints.channel_messages channel_id)
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:Message_t.of_yojson_exn)
+
+let get_message channel_id message_id =
+ Base.request `GET (Endpoints.channel_message channel_id message_id) >>| Result.map ~f:Message_t.of_yojson_exn
+
+let create_message channel_id body =
+ Base.request ~body:body `POST (Endpoints.channel_messages channel_id) >>| Result.map ~f:Message_t.of_yojson_exn
+
+let create_reaction channel_id message_id emoji =
+ Base.request `PUT (Endpoints.channel_reaction_me channel_id message_id emoji) >>| Result.map ~f:ignore
+
+let delete_own_reaction channel_id message_id emoji =
+ Base.request `DELETE (Endpoints.channel_reaction_me channel_id message_id emoji) >>| Result.map ~f:ignore
+
+let delete_reaction channel_id message_id emoji user_id =
+ Base.request `DELETE (Endpoints.channel_reaction channel_id message_id emoji user_id) >>| Result.map ~f:ignore
+
+let get_reactions channel_id message_id emoji =
+ Base.request `GET (Endpoints.channel_reactions_get channel_id message_id emoji)
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:User_t.of_yojson_exn)
+
+let delete_reactions channel_id message_id =
+ Base.request `DELETE (Endpoints.channel_reactions_delete channel_id message_id) >>| Result.map ~f:ignore
+
+let edit_message channel_id message_id body =
+ Base.request ~body `PATCH (Endpoints.channel_message channel_id message_id) >>| Result.map ~f:Message_t.of_yojson_exn
+
+let delete_message channel_id message_id =
+ Base.request `DELETE (Endpoints.channel_message channel_id message_id) >>| Result.map ~f:ignore
+
+let bulk_delete channel_id body =
+ Base.request ~body `POST (Endpoints.channel_bulk_delete channel_id) >>| Result.map ~f:ignore
+
+let edit_channel_permissions channel_id overwrite_id body =
+ Base.request ~body `PUT (Endpoints.channel_permission channel_id overwrite_id) >>| Result.map ~f:ignore
+
+let get_channel_invites channel_id =
+ Base.request `GET (Endpoints.channel_invites channel_id)
+
+let create_channel_invite channel_id body =
+ Base.request ~body `POST (Endpoints.channel_invites channel_id)
+
+let delete_channel_permission channel_id overwrite_id =
+ Base.request `DELETE (Endpoints.channel_permission channel_id overwrite_id) >>| Result.map ~f:ignore
+
+let broadcast_typing channel_id =
+ Base.request `POST (Endpoints.channel_typing channel_id) >>| Result.map ~f:ignore
+
+let get_pinned_messages channel_id =
+ Base.request `GET (Endpoints.channel_pins channel_id)
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:Message_t.of_yojson_exn)
+
+let pin_message channel_id message_id =
+ Base.request `PUT (Endpoints.channel_pin channel_id message_id) >>| Result.map ~f:ignore
+
+let unpin_message channel_id message_id =
+ Base.request `DELETE (Endpoints.channel_pin channel_id message_id) >>| Result.map ~f:ignore
+
+let group_recipient_add channel_id user_id =
+ Base.request `PUT (Endpoints.group_recipient channel_id user_id) >>| Result.map ~f:ignore
+
+let group_recipient_remove channel_id user_id =
+ Base.request `DELETE (Endpoints.group_recipient channel_id user_id) >>| Result.map ~f:ignore
+
+let get_emojis guild_id =
+ Base.request `GET (Endpoints.guild_emojis guild_id)
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:Emoji.of_yojson_exn)
+
+let get_emoji guild_id emoji_id =
+ Base.request `GET (Endpoints.guild_emoji guild_id emoji_id) >>| Result.map ~f:Emoji.of_yojson_exn
+
+let create_emoji guild_id body =
+ Base.request ~body `POST (Endpoints.guild_emojis guild_id) >>| Result.map ~f:Emoji.of_yojson_exn
+
+let edit_emoji guild_id emoji_id body =
+ Base.request ~body `PATCH (Endpoints.guild_emoji guild_id emoji_id) >>| Result.map ~f:Emoji.of_yojson_exn
+
+let delete_emoji guild_id emoji_id =
+ Base.request `DELETE (Endpoints.guild_emoji guild_id emoji_id) >>| Result.map ~f:ignore
+
+let create_guild body =
+ Base.request ~body `POST Endpoints.guilds >>| Result.map ~f:(fun g -> Guild_t.(pre_of_yojson_exn g |> wrap))
+
+let get_guild guild_id =
+ Base.request `GET (Endpoints.guild guild_id) >>| Result.map ~f:(fun g -> Guild_t.(pre_of_yojson_exn g |> wrap))
+
+let edit_guild guild_id body =
+ Base.request ~body `PATCH (Endpoints.guild guild_id) >>| Result.map ~f:(fun g -> Guild_t.(pre_of_yojson_exn g |> wrap))
+
+let delete_guild guild_id =
+ Base.request `DELETE (Endpoints.guild guild_id) >>| Result.map ~f:ignore
+
+let get_guild_channels guild_id =
+ Base.request `GET (Endpoints.guild_channels guild_id)
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun g -> Channel_t.(channel_wrapper_of_yojson_exn g |> wrap)))
+
+let create_guild_channel guild_id body =
+ Base.request ~body `POST (Endpoints.guild_channels guild_id) >>| Result.map ~f:(fun c -> Channel_t.(channel_wrapper_of_yojson_exn c |> wrap))
+
+let modify_guild_channel_positions guild_id body =
+ Base.request ~body `PATCH (Endpoints.guild_channels guild_id) >>| Result.map ~f:ignore
+
+let get_member guild_id user_id =
+ Base.request `GET (Endpoints.guild_member guild_id user_id) >>| Result.map ~f:(fun m -> Member_t.(member_of_yojson_exn m |> wrap ~guild_id))
+
+let get_members guild_id =
+ Base.request `GET (Endpoints.guild_members guild_id)
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun m -> Member_t.(member_of_yojson_exn m |> wrap ~guild_id)))
+
+let add_member guild_id user_id body =
+ Base.request ~body `PUT (Endpoints.guild_member guild_id user_id)
+ >>| Result.map ~f:(fun m -> Member_t.(member_of_yojson_exn m |> wrap ~guild_id))
+
+let edit_member guild_id user_id body =
+ Base.request ~body `PATCH (Endpoints.guild_member guild_id user_id) >>| Result.map ~f:ignore
+
+let remove_member guild_id user_id body =
+ Base.request ~body `DELETE (Endpoints.guild_member guild_id user_id) >>| Result.map ~f:ignore
+
+let change_nickname guild_id body =
+ Base.request ~body `PATCH (Endpoints.guild_me_nick guild_id)
+
+let add_member_role guild_id user_id role_id =
+ Base.request `PUT (Endpoints.guild_member_role guild_id user_id role_id) >>| Result.map ~f:ignore
+
+let remove_member_role guild_id user_id role_id =
+ Base.request `DELETE (Endpoints.guild_member_role guild_id user_id role_id) >>| Result.map ~f:ignore
+
+let get_bans guild_id =
+ Base.request `GET (Endpoints.guild_bans guild_id)
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:Ban_t.of_yojson_exn)
+
+let get_ban guild_id user_id =
+ Base.request `GET (Endpoints.guild_ban guild_id user_id) >>| Result.map ~f:Ban_t.of_yojson_exn
+
+let guild_ban_add guild_id user_id body =
+ Base.request ~body `PUT (Endpoints.guild_ban guild_id user_id) >>| Result.map ~f:ignore
+
+let guild_ban_remove guild_id user_id body =
+ Base.request ~body `DELETE (Endpoints.guild_ban guild_id user_id) >>| Result.map ~f:ignore
+
+let get_roles guild_id =
+ Base.request `GET (Endpoints.guild_roles guild_id)
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun r -> Role_t.(role_of_yojson_exn r |> wrap ~guild_id)))
+
+let guild_role_add guild_id body =
+ Base.request ~body `POST (Endpoints.guild_roles guild_id) >>| Result.map ~f:(fun r -> Role_t.(role_of_yojson_exn r |> wrap ~guild_id))
+
+let guild_roles_edit guild_id body =
+ Base.request ~body `PATCH (Endpoints.guild_roles guild_id)
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun r -> Role_t.(role_of_yojson_exn r |> wrap ~guild_id)))
+
+let guild_role_edit guild_id role_id body =
+ Base.request ~body `PATCH (Endpoints.guild_role guild_id role_id) >>| Result.map ~f:(fun r -> Role_t.(role_of_yojson_exn r |> wrap ~guild_id))
+
+let guild_role_remove guild_id role_id =
+ Base.request `DELETE (Endpoints.guild_role guild_id role_id) >>| Result.map ~f:ignore
+
+let guild_prune_count guild_id days =
+ Base.request ~query:[("days", Int.to_string days)] `GET (Endpoints.guild_prune guild_id)
+ >>| Result.map ~f:(fun c -> Yojson.Safe.Util.(member "pruned" c |> to_int))
+
+let guild_prune_start guild_id days =
+ Base.request ~query:[("days", Int.to_string days)] `POST (Endpoints.guild_prune guild_id)
+ >>| Result.map ~f:(fun c -> Yojson.Safe.Util.(member "pruned" c |> to_int))
+
+let get_guild_voice_regions guild_id =
+ Base.request `GET (Endpoints.guild_voice_regions guild_id)
+
+let get_guild_invites guild_id =
+ Base.request `GET (Endpoints.guild_invites guild_id)
+
+let get_integrations guild_id =
+ Base.request `GET (Endpoints.guild_integrations guild_id)
+
+let add_integration guild_id body =
+ Base.request ~body `POST (Endpoints.guild_integrations guild_id) >>| Result.map ~f:ignore
+
+let edit_integration guild_id integration_id body =
+ Base.request ~body `POST (Endpoints.guild_integration guild_id integration_id) >>| Result.map ~f:ignore
+
+let delete_integration guild_id integration_id =
+ Base.request `DELETE (Endpoints.guild_integration guild_id integration_id) >>| Result.map ~f:ignore
+
+let sync_integration guild_id integration_id =
+ Base.request `POST (Endpoints.guild_integration_sync guild_id integration_id) >>| Result.map ~f:ignore
+
+let get_guild_embed guild_id =
+ Base.request `GET (Endpoints.guild_embed guild_id)
+
+let edit_guild_embed guild_id body =
+ Base.request ~body `PATCH (Endpoints.guild_embed guild_id)
+
+let get_vanity_url guild_id =
+ Base.request `GET (Endpoints.guild_vanity_url guild_id)
+
+let get_invite invite_code =
+ Base.request `GET (Endpoints.invite invite_code)
+
+let delete_invite invite_code =
+ Base.request `DELETE (Endpoints.invite invite_code)
+
+let get_current_user () =
+ Base.request `GET Endpoints.me >>| Result.map ~f:User_t.of_yojson_exn
+
+let edit_current_user body =
+ Base.request ~body `PATCH Endpoints.me >>| Result.map ~f:User_t.of_yojson_exn
+
+let get_guilds () =
+ Base.request `GET Endpoints.me_guilds
+ >>| Result.map ~f:(fun l -> Yojson.Safe.Util.to_list l |> List.map ~f:(fun g -> Guild_t.(pre_of_yojson_exn g |> wrap)))
+
+let leave_guild guild_id =
+ Base.request `DELETE (Endpoints.me_guild guild_id) >>| Result.map ~f:ignore
+
+let get_private_channels () =
+ Base.request `GET Endpoints.me_channels
+
+let create_dm body =
+ Base.request ~body `POST Endpoints.me_channels
+
+let create_group_dm body =
+ Base.request ~body `POST Endpoints.me_channels
+
+let get_connections () =
+ Base.request `GET Endpoints.me_connections
+
+let get_user user_id =
+ Base.request `GET (Endpoints.user user_id) >>| Result.map ~f:User_t.of_yojson_exn
+
+let get_voice_regions () =
+ Base.request `GET Endpoints.regions
+
+let create_webhook channel_id body =
+ Base.request ~body `POST (Endpoints.webhooks_channel channel_id)
+
+let get_channel_webhooks channel_id =
+ Base.request `GET (Endpoints.webhooks_channel channel_id)
+
+let get_guild_webhooks guild_id =
+ Base.request `GET (Endpoints.webhooks_guild guild_id)
+
+let get_webhook webhook_id =
+ Base.request `GET (Endpoints.webhook webhook_id)
+
+let get_webhook_with_token webhook_id token =
+ Base.request `GET (Endpoints.webhook_token webhook_id token)
+
+let edit_webhook webhook_id body =
+ Base.request ~body `PATCH (Endpoints.webhook webhook_id)
+
+let edit_webhook_with_token webhook_id token body =
+ Base.request ~body `PATCH (Endpoints.webhook_token webhook_id token)
+
+let delete_webhook webhook_id =
+ Base.request `DELETE (Endpoints.webhook webhook_id) >>| Result.map ~f:ignore
+
+let delete_webhook_with_token webhook_id token =
+ Base.request `DELETE (Endpoints.webhook_token webhook_id token) >>| Result.map ~f:ignore
+
+let execute_webhook webhook_id token body =
+ Base.request ~body `POST (Endpoints.webhook_token webhook_id token)
+
+let execute_slack_webhook webhook_id token body =
+ Base.request ~body `POST (Endpoints.webhook_slack webhook_id token)
+
+let execute_git_webhook webhook_id token body =
+ Base.request ~body `POST (Endpoints.webhook_git webhook_id token)
+
+let get_audit_logs guild_id body =
+ Base.request ~body `GET (Endpoints.guild_audit_logs guild_id)
+
+let get_application_info () =
Base.request `GET (Endpoints.application_information)
\ No newline at end of file diff --git a/lib/impl.ml b/lib/impl.ml index cc0f050..5fd7680 100644 --- a/lib/impl.ml +++ b/lib/impl.ml @@ -1,164 +1,164 @@ -module Channel(T : S.HasSnowflake) : S.ChannelImpl with type t := T.t = struct - open Core - include T - - exception Invalid_message - exception No_message_found - - let send_message ?embed ?content ?file ?(tts=false) ch = - let embed = match embed with - | Some e -> Embed.to_yojson e - | None -> `Null in - let content = match content with - | Some c -> `String c - | None -> `Null in - let file = match file with - | Some f -> `String f - | None -> `Null in - let () = match embed, content with - | `Null, `Null -> raise Invalid_message - | _ -> () in - Http.create_message (get_id ch) (`Assoc [ - ("embed", embed); - ("content", content); - ("file", file); - ("tts", `Bool tts); - ]) - - let say content ch = - send_message ~content ch - - let delete ch = - Http.delete_channel (get_id ch) - - let get_message ~id ch = - Http.get_message (get_id ch) id - - let get_messages ?(mode=`Around) ?id ?(limit=50) ch = - let kind = match mode with - | `Around -> "around", limit - | `Before -> "before", limit - | `After -> "after", limit - in - let id = match id with - | Some id -> id - | None -> raise No_message_found in - Http.get_messages (get_id ch) id kind - - let broadcast_typing ch = - Http.broadcast_typing (get_id ch) - - let get_pins ch = - Http.get_pinned_messages (get_id ch) -end - -module Guild(T : S.HasSnowflake) : S.GuildImpl with type t := T.t = struct - include T - - let ban_user ~id ?(reason="") ?(days=0) guild = - Http.guild_ban_add (get_id guild) id (`Assoc [ - ("delete-message-days", `Int days); - ("reason", `String reason); - ]) - - let create_emoji ~name ~image guild = - Http.create_emoji (get_id guild) (`Assoc [ - ("name", `String name); - ("image", `String image); - ("roles", `List []); - ]) - - let create_role ~name ?colour ?permissions ?hoist ?mentionable guild = - let payload = ("name", `String name) :: [] in - let payload = match permissions with - | Some p -> ("permissions", `Int p) :: payload - | None -> payload - in let payload = match colour with - | Some c -> ("color", `Int c) :: payload - | None -> payload - in let payload = match hoist with - | Some h -> ("hoist", `Bool h) :: payload - | None -> payload - in let payload = match mentionable with - | Some m -> ("mentionable", `Bool m) :: payload - | None -> payload - in Http.guild_role_add (get_id guild) (`Assoc payload) - - let create_channel ~mode ~name guild = - let kind = match mode with - | `Text -> 0 - | `Voice -> 2 - | `Category -> 4 - in Http.create_guild_channel (get_id guild) (`Assoc [ - ("name", `String name); - ("type", `Int kind); - ]) - - let delete guild = - Http.delete_guild (get_id guild) - - let get_ban ~id guild = - Http.get_ban (get_id guild) id - - let get_bans guild = - Http.get_bans (get_id guild) - - let get_emoji ~id guild = - Http.get_emoji (get_id guild) id - - (* TODO add invite abstraction? *) - let get_invites guild = - Http.get_guild_invites (get_id guild) - - let get_prune_count ~days guild = - Http.guild_prune_count (get_id guild) days - - (* TODO add webhook abstraction? *) - let get_webhooks guild = - Http.get_guild_webhooks (get_id guild) - - let kick_user ~id ?reason guild = - let payload = match reason with - | Some r -> `Assoc [("reason", `String r)] - | None -> `Null - in Http.remove_member (get_id guild) id payload - - let leave guild = - Http.leave_guild (get_id guild) - - (* TODO Voice region abstractions? *) - let list_voice_regions guild = - Http.get_guild_voice_regions (get_id guild) - - let prune ~days guild = - Http.guild_prune_start (get_id guild) days - - let request_members guild = - Http.get_members (get_id guild) - - let set_afk_channel ~id guild = Http.edit_guild (get_id guild) (`Assoc [ - ("afk_channel_id", `Int id); - ]) - - let set_afk_timeout ~timeout guild = Http.edit_guild (get_id guild) (`Assoc [ - ("afk_timeout", `Int timeout); - ]) - - let set_name ~name guild = Http.edit_guild (get_id guild) (`Assoc [ - ("name", `String name); - ]) - - let set_icon ~icon guild = Http.edit_guild (get_id guild) (`Assoc [ - ("icon", `String icon); - ]) - - let unban_user ~id ?reason guild = - let payload = match reason with - | Some r -> `Assoc [("reason", `String r)] - | None -> `Null - in Http.guild_ban_remove (get_id guild) id payload -end - -module User(T : S.HasSnowflake) : S.UserImpl with type t := T.t = struct - include T +module Channel(T : S.HasSnowflake) : S.ChannelImpl with type t := T.t = struct
+ open Core
+ include T
+
+ exception Invalid_message
+ exception No_message_found
+
+ let send_message ?embed ?content ?file ?(tts=false) ch =
+ let embed = match embed with
+ | Some e -> Embed.to_yojson e
+ | None -> `Null in
+ let content = match content with
+ | Some c -> `String c
+ | None -> `Null in
+ let file = match file with
+ | Some f -> `String f
+ | None -> `Null in
+ let () = match embed, content with
+ | `Null, `Null -> raise Invalid_message
+ | _ -> () in
+ Http.create_message (get_id ch) (`Assoc [
+ ("embed", embed);
+ ("content", content);
+ ("file", file);
+ ("tts", `Bool tts);
+ ])
+
+ let say content ch =
+ send_message ~content ch
+
+ let delete ch =
+ Http.delete_channel (get_id ch)
+
+ let get_message ~id ch =
+ Http.get_message (get_id ch) id
+
+ let get_messages ?(mode=`Around) ?id ?(limit=50) ch =
+ let kind = match mode with
+ | `Around -> "around", limit
+ | `Before -> "before", limit
+ | `After -> "after", limit
+ in
+ let id = match id with
+ | Some id -> id
+ | None -> raise No_message_found in
+ Http.get_messages (get_id ch) id kind
+
+ let broadcast_typing ch =
+ Http.broadcast_typing (get_id ch)
+
+ let get_pins ch =
+ Http.get_pinned_messages (get_id ch)
+end
+
+module Guild(T : S.HasSnowflake) : S.GuildImpl with type t := T.t = struct
+ include T
+
+ let ban_user ~id ?(reason="") ?(days=0) guild =
+ Http.guild_ban_add (get_id guild) id (`Assoc [
+ ("delete-message-days", `Int days);
+ ("reason", `String reason);
+ ])
+
+ let create_emoji ~name ~image guild =
+ Http.create_emoji (get_id guild) (`Assoc [
+ ("name", `String name);
+ ("image", `String image);
+ ("roles", `List []);
+ ])
+
+ let create_role ~name ?colour ?permissions ?hoist ?mentionable guild =
+ let payload = ("name", `String name) :: [] in
+ let payload = match permissions with
+ | Some p -> ("permissions", `Int p) :: payload
+ | None -> payload
+ in let payload = match colour with
+ | Some c -> ("color", `Int c) :: payload
+ | None -> payload
+ in let payload = match hoist with
+ | Some h -> ("hoist", `Bool h) :: payload
+ | None -> payload
+ in let payload = match mentionable with
+ | Some m -> ("mentionable", `Bool m) :: payload
+ | None -> payload
+ in Http.guild_role_add (get_id guild) (`Assoc payload)
+
+ let create_channel ~mode ~name guild =
+ let kind = match mode with
+ | `Text -> 0
+ | `Voice -> 2
+ | `Category -> 4
+ in Http.create_guild_channel (get_id guild) (`Assoc [
+ ("name", `String name);
+ ("type", `Int kind);
+ ])
+
+ let delete guild =
+ Http.delete_guild (get_id guild)
+
+ let get_ban ~id guild =
+ Http.get_ban (get_id guild) id
+
+ let get_bans guild =
+ Http.get_bans (get_id guild)
+
+ let get_emoji ~id guild =
+ Http.get_emoji (get_id guild) id
+
+ (* TODO add invite abstraction? *)
+ let get_invites guild =
+ Http.get_guild_invites (get_id guild)
+
+ let get_prune_count ~days guild =
+ Http.guild_prune_count (get_id guild) days
+
+ (* TODO add webhook abstraction? *)
+ let get_webhooks guild =
+ Http.get_guild_webhooks (get_id guild)
+
+ let kick_user ~id ?reason guild =
+ let payload = match reason with
+ | Some r -> `Assoc [("reason", `String r)]
+ | None -> `Null
+ in Http.remove_member (get_id guild) id payload
+
+ let leave guild =
+ Http.leave_guild (get_id guild)
+
+ (* TODO Voice region abstractions? *)
+ let list_voice_regions guild =
+ Http.get_guild_voice_regions (get_id guild)
+
+ let prune ~days guild =
+ Http.guild_prune_start (get_id guild) days
+
+ let request_members guild =
+ Http.get_members (get_id guild)
+
+ let set_afk_channel ~id guild = Http.edit_guild (get_id guild) (`Assoc [
+ ("afk_channel_id", `Int id);
+ ])
+
+ let set_afk_timeout ~timeout guild = Http.edit_guild (get_id guild) (`Assoc [
+ ("afk_timeout", `Int timeout);
+ ])
+
+ let set_name ~name guild = Http.edit_guild (get_id guild) (`Assoc [
+ ("name", `String name);
+ ])
+
+ let set_icon ~icon guild = Http.edit_guild (get_id guild) (`Assoc [
+ ("icon", `String icon);
+ ])
+
+ let unban_user ~id ?reason guild =
+ let payload = match reason with
+ | Some r -> `Assoc [("reason", `String r)]
+ | None -> `Null
+ in Http.guild_ban_remove (get_id guild) id payload
+end
+
+module User(T : S.HasSnowflake) : S.UserImpl with type t := T.t = struct
+ include T
end
\ No newline at end of file diff --git a/lib/models/channel/channel.ml b/lib/models/channel/channel.ml index 68b3a97..6ccc66d 100644 --- a/lib/models/channel/channel.ml +++ b/lib/models/channel/channel.ml @@ -1,3 +1,3 @@ -include Channel_t - +include Channel_t
+
include Impl.Channel(Channel_t)
\ No newline at end of file diff --git a/lib/models/channel/channel.mli b/lib/models/channel/channel.mli index feb7323..3eece7d 100644 --- a/lib/models/channel/channel.mli +++ b/lib/models/channel/channel.mli @@ -1,3 +1,3 @@ -include module type of Channel_t -include S.ChannelImpl with +include module type of Channel_t
+include S.ChannelImpl with
type t := Channel_t.t
\ No newline at end of file diff --git a/lib/models/channel/channel_t.ml b/lib/models/channel/channel_t.ml index 62d6ac0..b02fa31 100644 --- a/lib/models/channel/channel_t.ml +++ b/lib/models/channel/channel_t.ml @@ -1,118 +1,118 @@ -open Core - -exception Invalid_channel of Yojson.Safe.json - -type group = { - id: Channel_id_t.t; - last_message_id: Message_id.t option [@default None]; - last_pin_timestamp: string option [@default None]; - icon: string option [@default None]; - name: string option [@default None]; - owner_id: User_id_t.t; - recipients: User_t.t list [@default []]; -} [@@deriving sexp, yojson { strict = false}] - -type dm = { - id: Channel_id_t.t; - last_message_id: Message_id.t option [@default None]; - last_pin_timestamp: string option [@default None]; -} [@@deriving sexp, yojson { strict = false}] - -type guild_text = { - id: Channel_id_t.t; - last_message_id: Message_id.t option [@default None]; - last_pin_timestamp: string option [@default None]; - category_id: Channel_id_t.t option [@default None][@key "parent_id"]; - guild_id: Guild_id_t.t option [@default None]; - name: string; - position: int; - topic: string option [@default None]; - nsfw: bool; - slow_mode_timeout: int option [@default None]; -} [@@deriving sexp, yojson { strict = false}] - -type guild_voice = { - id: Channel_id_t.t; - category_id: Channel_id_t.t option [@default None][@key "parent_id"]; - guild_id: Guild_id_t.t option [@default None]; - name: string; - position: int; - user_limit: int [@default -1]; - bitrate: int option [@default None]; -} [@@deriving sexp, yojson { strict = false}] - -type category = { - id: Channel_id_t.t; - guild_id: Guild_id_t.t option [@default None]; - position: int; - name: string; -} [@@deriving sexp, yojson { strict = false}] - -type t = -| Group of group -| Private of dm -| GuildText of guild_text -| GuildVoice of guild_voice -| Category of category -[@@deriving sexp, yojson { strict = false}] - -type channel_wrapper = { - id: Channel_id_t.t; - kind: int [@key "type"]; - guild_id: Guild_id_t.t option [@default None]; - position: int option [@default None]; - name: string option [@default None]; - topic: string option [@default None]; - nsfw: bool option [@default None]; - last_message_id: Message_id.t option [@default None]; - bitrate: int option [@default None]; - user_limit: int option [@default None]; - slow_mode_timeout: int option [@default None]; - recipients: User_t.t list option [@default None]; - icon: string option [@default None]; - owner_id: User_id_t.t option [@default None]; - application_id: Snowflake.t option [@default None]; - category_id: Channel_id_t.t option [@default None][@key "parent_id"]; - last_pin_timestamp: string option [@default None]; -} [@@deriving sexp, yojson { strict = false}] - -let unwrap_as_guild_text {id;guild_id;position;name;topic;nsfw;last_message_id;slow_mode_timeout;category_id;last_pin_timestamp;_} = - let position = Option.value_exn position in - let name = Option.value_exn name in - let nsfw = Option.value ~default:false nsfw in - { id; guild_id; position; name; topic; nsfw; last_message_id; slow_mode_timeout; category_id; last_pin_timestamp } - -let unwrap_as_guild_voice {id;guild_id;position;name;bitrate;user_limit;category_id;_} = - let position = Option.value_exn position in - let name = Option.value_exn name in - let user_limit = Option.value ~default:(-1) user_limit in - { id; guild_id; position; name; user_limit; bitrate ; category_id; } - -let unwrap_as_dm {id;last_message_id;last_pin_timestamp;_} = - { id; last_message_id; last_pin_timestamp; } - -let unwrap_as_group {id;name;last_message_id;recipients;icon;owner_id;last_pin_timestamp;_} = - let recipients = Option.value ~default:[] recipients in - let owner_id = Option.value_exn owner_id in - { id; name; last_message_id; recipients; icon; owner_id; last_pin_timestamp; } - -let unwrap_as_category {id;guild_id;position;name;_} = - let position = Option.value_exn position in - let name = Option.value_exn name in - { id; guild_id; position; name; } - -let wrap s = - match s.kind with - | 0 -> GuildText (unwrap_as_guild_text s) - | 1 -> Private (unwrap_as_dm s) - | 2 -> GuildVoice (unwrap_as_guild_voice s) - | 3 -> Group (unwrap_as_group s) - | 4 -> Category (unwrap_as_category s) - | _ -> raise (Invalid_channel (channel_wrapper_to_yojson s)) - -let get_id = function -| Group g -> let `Channel_id id = g.id in id -| Private p -> let `Channel_id id = p.id in id -| GuildText t -> let `Channel_id id = t.id in id -| GuildVoice v -> let `Channel_id id = v.id in id +open Core
+
+exception Invalid_channel of Yojson.Safe.json
+
+type group = {
+ id: Channel_id_t.t;
+ last_message_id: Message_id.t option [@default None];
+ last_pin_timestamp: string option [@default None];
+ icon: string option [@default None];
+ name: string option [@default None];
+ owner_id: User_id_t.t;
+ recipients: User_t.t list [@default []];
+} [@@deriving sexp, yojson { strict = false}]
+
+type dm = {
+ id: Channel_id_t.t;
+ last_message_id: Message_id.t option [@default None];
+ last_pin_timestamp: string option [@default None];
+} [@@deriving sexp, yojson { strict = false}]
+
+type guild_text = {
+ id: Channel_id_t.t;
+ last_message_id: Message_id.t option [@default None];
+ last_pin_timestamp: string option [@default None];
+ category_id: Channel_id_t.t option [@default None][@key "parent_id"];
+ guild_id: Guild_id_t.t option [@default None];
+ name: string;
+ position: int;
+ topic: string option [@default None];
+ nsfw: bool;
+ slow_mode_timeout: int option [@default None];
+} [@@deriving sexp, yojson { strict = false}]
+
+type guild_voice = {
+ id: Channel_id_t.t;
+ category_id: Channel_id_t.t option [@default None][@key "parent_id"];
+ guild_id: Guild_id_t.t option [@default None];
+ name: string;
+ position: int;
+ user_limit: int [@default -1];
+ bitrate: int option [@default None];
+} [@@deriving sexp, yojson { strict = false}]
+
+type category = {
+ id: Channel_id_t.t;
+ guild_id: Guild_id_t.t option [@default None];
+ position: int;
+ name: string;
+} [@@deriving sexp, yojson { strict = false}]
+
+type t =
+| Group of group
+| Private of dm
+| GuildText of guild_text
+| GuildVoice of guild_voice
+| Category of category
+[@@deriving sexp, yojson { strict = false}]
+
+type channel_wrapper = {
+ id: Channel_id_t.t;
+ kind: int [@key "type"];
+ guild_id: Guild_id_t.t option [@default None];
+ position: int option [@default None];
+ name: string option [@default None];
+ topic: string option [@default None];
+ nsfw: bool option [@default None];
+ last_message_id: Message_id.t option [@default None];
+ bitrate: int option [@default None];
+ user_limit: int option [@default None];
+ slow_mode_timeout: int option [@default None];
+ recipients: User_t.t list option [@default None];
+ icon: string option [@default None];
+ owner_id: User_id_t.t option [@default None];
+ application_id: Snowflake.t option [@default None];
+ category_id: Channel_id_t.t option [@default None][@key "parent_id"];
+ last_pin_timestamp: string option [@default None];
+} [@@deriving sexp, yojson { strict = false}]
+
+let unwrap_as_guild_text {id;guild_id;position;name;topic;nsfw;last_message_id;slow_mode_timeout;category_id;last_pin_timestamp;_} =
+ let position = Option.value_exn position in
+ let name = Option.value_exn name in
+ let nsfw = Option.value ~default:false nsfw in
+ { id; guild_id; position; name; topic; nsfw; last_message_id; slow_mode_timeout; category_id; last_pin_timestamp }
+
+let unwrap_as_guild_voice {id;guild_id;position;name;bitrate;user_limit;category_id;_} =
+ let position = Option.value_exn position in
+ let name = Option.value_exn name in
+ let user_limit = Option.value ~default:(-1) user_limit in
+ { id; guild_id; position; name; user_limit; bitrate ; category_id; }
+
+let unwrap_as_dm {id;last_message_id;last_pin_timestamp;_} =
+ { id; last_message_id; last_pin_timestamp; }
+
+let unwrap_as_group {id;name;last_message_id;recipients;icon;owner_id;last_pin_timestamp;_} =
+ let recipients = Option.value ~default:[] recipients in
+ let owner_id = Option.value_exn owner_id in
+ { id; name; last_message_id; recipients; icon; owner_id; last_pin_timestamp; }
+
+let unwrap_as_category {id;guild_id;position;name;_} =
+ let position = Option.value_exn position in
+ let name = Option.value_exn name in
+ { id; guild_id; position; name; }
+
+let wrap s =
+ match s.kind with
+ | 0 -> GuildText (unwrap_as_guild_text s)
+ | 1 -> Private (unwrap_as_dm s)
+ | 2 -> GuildVoice (unwrap_as_guild_voice s)
+ | 3 -> Group (unwrap_as_group s)
+ | 4 -> Category (unwrap_as_category s)
+ | _ -> raise (Invalid_channel (channel_wrapper_to_yojson s))
+
+let get_id = function
+| Group g -> let `Channel_id id = g.id in id
+| Private p -> let `Channel_id id = p.id in id
+| GuildText t -> let `Channel_id id = t.id in id
+| GuildVoice v -> let `Channel_id id = v.id in id
| Category c -> let `Channel_id id = c.id in id
\ No newline at end of file diff --git a/lib/models/channel/channel_t.mli b/lib/models/channel/channel_t.mli index 9deea82..711b319 100644 --- a/lib/models/channel/channel_t.mli +++ b/lib/models/channel/channel_t.mli @@ -1,96 +1,96 @@ -exception Invalid_channel of Yojson.Safe.json - -(** Represents a Group channel object. *) -type group = { - id: Channel_id_t.t; - last_message_id: Message_id.t option; - last_pin_timestamp: string option; - icon: string option; - name: string option; - owner_id: User_id_t.t; - recipients: User_t.t list; -} [@@deriving sexp, yojson] - -(** Represents a private channel with a single user. *) -type dm = { - id: Channel_id_t.t; - last_message_id: Message_id.t option; - last_pin_timestamp: string option; -} [@@deriving sexp, yojson] - -(** Represents a text channel in a guild. *) -type guild_text = { - id: Channel_id_t.t; - last_message_id: Message_id.t option; - last_pin_timestamp: string option; - category_id: Channel_id_t.t option; - guild_id: Guild_id_t.t option; - name: string; - position: int; - topic: string option; - nsfw: bool; - slow_mode_timeout: int option; -} [@@deriving sexp, yojson] - -(** Represents a voice channel in a guild. *) -type guild_voice = { - id: Channel_id_t.t; - category_id: Channel_id_t.t option; - guild_id: Guild_id_t.t option; - name: string; - position: int; - user_limit: int; - bitrate: int option; -} [@@deriving sexp, yojson] - -(** Represents a guild category. *) -type category = { - id: Channel_id_t.t; - guild_id: Guild_id_t.t option; - position: int; - name: string; -} [@@deriving sexp, yojson] - -(** 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] - -(** Intermediate used internally. *) -type channel_wrapper = { - id: Channel_id_t.t; - kind: int; - guild_id: Guild_id_t.t option; - position: int option; - name: string option; - topic: string option; - nsfw: bool option; - last_message_id: Message_id.t option; - bitrate: int option; - user_limit: int option; - slow_mode_timeout: int option; - recipients: User_t.t list option; - icon: string option; - owner_id: User_id_t.t option; - application_id: Snowflake.t option; - category_id: Channel_id_t.t option; - last_pin_timestamp: string option; -} [@@deriving sexp, yojson] - -val unwrap_as_guild_text : channel_wrapper -> guild_text - -val unwrap_as_guild_voice : channel_wrapper -> guild_voice - -val unwrap_as_dm : channel_wrapper -> dm - -val unwrap_as_group : channel_wrapper -> group - -val unwrap_as_category : channel_wrapper -> category - -val wrap : channel_wrapper -> t - +exception Invalid_channel of Yojson.Safe.json
+
+(** Represents a Group channel object. *)
+type group = {
+ id: Channel_id_t.t;
+ last_message_id: Message_id.t option;
+ last_pin_timestamp: string option;
+ icon: string option;
+ name: string option;
+ owner_id: User_id_t.t;
+ recipients: User_t.t list;
+} [@@deriving sexp, yojson]
+
+(** Represents a private channel with a single user. *)
+type dm = {
+ id: Channel_id_t.t;
+ last_message_id: Message_id.t option;
+ last_pin_timestamp: string option;
+} [@@deriving sexp, yojson]
+
+(** Represents a text channel in a guild. *)
+type guild_text = {
+ id: Channel_id_t.t;
+ last_message_id: Message_id.t option;
+ last_pin_timestamp: string option;
+ category_id: Channel_id_t.t option;
+ guild_id: Guild_id_t.t option;
+ name: string;
+ position: int;
+ topic: string option;
+ nsfw: bool;
+ slow_mode_timeout: int option;
+} [@@deriving sexp, yojson]
+
+(** Represents a voice channel in a guild. *)
+type guild_voice = {
+ id: Channel_id_t.t;
+ category_id: Channel_id_t.t option;
+ guild_id: Guild_id_t.t option;
+ name: string;
+ position: int;
+ user_limit: int;
+ bitrate: int option;
+} [@@deriving sexp, yojson]
+
+(** Represents a guild category. *)
+type category = {
+ id: Channel_id_t.t;
+ guild_id: Guild_id_t.t option;
+ position: int;
+ name: string;
+} [@@deriving sexp, yojson]
+
+(** 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]
+
+(** Intermediate used internally. *)
+type channel_wrapper = {
+ id: Channel_id_t.t;
+ kind: int;
+ guild_id: Guild_id_t.t option;
+ position: int option;
+ name: string option;
+ topic: string option;
+ nsfw: bool option;
+ last_message_id: Message_id.t option;
+ bitrate: int option;
+ user_limit: int option;
+ slow_mode_timeout: int option;
+ recipients: User_t.t list option;
+ icon: string option;
+ owner_id: User_id_t.t option;
+ application_id: Snowflake.t option;
+ category_id: Channel_id_t.t option;
+ last_pin_timestamp: string option;
+} [@@deriving sexp, yojson]
+
+val unwrap_as_guild_text : channel_wrapper -> guild_text
+
+val unwrap_as_guild_voice : channel_wrapper -> guild_voice
+
+val unwrap_as_dm : channel_wrapper -> dm
+
+val unwrap_as_group : channel_wrapper -> group
+
+val unwrap_as_category : channel_wrapper -> category
+
+val wrap : channel_wrapper -> t
+
val get_id : t -> Snowflake.t
\ No newline at end of file diff --git a/lib/models/channel/message/attachment.mli b/lib/models/channel/message/attachment.mli index 2780011..f935471 100644 --- a/lib/models/channel/message/attachment.mli +++ b/lib/models/channel/message/attachment.mli @@ -1,9 +1,9 @@ -type t = { - id: Snowflake.t; - filename: string; - size: int; - url: string; - proxy_url: string; - height: int; - width: int; +type t = {
+ id: Snowflake.t;
+ filename: string;
+ size: int;
+ url: string;
+ proxy_url: string;
+ height: int;
+ width: int;
} [@@deriving sexp, yojson]
\ No newline at end of file diff --git a/lib/models/channel/message/embed.ml b/lib/models/channel/message/embed.ml index 9f9aacd..584d3c7 100644 --- a/lib/models/channel/message/embed.ml +++ b/lib/models/channel/message/embed.ml @@ -1,121 +1,121 @@ -open Core - -type footer = { - text: string; - icon_url: string option [@default None]; - proxy_icon_url: string option [@default None]; -} [@@deriving sexp, yojson] - -type image = { - url: string option [@default None]; - proxy_url: string option [@default None]; - height: int option [@default None]; - width: int option [@default None]; -} [@@deriving sexp, yojson] - -type video = { - url: string option [@default None]; - height: int option [@default None]; - width: int option [@default None]; -} [@@deriving sexp, yojson] - -type provider = { - name: string option [@default None]; - url: string option [@default None]; -} [@@deriving sexp, yojson] - -type author = { - name: string option [@default None]; - url: string option [@default None]; - icon_url: string option [@default None]; - proxy_icon_url: string option [@default None]; -} [@@deriving sexp, yojson] - -type field = { - name: string; - value: string; - inline: bool [@default false]; -} [@@deriving sexp, yojson] - -type t = { - title: string option [@default None]; - kind: string option [@default None][@key "type"]; - description: string option [@default None]; - url: string option [@default None]; - timestamp: string option [@default None]; - colour: int option [@default None][@key "color"]; - footer: footer option [@default None]; - image: image option [@default None]; - thumbnail: image option [@default None]; - video: video option [@default None]; - provider: provider option [@default None]; - author: author option [@default None]; - fields: field list [@default []]; -} [@@deriving sexp, yojson { strict = false }] - -let default = { - title = None; - kind = None; - description = None; - url = None; - timestamp = None; - colour = None; - footer = None; - image = None; - thumbnail = None; - video = None; - provider = None; - author = None; - fields = []; -} - -let default_footer = { - text = ""; - icon_url = None; - proxy_icon_url = None; -} - -let default_image = { - url = None; - proxy_url = None; - height = None; - width = None; -} - -let default_video = { - url = None; - width = None; - height = None; -} - -let default_provider = { - name = None; - url = None; -} - -let default_author = { - name = None; - url = None; - icon_url = None; - proxy_icon_url = None; -} - -let title v e = { e with title = Some v } -let description v e = { e with description = Some v } -let url v e = { e with url = Some v } -let timestamp v e = { e with timestamp = Some v } -let colour v e = { e with colour = Some v } -let color v e = { e with colour = Some v } -let footer f e = { e with footer = Some (f default_footer) } -let image v e = { e with image = Some { default_image with url = Some v } } -let thumbnail v e = { e with thumbnail = Some { default_image with url = Some v } } -let author f e = { e with author = Some (f default_author) } -let field (name, value, inline) e = { e with fields = { name; value; inline; }::e.fields } -let fields l e = { e with fields = List.map ~f:(fun (name, value, inline) -> { name; value; inline; }) l } - -let footer_text v f : footer = { f with text = v } -let footer_icon v f : footer = { f with icon_url = Some v } - -let author_name v a : author = { a with name = Some v } -let author_url v a : author = { a with url = Some v } +open Core
+
+type footer = {
+ text: string;
+ icon_url: string option [@default None];
+ proxy_icon_url: string option [@default None];
+} [@@deriving sexp, yojson]
+
+type image = {
+ url: string option [@default None];
+ proxy_url: string option [@default None];
+ height: int option [@default None];
+ width: int option [@default None];
+} [@@deriving sexp, yojson]
+
+type video = {
+ url: string option [@default None];
+ height: int option [@default None];
+ width: int option [@default None];
+} [@@deriving sexp, yojson]
+
+type provider = {
+ name: string option [@default None];
+ url: string option [@default None];
+} [@@deriving sexp, yojson]
+
+type author = {
+ name: string option [@default None];
+ url: string option [@default None];
+ icon_url: string option [@default None];
+ proxy_icon_url: string option [@default None];
+} [@@deriving sexp, yojson]
+
+type field = {
+ name: string;
+ value: string;
+ inline: bool [@default false];
+} [@@deriving sexp, yojson]
+
+type t = {
+ title: string option [@default None];
+ kind: string option [@default None][@key "type"];
+ description: string option [@default None];
+ url: string option [@default None];
+ timestamp: string option [@default None];
+ colour: int option [@default None][@key "color"];
+ footer: footer option [@default None];
+ image: image option [@default None];
+ thumbnail: image option [@default None];
+ video: video option [@default None];
+ provider: provider option [@default None];
+ author: author option [@default None];
+ fields: field list [@default []];
+} [@@deriving sexp, yojson { strict = false }]
+
+let default = {
+ title = None;
+ kind = None;
+ description = None;
+ url = None;
+ timestamp = None;
+ colour = None;
+ footer = None;
+ image = None;
+ thumbnail = None;
+ video = None;
+ provider = None;
+ author = None;
+ fields = [];
+}
+
+let default_footer = {
+ text = "";
+ icon_url = None;
+ proxy_icon_url = None;
+}
+
+let default_image = {
+ url = None;
+ proxy_url = None;
+ height = None;
+ width = None;
+}
+
+let default_video = {
+ url = None;
+ width = None;
+ height = None;
+}
+
+let default_provider = {
+ name = None;
+ url = None;
+}
+
+let default_author = {
+ name = None;
+ url = None;
+ icon_url = None;
+ proxy_icon_url = None;
+}
+
+let title v e = { e with title = Some v }
+let description v e = { e with description = Some v }
+let url v e = { e with url = Some v }
+let timestamp v e = { e with timestamp = Some v }
+let colour v e = { e with colour = Some v }
+let color v e = { e with colour = Some v }
+let footer f e = { e with footer = Some (f default_footer) }
+let image v e = { e with image = Some { default_image with url = Some v } }
+let thumbnail v e = { e with thumbnail = Some { default_image with url = Some v } }
+let author f e = { e with author = Some (f default_author) }
+let field (name, value, inline) e = { e with fields = { name; value; inline; }::e.fields }
+let fields l e = { e with fields = List.map ~f:(fun (name, value, inline) -> { name; value; inline; }) l }
+
+let footer_text v f : footer = { f with text = v }
+let footer_icon v f : footer = { f with icon_url = Some v }
+
+let author_name v a : author = { a with name = Some v }
+let author_url v a : author = { a with url = Some v }
let author_icon v a : author = { a with icon_url = Some v }
\ No newline at end of file diff --git a/lib/models/channel/message/embed.mli b/lib/models/channel/message/embed.mli index 411d8cc..d30d015 100644 --- a/lib/models/channel/message/embed.mli +++ b/lib/models/channel/message/embed.mli @@ -1,128 +1,128 @@ -(** A footer object belonging to an embed. *) -type footer = { - text: string; - icon_url: string option; - proxy_icon_url: string option; -} [@@deriving sexp, yojson] - -(** An image object belonging to an embed. *) -type image = { - url: string option; - proxy_url: string option; - height: int option; - width: int option; -} [@@deriving sexp, yojson] - -(** A video object belonging to an embed. *) -type video = { - url: string option; - height: int option; - width: int option; -} [@@deriving sexp, yojson] - -(** A provider object belonging to an embed. *) -type provider = { - name: string option; - url: string option; -} [@@deriving sexp, yojson] - -(** An author object belonging to an embed. *) -type author = { - name: string option; - url: string option; - icon_url: string option; - proxy_icon_url: string option; -} [@@deriving sexp, yojson] - -(** A field object belonging to an embed. *) -type field = { - name: string; - value: string; - inline: bool; -} [@@deriving sexp, yojson] - -(** An embed object. See this {{:https://leovoel.github.io/embed-visualizer/}embed visualiser} if you need help understanding each component. *) -type t = { - title: string option; - kind: string option[@key "type"]; - description: string option; - url: string option; - timestamp: string option; - colour: int option[@key "color"]; - footer: footer option; - image: image option; - thumbnail: image option; - video: video option; - provider: provider option; - author: author option; - fields: field list [@default []]; -} [@@deriving sexp, yojson { strict = false }] - -(** An embed where all values are empty. *) -val default : t - -(** A footer where all values are empty. *) -val default_footer : footer - -(** An image where all values are empty. *) -val default_image : image - -(** A video where all values are empty. *) -val default_video : video - -(** A provider where all values are empty. *) -val default_provider : provider - -(** An author where all values are empty. *) -val default_author : author - -(** Set the title of an embed. *) -val title : string -> t -> t - -(** Set the description of an embed. *) -val description : string -> t -> t - -(** Set the URL of an embed. *) -val url : string -> t -> t - -(** Set the timestamp of an embed. *) -val timestamp : string -> t -> t - -(** Set the colour of an embed. *) -val colour : int -> t -> t - -(** Identical to {!colour} but with US English spelling. *) -val color : int -> t -> t - -(** Set the footer of an embed. The function passes {!default_footer} and must return a footer. *) -val footer : (footer -> footer) -> t -> t - -(** Set the image URL of an embed. *) -val image : string -> t -> t - -(** Set the thumbnail URL of an embed. *) -val thumbnail : string -> t -> t - -(** Set the author of an embed. The function passes {!default_author} and must return an author. *) -val author : (author -> author) -> t -> t - -(** Add a field to an embed. Takes a tuple in [(name, value, inline)] order. {b Fields added this way will appear in reverse order in the embed.} *) -val field : string * string * bool -> t -> t - -(** Set the fields of an embed. Similar to {!val:field}, but because a complete list is passed, fields preserve order. *) -val fields : (string * string * bool) list -> t -> t - -(** Set the footer text. Typically used in the closure passed to {!val:footer}. *) -val footer_text : string -> footer -> footer - -(** Set the footer icon URL. Typically used in the closure passed to {!val:footer}. *) -val footer_icon : string -> footer -> footer - -(** Set the author name. Typically used in the closure passed to {!val:author}. *) -val author_name : string -> author -> author - -(** Set the author URL. Typically used in the closure passed to {!val:author}. *) -val author_url : string -> author -> author - -(** Set the author icon URL. Typically used in the closure passed to {!val:author}. *) +(** A footer object belonging to an embed. *)
+type footer = {
+ text: string;
+ icon_url: string option;
+ proxy_icon_url: string option;
+} [@@deriving sexp, yojson]
+
+(** An image object belonging to an embed. *)
+type image = {
+ url: string option;
+ proxy_url: string option;
+ height: int option;
+ width: int option;
+} [@@deriving sexp, yojson]
+
+(** A video object belonging to an embed. *)
+type video = {
+ url: string option;
+ height: int option;
+ width: int option;
+} [@@deriving sexp, yojson]
+
+(** A provider object belonging to an embed. *)
+type provider = {
+ name: string option;
+ url: string option;
+} [@@deriving sexp, yojson]
+
+(** An author object belonging to an embed. *)
+type author = {
+ name: string option;
+ url: string option;
+ icon_url: string option;
+ proxy_icon_url: string option;
+} [@@deriving sexp, yojson]
+
+(** A field object belonging to an embed. *)
+type field = {
+ name: string;
+ value: string;
+ inline: bool;
+} [@@deriving sexp, yojson]
+
+(** An embed object. See this {{:https://leovoel.github.io/embed-visualizer/}embed visualiser} if you need help understanding each component. *)
+type t = {
+ title: string option;
+ kind: string option[@key "type"];
+ description: string option;
+ url: string option;
+ timestamp: string option;
+ colour: int option[@key "color"];
+ footer: footer option;
+ image: image option;
+ thumbnail: image option;
+ video: video option;
+ provider: provider option;
+ author: author option;
+ fields: field list [@default []];
+} [@@deriving sexp, yojson { strict = false }]
+
+(** An embed where all values are empty. *)
+val default : t
+
+(** A footer where all values are empty. *)
+val default_footer : footer
+
+(** An image where all values are empty. *)
+val default_image : image
+
+(** A video where all values are empty. *)
+val default_video : video
+
+(** A provider where all values are empty. *)
+val default_provider : provider
+
+(** An author where all values are empty. *)
+val default_author : author
+
+(** Set the title of an embed. *)
+val title : string -> t -> t
+
+(** Set the description of an embed. *)
+val description : string -> t -> t
+
+(** Set the URL of an embed. *)
+val url : string -> t -> t
+
+(** Set the timestamp of an embed. *)
+val timestamp : string -> t -> t
+
+(** Set the colour of an embed. *)
+val colour : int -> t -> t
+
+(** Identical to {!colour} but with US English spelling. *)
+val color : int -> t -> t
+
+(** Set the footer of an embed. The function passes {!default_footer} and must return a footer. *)
+val footer : (footer -> footer) -> t -> t
+
+(** Set the image URL of an embed. *)
+val image : string -> t -> t
+
+(** Set the thumbnail URL of an embed. *)
+val thumbnail : string -> t -> t
+
+(** Set the author of an embed. The function passes {!default_author} and must return an author. *)
+val author : (author -> author) -> t -> t
+
+(** Add a field to an embed. Takes a tuple in [(name, value, inline)] order. {b Fields added this way will appear in reverse order in the embed.} *)
+val field : string * string * bool -> t -> t
+
+(** Set the fields of an embed. Similar to {!val:field}, but because a complete list is passed, fields preserve order. *)
+val fields : (string * string * bool) list -> t -> t
+
+(** Set the footer text. Typically used in the closure passed to {!val:footer}. *)
+val footer_text : string -> footer -> footer
+
+(** Set the footer icon URL. Typically used in the closure passed to {!val:footer}. *)
+val footer_icon : string -> footer -> footer
+
+(** Set the author name. Typically used in the closure passed to {!val:author}. *)
+val author_name : string -> author -> author
+
+(** Set the author URL. Typically used in the closure passed to {!val:author}. *)
+val author_url : string -> author -> author
+
+(** Set the author icon URL. Typically used in the closure passed to {!val:author}. *)
val author_icon : string -> author -> author
\ No newline at end of file diff --git a/lib/models/channel/message/message.ml b/lib/models/channel/message/message.ml index a64c09d..43929d2 100644 --- a/lib/models/channel/message/message.ml +++ b/lib/models/channel/message/message.ml @@ -1,67 +1,67 @@ -open Async -include Message_t - -let add_reaction msg (emoji:Emoji.t) = - let `Message_id id = msg.id in - let `Channel_id channel_id = msg.channel_id in - let e = match emoji.id with - | Some i -> Printf.sprintf "%s:%d" emoji.name i - | None -> emoji.name - in - Http.create_reaction channel_id id e - - -let remove_reaction msg (emoji:Emoji.t) (user:User_t.t) = - let `Message_id id = msg.id in - let `Channel_id channel_id = msg.channel_id in - let `User_id user_id = user.id in - let e = match emoji.id with - | Some i -> Printf.sprintf "%s:%d" emoji.name i - | None -> emoji.name - in - Http.delete_reaction channel_id id e user_id - - -let clear_reactions msg = - let `Message_id id = msg.id in - let `Channel_id channel_id = msg.channel_id in - Http.delete_reactions channel_id id - - -let delete msg = - let `Message_id id = msg.id in - let `Channel_id channel_id = msg.channel_id in - Http.delete_message channel_id id - - -let pin msg = - let `Message_id id = msg.id in - let `Channel_id channel_id = msg.channel_id in - Http.pin_message channel_id id - - -let unpin msg = - let `Message_id id = msg.id in - let `Channel_id channel_id = msg.channel_id in - Http.unpin_message channel_id id - - -let reply msg content = - Channel_id.say content msg.channel_id - -let reply_with ?embed ?content ?file ?tts msg = - Channel_id.send_message ?embed ?content ?file ?tts msg.channel_id - -let set_content msg cont = - let `Message_id id = msg.id in - let `Channel_id channel_id = msg.channel_id in - to_yojson { msg with content = cont; } - |> Http.edit_message channel_id id - - -let set_embed msg embed = - let `Message_id id = msg.id in - let `Channel_id channel_id = msg.channel_id in - to_yojson { msg with embeds = [embed]; } - |> Http.edit_message channel_id id +open Async
+include Message_t
+
+let add_reaction msg (emoji:Emoji.t) =
+ let `Message_id id = msg.id in
+ let `Channel_id channel_id = msg.channel_id in
+ let e = match emoji.id with
+ | Some i -> Printf.sprintf "%s:%d" emoji.name i
+ | None -> emoji.name
+ in
+ Http.create_reaction channel_id id e
+
+
+let remove_reaction msg (emoji:Emoji.t) (user:User_t.t) =
+ let `Message_id id = msg.id in
+ let `Channel_id channel_id = msg.channel_id in
+ let `User_id user_id = user.id in
+ let e = match emoji.id with
+ | Some i -> Printf.sprintf "%s:%d" emoji.name i
+ | None -> emoji.name
+ in
+ Http.delete_reaction channel_id id e user_id
+
+
+let clear_reactions msg =
+ let `Message_id id = msg.id in
+ let `Channel_id channel_id = msg.channel_id in
+ Http.delete_reactions channel_id id
+
+
+let delete msg =
+ let `Message_id id = msg.id in
+ let `Channel_id channel_id = msg.channel_id in
+ Http.delete_message channel_id id
+
+
+let pin msg =
+ let `Message_id id = msg.id in
+ let `Channel_id channel_id = msg.channel_id in
+ Http.pin_message channel_id id
+
+
+let unpin msg =
+ let `Message_id id = msg.id in
+ let `Channel_id channel_id = msg.channel_id in
+ Http.unpin_message channel_id id
+
+
+let reply msg content =
+ Channel_id.say content msg.channel_id
+
+let reply_with ?embed ?content ?file ?tts msg =
+ Channel_id.send_message ?embed ?content ?file ?tts msg.channel_id
+
+let set_content msg cont =
+ let `Message_id id = msg.id in
+ let `Channel_id channel_id = msg.channel_id in
+ to_yojson { msg with content = cont; }
+ |> Http.edit_message channel_id id
+
+
+let set_embed msg embed =
+ let `Message_id id = msg.id in
+ let `Channel_id channel_id = msg.channel_id in
+ to_yojson { msg with embeds = [embed]; }
+ |> Http.edit_message channel_id id
\ No newline at end of file diff --git a/lib/models/channel/message/message.mli b/lib/models/channel/message/message.mli index 09e62a4..56e1c98 100644 --- a/lib/models/channel/message/message.mli +++ b/lib/models/channel/message/message.mli @@ -1,20 +1,39 @@ -open Async - -include module type of Message_t - -val add_reaction : t -> Emoji.t -> unit Deferred.Or_error.t -val remove_reaction : t -> Emoji.t -> User_t.t -> unit Deferred.Or_error.t -val clear_reactions : t -> unit Deferred.Or_error.t -val delete : t -> unit Deferred.Or_error.t -val pin : t -> unit Deferred.Or_error.t -val unpin : t -> unit Deferred.Or_error.t -val reply : t -> string -> t Deferred.Or_error.t -val reply_with : - ?embed:Embed.t -> - ?content:string -> - ?file:string -> - ?tts:bool -> - t -> - Message_t.t Deferred.Or_error.t -val set_content : t -> string -> t Deferred.Or_error.t +open Async
+
+include module type of Message_t
+
+(** Add the given emoji as a reaction. *)
+val add_reaction : t -> Emoji.t -> unit Deferred.Or_error.t
+
+(** Remove the reaction. Must also specify the user. *)
+val remove_reaction : t -> Emoji.t -> User_t.t -> unit Deferred.Or_error.t
+
+(** Remove all reactions from the message. *)
+val clear_reactions : t -> unit Deferred.Or_error.t
+
+(** Delete the message. *)
+val delete : t -> unit Deferred.Or_error.t
+
+(** Pin the message. *)
+val pin : t -> unit Deferred.Or_error.t
+
+(** Unping the message. *)
+val unpin : t -> unit Deferred.Or_error.t
+
+(** Sugar for [Channel_id.say msg.channel_id content]. *)
+val reply : t -> string -> t Deferred.Or_error.t
+
+(** Sugar for [Channel_id.send_message ?embed ?content ?file ?tts msg.channel_id]. *)
+val reply_with :
+ ?embed:Embed.t ->
+ ?content:string ->
+ ?file:string ->
+ ?tts:bool ->
+ t ->
+ Message_t.t Deferred.Or_error.t
+
+(** Set the content of the message. *)
+val set_content : t -> string -> t Deferred.Or_error.t
+
+(** Set the embed of the message. *)
val set_embed : t -> Embed.t -> t Deferred.Or_error.t
\ No newline at end of file diff --git a/lib/models/channel/message/message_t.ml b/lib/models/channel/message/message_t.ml index 3c2e736..fc678f6 100644 --- a/lib/models/channel/message/message_t.ml +++ b/lib/models/channel/message/message_t.ml @@ -1,23 +1,23 @@ -open Core - -type t = { - id: Message_id.t; - author: User_t.t; - channel_id: Channel_id_t.t; - member: Member_t.partial_member option [@default None]; - guild_id: Guild_id_t.t option [@default None]; - content: string; - timestamp: string; - edited_timestamp: string option [@default None]; - tts: bool; - mention_everyone: bool; - mentions: User_t.t list [@default []]; - mention_roles: Role_id.t list [@default []]; - attachments: Attachment.t list [@default []]; - embeds: Embed.t list [@default []]; - reactions: Snowflake.t list [@default []]; - nonce: Snowflake.t option [@default None]; - pinned: bool; - webhook_id: Snowflake.t option [@default None]; - kind: int [@key "type"]; +open Core
+
+type t = {
+ id: Message_id.t;
+ author: User_t.t;
+ channel_id: Channel_id_t.t;
+ member: Member_t.partial_member option [@default None];
+ guild_id: Guild_id_t.t option [@default None];
+ content: string;
+ timestamp: string;
+ edited_timestamp: string option [@default None];
+ tts: bool;
+ mention_everyone: bool;
+ mentions: User_t.t list [@default []];
+ mention_roles: Role_id.t list [@default []];
+ attachments: Attachment.t list [@default []];
+ embeds: Embed.t list [@default []];
+ reactions: Snowflake.t list [@default []];
+ nonce: Snowflake.t option [@default None];
+ pinned: bool;
+ webhook_id: Snowflake.t option [@default None];
+ kind: int [@key "type"];
} [@@deriving sexp, yojson { strict = false}]
\ No newline at end of file diff --git a/lib/models/channel/message/message_t.mli b/lib/models/channel/message/message_t.mli index 1f691b5..de56655 100644 --- a/lib/models/channel/message/message_t.mli +++ b/lib/models/channel/message/message_t.mli @@ -1,22 +1,22 @@ -(** Represents a message object. *) -type t = { - id: Message_id.t; - author: User_t.t; - channel_id: Channel_id_t.t; - member: Member_t.partial_member option; - guild_id: Guild_id_t.t option; - content: string; - timestamp: string; - edited_timestamp: string option; - tts: bool; - mention_everyone: bool; - mentions: User_t.t list; - mention_roles: Role_id.t list; - attachments: Attachment.t list; - embeds: Embed.t list; - reactions: Snowflake.t list; - nonce: Snowflake.t option; - pinned: bool; - webhook_id: Snowflake.t option; - kind: int; +(** Represents a message object. *)
+type t = {
+ id: Message_id.t; (** Snowflake ID of the message. *)
+ author: User_t.t; (** User that authored the message. *)
+ channel_id: Channel_id_t.t; (** Channel ID the message exists in. *)
+ member: Member_t.partial_member option; (** A partial member if the message was sent in a guild. *)
+ guild_id: Guild_id_t.t option; (** Guild ID if the message was sent in a guild. *)
+ content: string; (** Content of the message. *)
+ timestamp: string; (** ISO8601 timestamp of when the message was created. *)
+ edited_timestamp: string option; (** Like timestamp, but for last edit, if any. *)
+ tts: bool; (** Whether the message used text-to-speech. *)
+ mention_everyone: bool; (** Whether the message mentioned [@everyone] or [@here] *)
+ mentions: User_t.t list; (** A List of users that were mentioned in the message. *)
+ mention_roles: Role_id.t list; (** A list of roles that were mentioned in the message. *)
+ attachments: Attachment.t list; (** A list of attachments. *)
+ embeds: Embed.t list; (** A List of embeds on the message. *)
+ reactions: Snowflake.t list; (** A list of reactions. *)
+ nonce: Snowflake.t option; (** Used in verification, safe to ignore. *)
+ pinned: bool; (** Whether the message is pinned. *)
+ webhook_id: Snowflake.t option; (** The webhook ID, if the message was sent by a webhook. *)
+ kind: int; (** See {{:https://discordapp.com/developers/docs/resources/channel#message-object-message-types}the discord docs} for message type enumeration. *)
} [@@deriving sexp, yojson]
\ No newline at end of file diff --git a/lib/models/channel/message/reaction_t.ml b/lib/models/channel/message/reaction_t.ml index 1aa3c84..7c78baf 100644 --- a/lib/models/channel/message/reaction_t.ml +++ b/lib/models/channel/message/reaction_t.ml @@ -1,14 +1,14 @@ -open Core - -type reaction_event = { - user_id: User_id_t.t; - channel_id: Channel_id_t.t; - message_id: Message_id.t; - guild_id: Guild_id_t.t option [@default None]; - emoji: Emoji.partial_emoji; -} [@@deriving sexp, yojson] - -type t = { - count: int; - emoji: Emoji.t; +open Core
+
+type reaction_event = {
+ user_id: User_id_t.t;
+ channel_id: Channel_id_t.t;
+ message_id: Message_id.t;
+ guild_id: Guild_id_t.t option [@default None];
+ emoji: Emoji.partial_emoji;
+} [@@deriving sexp, yojson]
+
+type t = {
+ count: int;
+ emoji: Emoji.t;
} [@@deriving sexp, yojson { strict = false}]
\ No newline at end of file diff --git a/lib/models/channel/message/reaction_t.mli b/lib/models/channel/message/reaction_t.mli index 6c2782a..ace8f55 100644 --- a/lib/models/channel/message/reaction_t.mli +++ b/lib/models/channel/message/reaction_t.mli @@ -1,14 +1,14 @@ -(** Represents a single reaction as received over the gateway. *) -type reaction_event = { - user_id: User_id_t.t; - channel_id: Channel_id_t.t; - message_id: Message_id.t; - guild_id: Guild_id_t.t option; - emoji: Emoji.partial_emoji; -} [@@deriving sexp, yojson] - -(** Represents a number of emojis used as a reaction on a message. *) -type t = { - count: int; - emoji: Emoji.t; +(** Represents a single reaction as received over the gateway. *)
+type reaction_event = {
+ user_id: User_id_t.t;
+ channel_id: Channel_id_t.t;
+ message_id: Message_id.t;
+ guild_id: Guild_id_t.t option;
+ emoji: Emoji.partial_emoji;
+} [@@deriving sexp, yojson]
+
+(** Represents a number of emojis used as a reaction on a message. *)
+type t = {
+ count: int;
+ emoji: Emoji.t;
} [@@deriving sexp, yojson]
\ No newline at end of file diff --git a/lib/models/emoji.ml b/lib/models/emoji.ml index 4d33615..63318a5 100644 --- a/lib/models/emoji.ml +++ b/lib/models/emoji.ml @@ -1,16 +1,16 @@ -open Core - -type partial_emoji = { - id: Snowflake.t option [@default None]; - name: string; -} [@@deriving sexp, yojson { strict = false }] - -type t = { - id: Snowflake.t option [@default None]; - name: string; - roles: Role_id.t list [@default []]; - user: User_t.t option [@default None]; - require_colons: bool [@default false]; - managed: bool [@default false]; - animated: bool [@default false]; +open Core
+
+type partial_emoji = {
+ id: Snowflake.t option [@default None];
+ name: string;
+} [@@deriving sexp, yojson { strict = false }]
+
+type t = {
+ id: Snowflake.t option [@default None];
+ name: string;
+ roles: Role_id.t list [@default []];
+ user: User_t.t option [@default None];
+ require_colons: bool [@default false];
+ managed: bool [@default false];
+ animated: bool [@default false];
} [@@deriving sexp, yojson { strict = false}]
\ No newline at end of file diff --git a/lib/models/emoji.mli b/lib/models/emoji.mli index 1660719..c159a0e 100644 --- a/lib/models/emoji.mli +++ b/lib/models/emoji.mli @@ -1,16 +1,16 @@ -(** A partial emoji, used internally. *) -type partial_emoji = { - id: Snowflake.t option; - name: string; -} [@@deriving sexp, yojson] - -(** A full emoji object. *) -type t = { - id: Snowflake.t option; (** Snowflake ID of the emoji. Only exists for custom emojis. *) - name: string; (** Name of the emoji. Either the emoji custom name or a unicode character. *) - roles: Role_id.t list; (** List of roles required to use this emoji. Is only non-empty on some integration emojis. *) - user: User_t.t option; (** User object of the person who uploaded the emoji. Only exists for custom emojis. *) - require_colons: bool; (** Whether the emoji must be wrapped in colons. Is false for unicode emojis. *) - managed: bool; (** Whether the emoji is managed by an integration. *) - animated: bool; (** Whether the emoji is animated. *) +(** A partial emoji, used internally. *)
+type partial_emoji = {
+ id: Snowflake.t option;
+ name: string;
+} [@@deriving sexp, yojson]
+
+(** A full emoji object. *)
+type t = {
+ id: Snowflake.t option; (** Snowflake ID of the emoji. Only exists for custom emojis. *)
+ name: string; (** Name of the emoji. Either the emoji custom name or a unicode character. *)
+ roles: Role_id.t list; (** List of roles required to use this emoji. Is only non-empty on some integration emojis. *)
+ user: User_t.t option; (** User object of the person who uploaded the emoji. Only exists for custom emojis. *)
+ require_colons: bool; (** Whether the emoji must be wrapped in colons. Is false for unicode emojis. *)
+ managed: bool; (** Whether the emoji is managed by an integration. *)
+ animated: bool; (** Whether the emoji is animated. *)
} [@@deriving sexp, yojson]
\ No newline at end of file diff --git a/lib/models/event_models.ml b/lib/models/event_models.ml index 3cb2aa3..b5eb80d 100644 --- a/lib/models/event_models.ml +++ b/lib/models/event_models.ml @@ -1,371 +1,371 @@ -open Core - -module ChannelCreate = struct - type t = { - channel: Channel_t.t; - } [@@deriving sexp] - - let deserialize ev = - let channel = Channel_t.(channel_wrapper_of_yojson_exn ev |> wrap) in - { channel; } -end - -module ChannelDelete = struct - type t = { - channel: Channel_t.t; - } [@@deriving sexp] - - let deserialize ev = - let channel = Channel_t.(channel_wrapper_of_yojson_exn ev |> wrap) in - { channel; } -end - -module ChannelUpdate = struct - type t = { - channel: Channel_t.t; - } [@@deriving sexp] - - let deserialize ev = - let channel = Channel_t.(channel_wrapper_of_yojson_exn ev |> wrap) in - { channel; } -end - -module ChannelPinsUpdate = struct - type t = { - channel_id: Channel_id.t; - last_pin_timestamp: string option [@default None]; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module ChannelRecipientAdd = struct - type t = { - channel_id: Channel_id.t; - user: User_t.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module ChannelRecipientRemove = struct - type t = { - channel_id: Channel_id.t; - user: User_t.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module GuildBanAdd = struct - type t = { - guild_id: Guild_id.t; - user: User_t.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module GuildBanRemove = struct - type t = { - guild_id: Guild_id.t; - user: User_t.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module GuildCreate = struct - type t = { - guild: Guild_t.t; - } [@@deriving sexp] - - let deserialize ev = - let guild = Guild_t.(pre_of_yojson_exn ev |> wrap) in - { guild; } -end - -module GuildDelete = struct - type t = { - id: Guild_id.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module GuildUpdate = struct - type t = { - guild: Guild_t.t; - } [@@deriving sexp] - - let deserialize ev = - let guild = Guild_t.(pre_of_yojson_exn ev |> wrap) in - { guild; } -end - -module GuildEmojisUpdate = struct - type t = { - emojis: Emoji.t list; - guild_id: Guild_id.t - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -(* TODO guild integrations *) - -module GuildMemberAdd = struct - include Member_t - - let deserialize = of_yojson_exn -end - -module GuildMemberRemove = struct - type t = { - guild_id: Guild_id.t; - user: User_t.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module GuildMemberUpdate = struct - type t = { - guild_id: Guild_id.t; - nick: string option; - roles: Role_id.t list; - user: User_t.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module GuildMembersChunk = struct - type t = { - guild_id: Guild_id.t; - members: (Snowflake.t * Member_t.t) list; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module GuildRoleCreate = struct - type t = { - guild_id: Guild_id.t; - role: Role_t.role; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module GuildRoleDelete = struct - type t = { - guild_id: Guild_id.t; - role_id: Role_id.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module GuildRoleUpdate = struct - type t = { - guild_id: Guild_id.t; - role: Role_t.role; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -(* TODO figure out if this is necessary *) -module GuildUnavailable = struct - type t = { - guild_id: Guild_id.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module MessageCreate = struct - type t = { - message: Message_t.t; - } [@@deriving sexp] - - let deserialize ev = - let message = Message_t.of_yojson_exn ev in - { message; } -end - -module MessageDelete = struct - type t = { - id: Message_id.t; - channel_id: Channel_id.t; - guild_id: Guild_id.t option [@default None]; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module MessageUpdate = struct - type t = { - id: Message_id.t; - author: User_t.t option [@default None]; - channel_id: Channel_id.t; - member: Member_t.partial_member option [@default None]; - guild_id: Guild_id.t option [@default None]; - content: string option [@default None]; - timestamp: string option [@default None]; - editedimestamp: string option [@default None]; - tts: bool option [@default None]; - mention_everyone: bool option [@default None]; - mentions: User_id.t list [@default []]; - role_mentions: Role_id.t list [@default []]; - attachments: Attachment.t list [@default []]; - embeds: Embed.t list [@default []]; - reactions: Snowflake.t list [@default []]; - nonce: Snowflake.t option [@default None]; - pinned: bool option [@default None]; - webhook_id: Snowflake.t option [@default None]; - kind: int option [@default None][@key "type"]; - } [@@deriving sexp, yojson { strict = false}] - - let deserialize = of_yojson_exn -end - -module MessageDeleteBulk = struct - type t = { - guild_id: Guild_id.t option [@default None]; - channel_id: Channel_id.t; - ids: Message_id.t list; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module PresenceUpdate = struct - include Presence - - let deserialize = of_yojson_exn -end - -(* module PresencesReplace = struct - type t = - - let deserialize = of_yojson_exn -end *) - -module ReactionAdd = struct - type t = { - user_id: User_id.t; - channel_id: Channel_id.t; - message_id: Message_id.t; - guild_id: Guild_id.t option [@default None]; - emoji: Emoji.partial_emoji; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module ReactionRemove = struct - type t = { - user_id: User_id.t; - channel_id: Channel_id.t; - message_id: Message_id.t; - guild_id: Guild_id.t option [@default None]; - emoji: Emoji.partial_emoji; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module ReactionRemoveAll = struct - type t = { - channel_id: Channel_id.t; - message_id: Message_id.t; - guild_id: Guild_id.t option [@default None]; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module Ready = struct - type t = { - version: int [@key "v"]; - user: User_t.t; - private_channels: Channel_id.t list; - guilds: Guild_t.unavailable list; - session_id: string; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module Resumed = struct - type t = { - trace: string option list [@key "_trace"]; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module TypingStart = struct - type t = { - channel_id: Channel_id.t; - guild_id: Guild_id.t option [@default None]; - timestamp: int; - user_id: User_id.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module UserUpdate = struct - type t = { - user: User_t.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize ev = - let user = User_t.of_yojson_exn ev in - { user; } -end - -module WebhookUpdate = struct - type t = { - channel_id: Channel_id.t; - guild_id: Guild_id.t; - } [@@deriving sexp, yojson { strict = false }] - - let deserialize = of_yojson_exn -end - -module Unknown = struct - type t = { - kind: string; - value: Yojson.Safe.json; - } - - let deserialize kind value = { kind; value; } -end - -(* module VoiceHeartbeat = struct - -end - -module VoiceHello = struct - -end - -module VoiceServerUpdate = struct - -end - -module VoiceSessionDescription = struct - -end - -module VoiceSpeaking = struct - -end - -module VoiceStateUpdate = struct - +open Core
+
+module ChannelCreate = struct
+ type t = {
+ channel: Channel_t.t;
+ } [@@deriving sexp]
+
+ let deserialize ev =
+ let channel = Channel_t.(channel_wrapper_of_yojson_exn ev |> wrap) in
+ { channel; }
+end
+
+module ChannelDelete = struct
+ type t = {
+ channel: Channel_t.t;
+ } [@@deriving sexp]
+
+ let deserialize ev =
+ let channel = Channel_t.(channel_wrapper_of_yojson_exn ev |> wrap) in
+ { channel; }
+end
+
+module ChannelUpdate = struct
+ type t = {
+ channel: Channel_t.t;
+ } [@@deriving sexp]
+
+ let deserialize ev =
+ let channel = Channel_t.(channel_wrapper_of_yojson_exn ev |> wrap) in
+ { channel; }
+end
+
+module ChannelPinsUpdate = struct
+ type t = {
+ channel_id: Channel_id.t;
+ last_pin_timestamp: string option [@default None];
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module ChannelRecipientAdd = struct
+ type t = {
+ channel_id: Channel_id.t;
+ user: User_t.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module ChannelRecipientRemove = struct
+ type t = {
+ channel_id: Channel_id.t;
+ user: User_t.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildBanAdd = struct
+ type t = {
+ guild_id: Guild_id.t;
+ user: User_t.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildBanRemove = struct
+ type t = {
+ guild_id: Guild_id.t;
+ user: User_t.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildCreate = struct
+ type t = {
+ guild: Guild_t.t;
+ } [@@deriving sexp]
+
+ let deserialize ev =
+ let guild = Guild_t.(pre_of_yojson_exn ev |> wrap) in
+ { guild; }
+end
+
+module GuildDelete = struct
+ type t = {
+ id: Guild_id.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildUpdate = struct
+ type t = {
+ guild: Guild_t.t;
+ } [@@deriving sexp]
+
+ let deserialize ev =
+ let guild = Guild_t.(pre_of_yojson_exn ev |> wrap) in
+ { guild; }
+end
+
+module GuildEmojisUpdate = struct
+ type t = {
+ emojis: Emoji.t list;
+ guild_id: Guild_id.t
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+(* TODO guild integrations *)
+
+module GuildMemberAdd = struct
+ include Member_t
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildMemberRemove = struct
+ type t = {
+ guild_id: Guild_id.t;
+ user: User_t.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildMemberUpdate = struct
+ type t = {
+ guild_id: Guild_id.t;
+ nick: string option;
+ roles: Role_id.t list;
+ user: User_t.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildMembersChunk = struct
+ type t = {
+ guild_id: Guild_id.t;
+ members: (Snowflake.t * Member_t.t) list;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildRoleCreate = struct
+ type t = {
+ guild_id: Guild_id.t;
+ role: Role_t.role;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildRoleDelete = struct
+ type t = {
+ guild_id: Guild_id.t;
+ role_id: Role_id.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module GuildRoleUpdate = struct
+ type t = {
+ guild_id: Guild_id.t;
+ role: Role_t.role;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+(* TODO figure out if this is necessary *)
+module GuildUnavailable = struct
+ type t = {
+ guild_id: Guild_id.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module MessageCreate = struct
+ type t = {
+ message: Message_t.t;
+ } [@@deriving sexp]
+
+ let deserialize ev =
+ let message = Message_t.of_yojson_exn ev in
+ { message; }
+end
+
+module MessageDelete = struct
+ type t = {
+ id: Message_id.t;
+ channel_id: Channel_id.t;
+ guild_id: Guild_id.t option [@default None];
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module MessageUpdate = struct
+ type t = {
+ id: Message_id.t;
+ author: User_t.t option [@default None];
+ channel_id: Channel_id.t;
+ member: Member_t.partial_member option [@default None];
+ guild_id: Guild_id.t option [@default None];
+ content: string option [@default None];
+ timestamp: string option [@default None];
+ editedimestamp: string option [@default None];
+ tts: bool option [@default None];
+ mention_everyone: bool option [@default None];
+ mentions: User_id.t list [@default []];
+ role_mentions: Role_id.t list [@default []];
+ attachments: Attachment.t list [@default []];
+ embeds: Embed.t list [@default []];
+ reactions: Snowflake.t list [@default []];
+ nonce: Snowflake.t option [@default None];
+ pinned: bool option [@default None];
+ webhook_id: Snowflake.t option [@default None];
+ kind: int option [@default None][@key "type"];
+ } [@@deriving sexp, yojson { strict = false}]
+
+ let deserialize = of_yojson_exn
+end
+
+module MessageDeleteBulk = struct
+ type t = {
+ guild_id: Guild_id.t option [@default None];
+ channel_id: Channel_id.t;
+ ids: Message_id.t list;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module PresenceUpdate = struct
+ include Presence
+
+ let deserialize = of_yojson_exn
+end
+
+(* module PresencesReplace = struct
+ type t =
+
+ let deserialize = of_yojson_exn
+end *)
+
+module ReactionAdd = struct
+ type t = {
+ user_id: User_id.t;
+ channel_id: Channel_id.t;
+ message_id: Message_id.t;
+ guild_id: Guild_id.t option [@default None];
+ emoji: Emoji.partial_emoji;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module ReactionRemove = struct
+ type t = {
+ user_id: User_id.t;
+ channel_id: Channel_id.t;
+ message_id: Message_id.t;
+ guild_id: Guild_id.t option [@default None];
+ emoji: Emoji.partial_emoji;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module ReactionRemoveAll = struct
+ type t = {
+ channel_id: Channel_id.t;
+ message_id: Message_id.t;
+ guild_id: Guild_id.t option [@default None];
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module Ready = struct
+ type t = {
+ version: int [@key "v"];
+ user: User_t.t;
+ private_channels: Channel_id.t list;
+ guilds: Guild_t.unavailable list;
+ session_id: string;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module Resumed = struct
+ type t = {
+ trace: string option list [@key "_trace"];
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module TypingStart = struct
+ type t = {
+ channel_id: Channel_id.t;
+ guild_id: Guild_id.t option [@default None];
+ timestamp: int;
+ user_id: User_id.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module UserUpdate = struct
+ type t = {
+ user: User_t.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize ev =
+ let user = User_t.of_yojson_exn ev in
+ { user; }
+end
+
+module WebhookUpdate = struct
+ type t = {
+ channel_id: Channel_id.t;
+ guild_id: Guild_id.t;
+ } [@@deriving sexp, yojson { strict = false }]
+
+ let deserialize = of_yojson_exn
+end
+
+module Unknown = struct
+ type t = {
+ kind: string;
+ value: Yojson.Safe.json;
+ }
+
+ let deserialize kind value = { kind; value; }
+end
+
+(* module VoiceHeartbeat = struct
+
+end
+
+module VoiceHello = struct
+
+end
+
+module VoiceServerUpdate = struct
+
+end
+
+module VoiceSessionDescription = struct
+
+end
+
+module VoiceSpeaking = struct
+
+end
+
+module VoiceStateUpdate = struct
+
end *)
\ No newline at end of file diff --git a/lib/models/guild/ban_t.mli b/lib/models/guild/ban_t.mli index 51d59e7..37e5cfa 100644 --- a/lib/models/guild/ban_t.mli +++ b/lib/models/guild/ban_t.mli @@ -1,4 +1,4 @@ -type t = { - reason: string option; (** The reason for the ban. *) - user: User_t.t; (** The banned user. *) +type t = {
+ reason: string option; (** The reason for the ban. *)
+ user: User_t.t; (** The banned user. *)
} [@@deriving sexp, yojson]
\ No newline at end of file diff --git a/lib/models/guild/guild.ml b/lib/models/guild/guild.ml index 812a49e..b1e8bfe 100644 --- a/lib/models/guild/guild.ml +++ b/lib/models/guild/guild.ml @@ -1,22 +1,22 @@ -open Core -open Async - -include Guild_t -include Impl.Guild(Guild_t) - -let get_member ~(id:User_id_t.t) guild = - match List.find ~f:(fun m -> m.user.id = id) guild.members with - | Some m -> Deferred.Or_error.return m - | None -> - let `User_id id = id in - Http.get_member (get_id guild) id - -let get_channel ~(id:Channel_id_t.t) guild = - let `Channel_id id = id in - match List.find ~f:(fun c -> Channel_t.get_id c = id) guild.channels with - | Some c -> Deferred.Or_error.return c - | None -> Http.get_channel id - -(* TODO add HTTP fallback *) -let get_role ~(id:Role_id.t) guild = +open Core
+open Async
+
+include Guild_t
+include Impl.Guild(Guild_t)
+
+let get_member ~(id:User_id_t.t) guild =
+ match List.find ~f:(fun m -> m.user.id = id) guild.members with
+ | Some m -> Deferred.Or_error.return m
+ | None ->
+ let `User_id id = id in
+ Http.get_member (get_id guild) id
+
+let get_channel ~(id:Channel_id_t.t) guild =
+ let `Channel_id id = id in
+ match List.find ~f:(fun c -> Channel_t.get_id c = id) guild.channels with
+ | Some c -> Deferred.Or_error.return c
+ | None -> Http.get_channel id
+
+(* TODO add HTTP fallback *)
+let get_role ~(id:Role_id.t) guild =
List.find ~f:(fun r -> r.id = id) guild.roles
\ No newline at end of file diff --git a/lib/models/guild/guild.mli b/lib/models/guild/guild.mli index e6f272c..be9300a 100644 --- a/lib/models/guild/guild.mli +++ b/lib/models/guild/guild.mli @@ -1,14 +1,14 @@ -open Async - -include module type of Guild_t -include S.GuildImpl with - type t := Guild_t.t - -(** Get a channel belonging to this guild. This does not make an HTTP request. *) -val get_channel : id:Channel_id_t.t -> t -> Channel_t.t Deferred.Or_error.t - -(** Get a member belonging to this guild. This does not make an HTTP request. *) -val get_member : id:User_id_t.t -> t -> Member_t.t Deferred.Or_error.t - -(** Get a role belonging to this guild. This does not make an HTTP request. *) +open Async
+
+include module type of Guild_t
+include S.GuildImpl with
+ type t := Guild_t.t
+
+(** Get a channel belonging to this guild. This does not make an HTTP request. *)
+val get_channel : id:Channel_id_t.t -> t -> Channel_t.t Deferred.Or_error.t
+
+(** Get a member belonging to this guild. This does not make an HTTP request. *)
+val get_member : id:User_id_t.t -> t -> Member_t.t Deferred.Or_error.t
+
+(** Get a role belonging to this guild. This does not make an HTTP request. *)
val get_role : id:Role_id.t -> t -> Role_t.t option
\ No newline at end of file diff --git a/lib/models/guild/guild_t.ml b/lib/models/guild/guild_t.ml index fa62a8f..9ad7cb9 100644 --- a/lib/models/guild/guild_t.ml +++ b/lib/models/guild/guild_t.ml @@ -1,72 +1,72 @@ -open Core - -type unavailable = { - id: Guild_id_t.t; -} [@@deriving sexp, yojson { strict = false }] - -type pre = { - id: Guild_id_t.t; - name: string; - icon: string option [@default None]; - splash: string option [@default None]; - owner_id: User_id_t.t; - region: string; - afk_channel_id: Channel_id_t.t option [@default None]; - afk_timeout: int; - embed_enabled: bool [@default false]; - embed_channel_id: Channel_id_t.t option [@default None]; - verification_level: int; - default_message_notifications: int; - explicit_content_filter: int; - roles: Role_t.role list; - emojis: Emoji.t list; - features: string list; - mfa_level: int; - application_id: Snowflake.t option [@default None]; - widget_enabled: bool [@default false]; - widget_channel_id: Channel_id_t.t option [@default None]; - system_channel_id: Channel_id_t.t option [@default None]; - large: bool; - unavailable: bool; - member_count: int option [@default None]; - members: Member_t.member list; - channels: Channel_t.channel_wrapper list; -} [@@deriving sexp, yojson { strict = false }] - -type t = { - id: Guild_id_t.t; - name: string; - icon: string option [@default None]; - splash: string option [@default None]; - owner_id: User_id_t.t; - region: string; - afk_channel_id: Channel_id_t.t option [@default None]; - afk_timeout: int; - embed_enabled: bool [@default false]; - embed_channel_id: Channel_id_t.t option [@default None]; - verification_level: int; - default_message_notifications: int; - explicit_content_filter: int; - roles: Role_t.t list; - emojis: Emoji.t list; - features: string list; - mfa_level: int; - application_id: Snowflake.t option [@default None]; - widget_enabled: bool [@default false]; - widget_channel_id: Channel_id_t.t option [@default None]; - system_channel_id: Channel_id_t.t option [@default None]; - large: bool; - unavailable: bool; - member_count: int option [@default None]; - members: Member_t.t list; - channels: Channel_t.t list; -} [@@deriving sexp, yojson { strict = false }] - -let wrap ({id;name;icon;splash;owner_id;region;afk_channel_id;afk_timeout;embed_enabled;embed_channel_id;verification_level;default_message_notifications;explicit_content_filter;roles;emojis;features;mfa_level;application_id;widget_enabled;widget_channel_id;system_channel_id;large;unavailable;member_count;members;channels}:pre) = - let `Guild_id id = id in - let roles = List.map ~f:(Role_t.wrap ~guild_id:id) roles in - let members = List.map ~f:(Member_t.wrap ~guild_id:id) members in - let channels = List.map ~f:Channel_t.wrap channels in - {id = `Guild_id id;name;icon;splash;owner_id;region;afk_channel_id;afk_timeout;embed_enabled;embed_channel_id;verification_level;default_message_notifications;explicit_content_filter;roles;emojis;features;mfa_level;application_id;widget_enabled;widget_channel_id;system_channel_id;large;unavailable;member_count;members;channels} - +open Core
+
+type unavailable = {
+ id: Guild_id_t.t;
+} [@@deriving sexp, yojson { strict = false }]
+
+type pre = {
+ id: Guild_id_t.t;
+ name: string;
+ icon: string option [@default None];
+ splash: string option [@default None];
+ owner_id: User_id_t.t;
+ region: string;
+ afk_channel_id: Channel_id_t.t option [@default None];
+ afk_timeout: int;
+ embed_enabled: bool [@default false];
+ embed_channel_id: Channel_id_t.t option [@default None];
+ verification_level: int;
+ default_message_notifications: int;
+ explicit_content_filter: int;
+ roles: Role_t.role list;
+ emojis: Emoji.t list;
+ features: string list;
+ mfa_level: int;
+ application_id: Snowflake.t option [@default None];
+ widget_enabled: bool [@default false];
+ widget_channel_id: Channel_id_t.t option [@default None];
+ system_channel_id: Channel_id_t.t option [@default None];
+ large: bool;
+ unavailable: bool;
+ member_count: int option [@default None];
+ members: Member_t.member list;
+ channels: Channel_t.channel_wrapper list;
+} [@@deriving sexp, yojson { strict = false }]
+
+type t = {
+ id: Guild_id_t.t;
+ name: string;
+ icon: string option [@default None];
+ splash: string option [@default None];
+ owner_id: User_id_t.t;
+ region: string;
+ afk_channel_id: Channel_id_t.t option [@default None];
+ afk_timeout: int;
+ embed_enabled: bool [@default false];
+ embed_channel_id: Channel_id_t.t option [@default None];
+ verification_level: int;
+ default_message_notifications: int;
+ explicit_content_filter: int;
+ roles: Role_t.t list;
+ emojis: Emoji.t list;
+ features: string list;
+ mfa_level: int;
+ application_id: Snowflake.t option [@default None];
+ widget_enabled: bool [@default false];
+ widget_channel_id: Channel_id_t.t option [@default None];
+ system_channel_id: Channel_id_t.t option [@default None];
+ large: bool;
+ unavailable: bool;
+ member_count: int option [@default None];
+ members: Member_t.t list;
+ channels: Channel_t.t list;
+} [@@deriving sexp, yojson { strict = false }]
+
+let wrap ({id;name;icon;splash;owner_id;region;afk_channel_id;afk_timeout;embed_enabled;embed_channel_id;verification_level;default_message_notifications;explicit_content_filter;roles;emojis;features;mfa_level;application_id;widget_enabled;widget_channel_id;system_channel_id;large;unavailable;member_count;members;channels}:pre) =
+ let `Guild_id id = id in
+ let roles = List.map ~f:(Role_t.wrap ~guild_id:id) roles in
+ let members = List.map ~f:(Member_t.wrap ~guild_id:id) members in
+ let channels = List.map ~f:Channel_t.wrap channels in
+ {id = `Guild_id id;name;icon;splash;owner_id;region;afk_channel_id;afk_timeout;embed_enabled;embed_channel_id;verification_level;default_message_notifications;explicit_content_filter;roles;emojis;features;mfa_level;application_id;widget_enabled;widget_channel_id;system_channel_id;large;unavailable;member_count;members;channels}
+
let get_id guild = let `Guild_id id = guild.id in id
\ No newline at end of file diff --git a/lib/models/guild/guild_t.mli b/lib/models/guild/guild_t.mli index e1c0718..7296372 100644 --- a/lib/models/guild/guild_t.mli +++ b/lib/models/guild/guild_t.mli @@ -1,66 +1,66 @@ -type unavailable = { - id: Guild_id_t.t; -} [@@deriving sexp, yojson] - -(** Used internally. *) -type pre = { - id: Guild_id_t.t; - name: string; - icon: string option; - splash: string option; - owner_id: User_id_t.t; - region: string; - afk_channel_id: Channel_id_t.t option; - afk_timeout: int; - embed_enabled: bool; - embed_channel_id: Channel_id_t.t option; - verification_level: int; - default_message_notifications: int; - explicit_content_filter: int; - roles: Role_t.role list; - emojis: Emoji.t list; - features: string list; - mfa_level: int; - application_id: Snowflake.t option; - widget_enabled: bool; - widget_channel_id: Channel_id_t.t option; - system_channel_id: Channel_id_t.t option; - large: bool; - unavailable: bool; - member_count: int option; - members: Member_t.member list; - channels: Channel_t.channel_wrapper list; -} [@@deriving sexp, yojson] - -(** A Guild object *) -type t = { - id: Guild_id_t.t; (** The guild's snowflake ID. *) - name: string; (** The guild name. *) - icon: string option; (** The guild icon hash, if one is set. *) - splash: string option; (** The guild splash hash, if one is set. *) - owner_id: User_id_t.t; (** The user ID of the owner. *) - region: string; (** The region the guild is in. *) - afk_channel_id: Channel_id_t.t option; (** The AFK channel ID, if one is set. *) - afk_timeout: int; (** The time before a user is moved to the AFK channel. *) - embed_enabled: bool; (** Whether the embed is enabled. *) - embed_channel_id: Channel_id_t.t option; (** The channel ID of the embed channel, if it is enabled. *) - verification_level: int; (** See {{:https://discordapp.com/developers/docs/resources/guild#guild-object-verification-level} the discord docs} for details. *) - default_message_notifications: int; (** 0 = All messages, 1 = Only mentions *) - explicit_content_filter: int; (** 0 = Disabled, 1 = For members with no roles, 2 = All members *) - roles: Role_t.t list; (** List of roles in the guild. *) - emojis: Emoji.t list; (** List of custom emojis in the guild. *) - features: string list; (** A List of features enabled for the guild. *) - mfa_level: int; (** 0 = None, 1 = Elevated *) - application_id: Snowflake.t option; (** Snowflake ID if the guild is bot-created. *) - widget_enabled: bool; (** Whether the widget is enabled. *) - widget_channel_id: Channel_id_t.t option; (** The channel ID for the widget, if enabled. *) - system_channel_id: Channel_id_t.t option; (** The channel ID where system messages are sent. *) - large: bool; (** Whether the guild exceeds the configured large threshold. *) - unavailable: bool; (** Whether the guild is unavailable or not. *) - member_count: int option; (** Total number of members in the guild. *) - members: Member_t.t list; (** List of guild members. *) - channels: Channel_t.t list; (** List of guild channels. *) -} [@@deriving sexp, yojson] - -val wrap : pre -> t +type unavailable = {
+ id: Guild_id_t.t;
+} [@@deriving sexp, yojson]
+
+(** Used internally. *)
+type pre = {
+ id: Guild_id_t.t;
+ name: string;
+ icon: string option;
+ splash: string option;
+ owner_id: User_id_t.t;
+ region: string;
+ afk_channel_id: Channel_id_t.t option;
+ afk_timeout: int;
+ embed_enabled: bool;
+ embed_channel_id: Channel_id_t.t option;
+ verification_level: int;
+ default_message_notifications: int;
+ explicit_content_filter: int;
+ roles: Role_t.role list;
+ emojis: Emoji.t list;
+ features: string list;
+ mfa_level: int;
+ application_id: Snowflake.t option;
+ widget_enabled: bool;
+ widget_channel_id: Channel_id_t.t option;
+ system_channel_id: Channel_id_t.t option;
+ large: bool;
+ unavailable: bool;
+ member_count: int option;
+ members: Member_t.member list;
+ channels: Channel_t.channel_wrapper list;
+} [@@deriving sexp, yojson]
+
+(** A Guild object *)
+type t = {
+ id: Guild_id_t.t; (** The guild's snowflake ID. *)
+ name: string; (** The guild name. *)
+ icon: string option; (** The guild icon hash, if one is set. *)
+ splash: string option; (** The guild splash hash, if one is set. *)
+ owner_id: User_id_t.t; (** The user ID of the owner. *)
+ region: string; (** The region the guild is in. *)
+ afk_channel_id: Channel_id_t.t option; (** The AFK channel ID, if one is set. *)
+ afk_timeout: int; (** The time before a user is moved to the AFK channel. *)
+ embed_enabled: bool; (** Whether the embed is enabled. *)
+ embed_channel_id: Channel_id_t.t option; (** The channel ID of the embed channel, if it is enabled. *)
+ verification_level: int; (** See {{:https://discordapp.com/developers/docs/resources/guild#guild-object-verification-level} the discord docs} for details. *)
+ default_message_notifications: int; (** 0 = All messages, 1 = Only mentions *)
+ explicit_content_filter: int; (** 0 = Disabled, 1 = For members with no roles, 2 = All members *)
+ roles: Role_t.t list; (** List of roles in the guild. *)
+ emojis: Emoji.t list; (** List of custom emojis in the guild. *)
+ features: string list; (** A List of features enabled for the guild. *)
+ mfa_level: int; (** 0 = None, 1 = Elevated *)
+ application_id: Snowflake.t option; (** Snowflake ID if the guild is bot-created. *)
+ widget_enabled: bool; (** Whether the widget is enabled. *)
+ widget_channel_id: Channel_id_t.t option; (** The channel ID for the widget, if enabled. *)
+ system_channel_id: Channel_id_t.t option; (** The channel ID where system messages are sent. *)
+ large: bool; (** Whether the guild exceeds the configured large threshold. *)
+ unavailable: bool; (** Whether the guild is unavailable or not. *)
+ member_count: int option; (** Total number of members in the guild. *)
+ members: Member_t.t list; (** List of guild members. *)
+ channels: Channel_t.t list; (** List of guild channels. *)
+} [@@deriving sexp, yojson]
+
+val wrap : pre -> t
val get_id : t -> Snowflake.t
\ No newline at end of file diff --git a/lib/models/guild/member.ml b/lib/models/guild/member.ml index f083cce..c5a7455 100644 --- a/lib/models/guild/member.ml +++ b/lib/models/guild/member.ml @@ -1,57 +1,57 @@ -include Member_t - -let add_role ~(role:Role_t.t) member = - let `Guild_id guild_id = member.guild_id in - let `User_id user_id = member.user.id in - let `Role_id role_id = role.id in - Http.add_member_role guild_id user_id role_id - -let remove_role ~(role:Role_t.t) member = - let `Guild_id guild_id = member.guild_id in - let `User_id user_id = member.user.id in - let `Role_id role_id = role.id in - Http.remove_member_role guild_id user_id role_id - -let ban ?(reason="") ?(days=0) member = - let `Guild_id guild_id = member.guild_id in - let `User_id user_id = member.user.id in - Http.guild_ban_add guild_id user_id (`Assoc [ - ("delete-message-days", `Int days); - ("reason", `String reason); - ]) - -let kick ?reason member = - let `Guild_id guild_id = member.guild_id in - let `User_id user_id = member.user.id in - let payload = match reason with - | Some r -> `Assoc [("reason", `String r)] - | None -> `Null - in Http.remove_member guild_id user_id payload - -let mute member = - let `Guild_id guild_id = member.guild_id in - let `User_id user_id = member.user.id in - Http.edit_member guild_id user_id (`Assoc [ - ("mute", `Bool true); - ]) - -let deafen member = - let `Guild_id guild_id = member.guild_id in - let `User_id user_id = member.user.id in - Http.edit_member guild_id user_id (`Assoc [ - ("deaf", `Bool true); - ]) - -let unmute member = - let `Guild_id guild_id = member.guild_id in - let `User_id user_id = member.user.id in - Http.edit_member guild_id user_id (`Assoc [ - ("mute", `Bool false); - ]) - -let undeafen member = - let `Guild_id guild_id = member.guild_id in - let `User_id user_id = member.user.id in - Http.edit_member guild_id user_id (`Assoc [ - ("deaf", `Bool false); - ]) +include Member_t
+
+let add_role ~(role:Role_t.t) member =
+ let `Guild_id guild_id = member.guild_id in
+ let `User_id user_id = member.user.id in
+ let `Role_id role_id = role.id in
+ Http.add_member_role guild_id user_id role_id
+
+let remove_role ~(role:Role_t.t) member =
+ let `Guild_id guild_id = member.guild_id in
+ let `User_id user_id = member.user.id in
+ let `Role_id role_id = role.id in
+ Http.remove_member_role guild_id user_id role_id
+
+let ban ?(reason="") ?(days=0) member =
+ let `Guild_id guild_id = member.guild_id in
+ let `User_id user_id = member.user.id in
+ Http.guild_ban_add guild_id user_id (`Assoc [
+ ("delete-message-days", `Int days);
+ ("reason", `String reason);
+ ])
+
+let kick ?reason member =
+ let `Guild_id guild_id = member.guild_id in
+ let `User_id user_id = member.user.id in
+ let payload = match reason with
+ | Some r -> `Assoc [("reason", `String r)]
+ | None -> `Null
+ in Http.remove_member guild_id user_id payload
+
+let mute member =
+ let `Guild_id guild_id = member.guild_id in
+ let `User_id user_id = member.user.id in
+ Http.edit_member guild_id user_id (`Assoc [
+ ("mute", `Bool true);
+ ])
+
+let deafen member =
+ let `Guild_id guild_id = member.guild_id in
+ let `User_id user_id = member.user.id in
+ Http.edit_member guild_id user_id (`Assoc [
+ ("deaf", `Bool true);
+ ])
+
+let unmute member =
+ let `Guild_id guild_id = member.guild_id in
+ let `User_id user_id = member.user.id in
+ Http.edit_member guild_id user_id (`Assoc [
+ ("mute", `Bool false);
+ ])
+
+let undeafen member =
+ let `Guild_id guild_id = member.guild_id in
+ let `User_id user_id = member.user.id in
+ Http.edit_member guild_id user_id (`Assoc [
+ ("deaf", `Bool false);
+ ])
diff --git a/lib/models/guild/member_t.ml b/lib/models/guild/member_t.ml index 10f1cf0..ae6b894 100644 --- a/lib/models/guild/member_t.ml +++ b/lib/models/guild/member_t.ml @@ -1,43 +1,43 @@ -open Core - -type partial_member = { - nick: string option [@default None]; - roles: Role_id.t list; - joined_at: string; - deaf: bool; - mute: bool; -} [@@deriving sexp, yojson { strict = false}] - -type member = { - nick: string option [@default None]; - roles: Role_id.t list; - joined_at: string; - deaf: bool; - mute: bool; - user: User_t.t; -} [@@deriving sexp, yojson { strict = false}] - -type member_wrapper = { - guild_id: Guild_id_t.t; - user: User_t.t; -} [@@deriving sexp, yojson { strict = false }] - -type member_update = { - guild_id: Guild_id_t.t; - roles: Role_id.t list [@default []]; - user: User_t.t; - nick: string option [@default None]; -} [@@deriving sexp, yojson { strict = false}] - -type t = { - nick: string option [@default None]; - roles: Role_id.t list; - joined_at: string; - deaf: bool; - mute: bool; - user: User_t.t; - guild_id: Guild_id_t.t; -} [@@deriving sexp, yojson { strict = false}] - -let wrap ~guild_id ({nick;roles;joined_at;deaf;mute;user}:member) = +open Core
+
+type partial_member = {
+ nick: string option [@default None];
+ roles: Role_id.t list;
+ joined_at: string;
+ deaf: bool;
+ mute: bool;
+} [@@deriving sexp, yojson { strict = false}]
+
+type member = {
+ nick: string option [@default None];
+ roles: Role_id.t list;
+ joined_at: string;
+ deaf: bool;
+ mute: bool;
+ user: User_t.t;
+} [@@deriving sexp, yojson { strict = false}]
+
+type member_wrapper = {
+ guild_id: Guild_id_t.t;
+ user: User_t.t;
+} [@@deriving sexp, yojson { strict = false }]
+
+type member_update = {
+ guild_id: Guild_id_t.t;
+ roles: Role_id.t list [@default []];
+ user: User_t.t;
+ nick: string option [@default None];
+} [@@deriving sexp, yojson { strict = false}]
+
+type t = {
+ nick: string option [@default None];
+ roles: Role_id.t list;
+ joined_at: string;
+ deaf: bool;
+ mute: bool;
+ user: User_t.t;
+ guild_id: Guild_id_t.t;
+} [@@deriving sexp, yojson { strict = false}]
+
+let wrap ~guild_id ({nick;roles;joined_at;deaf;mute;user}:member) =
{nick;roles;joined_at;deaf;mute;user;guild_id = `Guild_id guild_id}
\ No newline at end of file diff --git a/lib/models/guild/member_t.mli b/lib/models/guild/member_t.mli index 918885e..170504f 100644 --- a/lib/models/guild/member_t.mli +++ b/lib/models/guild/member_t.mli @@ -1,41 +1,41 @@ -type partial_member = { - nick: string option; - roles: Role_id.t list; - joined_at: string; - deaf: bool; - mute: bool; -} [@@deriving sexp, yojson] - -type member = { - nick: string option; - roles: Role_id.t list; - joined_at: string; - deaf: bool; - mute: bool; - user: User_t.t; -} [@@deriving sexp, yojson] - -type member_wrapper = { - guild_id: Guild_id_t.t; - user: User_t.t; -} [@@deriving sexp, yojson] - -type member_update = { - guild_id: Guild_id_t.t; - roles: Role_id.t list; - user: User_t.t; - nick: string option; -} [@@deriving sexp, yojson] - -(** A member object. *) -type t = { - nick: string option; (** The nickname of the member, if they have one set. *) - roles: Role_id.t list; (** The roles the member has. *) - joined_at: string; (** An ISO8601 timestamp of when the user joined. *) - deaf: bool; (** Whether the user is deafened. *) - mute: bool; (** Whether the user is muted. *) - user: User_t.t; (** The underlying user object for the member. *) - guild_id: Guild_id_t.t; (** The guild ID in which the member exists. *) -} [@@deriving sexp, yojson] - +type partial_member = {
+ nick: string option;
+ roles: Role_id.t list;
+ joined_at: string;
+ deaf: bool;
+ mute: bool;
+} [@@deriving sexp, yojson]
+
+type member = {
+ nick: string option;
+ roles: Role_id.t list;
+ joined_at: string;
+ deaf: bool;
+ mute: bool;
+ user: User_t.t;
+} [@@deriving sexp, yojson]
+
+type member_wrapper = {
+ guild_id: Guild_id_t.t;
+ user: User_t.t;
+} [@@deriving sexp, yojson]
+
+type member_update = {
+ guild_id: Guild_id_t.t;
+ roles: Role_id.t list;
+ user: User_t.t;
+ nick: string option;
+} [@@deriving sexp, yojson]
+
+(** A member object. *)
+type t = {
+ nick: string option; (** The nickname of the member, if they have one set. *)
+ roles: Role_id.t list; (** The roles the member has. *)
+ joined_at: string; (** An ISO8601 timestamp of when the user joined. *)
+ deaf: bool; (** Whether the user is deafened. *)
+ mute: bool; (** Whether the user is muted. *)
+ user: User_t.t; (** The underlying user object for the member. *)
+ guild_id: Guild_id_t.t; (** The guild ID in which the member exists. *)
+} [@@deriving sexp, yojson]
+
val wrap : guild_id:Snowflake.t -> member -> t
\ No newline at end of file diff --git a/lib/models/guild/role.ml b/lib/models/guild/role.ml index 46f908b..55e5813 100644 --- a/lib/models/guild/role.ml +++ b/lib/models/guild/role.ml @@ -1,29 +1,29 @@ -include Role_t - -let edit_role ~body (role:t) = - let `Role_id id = role.id in - let `Guild_id guild_id = role.guild_id in - Http.guild_role_edit guild_id id body - -let allow_mention role = - edit_role ~body:(`Assoc [("mentionable", `Bool true)]) role - -let delete (role:t) = - let `Role_id id = role.id in - let `Guild_id guild_id = role.guild_id in - Http.guild_role_remove guild_id id - -let disallow_mention role = - edit_role ~body:(`Assoc [("mentionable", `Bool false)]) role - -let hoist role = - edit_role ~body:(`Assoc [("hoist", `Bool true)]) role - -let set_colour ~colour role = - edit_role ~body:(`Assoc [("color", `Int colour)]) role - -let set_name ~name role = - edit_role ~body:(`Assoc [("name", `String name)]) role - -let unhoist role = +include Role_t
+
+let edit_role ~body (role:t) =
+ let `Role_id id = role.id in
+ let `Guild_id guild_id = role.guild_id in
+ Http.guild_role_edit guild_id id body
+
+let allow_mention role =
+ edit_role ~body:(`Assoc [("mentionable", `Bool true)]) role
+
+let delete (role:t) =
+ let `Role_id id = role.id in
+ let `Guild_id guild_id = role.guild_id in
+ Http.guild_role_remove guild_id id
+
+let disallow_mention role =
+ edit_role ~body:(`Assoc [("mentionable", `Bool false)]) role
+
+let hoist role =
+ edit_role ~body:(`Assoc [("hoist", `Bool true)]) role
+
+let set_colour ~colour role =
+ edit_role ~body:(`Assoc [("color", `Int colour)]) role
+
+let set_name ~name role =
+ edit_role ~body:(`Assoc [("name", `String name)]) role
+
+let unhoist role =
edit_role ~body:(`Assoc [("hoist", `Bool false)]) role
\ No newline at end of file diff --git a/lib/models/guild/role_t.ml b/lib/models/guild/role_t.ml index f012a15..cc461f3 100644 --- a/lib/models/guild/role_t.ml +++ b/lib/models/guild/role_t.ml @@ -1,27 +1,27 @@ -open Core - -type role = { - id: Role_id.t; - name: string; - colour: int [@key "color"]; - hoist: bool; - position: int; - permissions: int; - managed: bool; - mentionable: bool; -} [@@deriving sexp, yojson { strict = false}] - -type t = { - id: Role_id.t; - name: string; - colour: int [@key "color"]; - hoist: bool; - position: int; - permissions: int; - managed: bool; - mentionable: bool; - guild_id: Guild_id_t.t; -} [@@deriving sexp, yojson { strict = false}] - -let wrap ~guild_id ({id;name;colour;hoist;position;permissions;managed;mentionable}:role) = +open Core
+
+type role = {
+ id: Role_id.t;
+ name: string;
+ colour: int [@key "color"];
+ hoist: bool;
+ position: int;
+ permissions: int;
+ managed: bool;
+ mentionable: bool;
+} [@@deriving sexp, yojson { strict = false}]
+
+type t = {
+ id: Role_id.t;
+ name: string;
+ colour: int [@key "color"];
+ hoist: bool;
+ position: int;
+ permissions: int;
+ managed: bool;
+ mentionable: bool;
+ guild_id: Guild_id_t.t;
+} [@@deriving sexp, yojson { strict = false}]
+
+let wrap ~guild_id ({id;name;colour;hoist;position;permissions;managed;mentionable}:role) =
{id;name;colour;hoist;position;permissions;managed;mentionable;guild_id = `Guild_id guild_id}
\ No newline at end of file diff --git a/lib/models/guild/role_t.mli b/lib/models/guild/role_t.mli index 6fd023f..1b69e25 100644 --- a/lib/models/guild/role_t.mli +++ b/lib/models/guild/role_t.mli @@ -1,27 +1,27 @@ -(** A role as Discord sends it. Only difference between this and {!t} is the lack of the guild_id field. *) -type role = { - id: Role_id.t; - name: string; - colour: int; - hoist: bool; - position: int; - permissions: int; - managed: bool; - mentionable: bool; -} [@@deriving sexp, yojson] - -(** A role object. *) -type t = { - id: Role_id.t; (** The role's snowflake ID. *) - name: string; (** The role's name. *) - colour: int; (** The integer representation of the role colour. *) - hoist: bool; (** Whether the role is hoisted. This property controls whether the role is separated on the sidebar. *) - position: int; (** The position of the role. [@everyone] begins the list at 0. *) - permissions: int; (** The integer representation of the permissions the role has. *) - managed: bool; (** Whether the guild is managed by an integration. *) - mentionable: bool; (** Whether the role can be mentioned. *) - guild_id: Guild_id_t.t; (** The guild ID this role belongs to. *) -} [@@deriving sexp, yojson] - -(** Convenience method to produce {!t} from {!role} and a snowflake. *) +(** A role as Discord sends it. Only difference between this and {!t} is the lack of the guild_id field. *)
+type role = {
+ id: Role_id.t;
+ name: string;
+ colour: int;
+ hoist: bool;
+ position: int;
+ permissions: int;
+ managed: bool;
+ mentionable: bool;
+} [@@deriving sexp, yojson]
+
+(** A role object. *)
+type t = {
+ id: Role_id.t; (** The role's snowflake ID. *)
+ name: string; (** The role's name. *)
+ colour: int; (** The integer representation of the role colour. *)
+ hoist: bool; (** Whether the role is hoisted. This property controls whether the role is separated on the sidebar. *)
+ position: int; (** The position of the role. [@everyone] begins the list at 0. *)
+ permissions: int; (** The integer representation of the permissions the role has. *)
+ managed: bool; (** Whether the guild is managed by an integration. *)
+ mentionable: bool; (** Whether the role can be mentioned. *)
+ guild_id: Guild_id_t.t; (** The guild ID this role belongs to. *)
+} [@@deriving sexp, yojson]
+
+(** Convenience method to produce {!t} from {!role} and a snowflake. *)
val wrap : guild_id:Snowflake.t -> role -> t
\ No newline at end of file diff --git a/lib/models/id/channel_id.ml b/lib/models/id/channel_id.ml index 67f81a5..be4bfab 100644 --- a/lib/models/id/channel_id.ml +++ b/lib/models/id/channel_id.ml @@ -1,2 +1,2 @@ -include Channel_id_t +include Channel_id_t
include Impl.Channel(Channel_id_t)
\ No newline at end of file diff --git a/lib/models/id/channel_id.mli b/lib/models/id/channel_id.mli index f352160..59b4d23 100644 --- a/lib/models/id/channel_id.mli +++ b/lib/models/id/channel_id.mli @@ -1,3 +1,3 @@ -include module type of Channel_id_t -include S.ChannelImpl with +include module type of Channel_id_t
+include S.ChannelImpl with
type t := Channel_id_t.t
\ No newline at end of file diff --git a/lib/models/id/channel_id_t.ml b/lib/models/id/channel_id_t.ml index 26bd984..e49beef 100644 --- a/lib/models/id/channel_id_t.ml +++ b/lib/models/id/channel_id_t.ml @@ -1,11 +1,11 @@ -type t = [ `Channel_id of Snowflake.t ] [@@deriving sexp] - -let of_yojson a : (t, string) result = - match Snowflake.of_yojson a with - | Ok id -> Ok (`Channel_id id) - | Error err -> Error err - -let of_yojson_exn a : t = `Channel_id (Snowflake.of_yojson_exn a) -let to_yojson (`Channel_id id) = (Snowflake.to_yojson id) - +type t = [ `Channel_id of Snowflake.t ] [@@deriving sexp]
+
+let of_yojson a : (t, string) result =
+ match Snowflake.of_yojson a with
+ | Ok id -> Ok (`Channel_id id)
+ | Error err -> Error err
+
+let of_yojson_exn a : t = `Channel_id (Snowflake.of_yojson_exn a)
+let to_yojson (`Channel_id id) = (Snowflake.to_yojson id)
+
let get_id (`Channel_id id) = id
\ No newline at end of file diff --git a/lib/models/id/channel_id_t.mli b/lib/models/id/channel_id_t.mli index 821c8b0..2e7c76f 100644 --- a/lib/models/id/channel_id_t.mli +++ b/lib/models/id/channel_id_t.mli @@ -1,3 +1,3 @@ -type t = [ `Channel_id of Snowflake.t ] [@@deriving sexp, yojson] - +type t = [ `Channel_id of Snowflake.t ] [@@deriving sexp, yojson]
+
val get_id : t -> Snowflake.t
\ No newline at end of file diff --git a/lib/models/id/guild_id.ml b/lib/models/id/guild_id.ml index 051006b..79b4323 100644 --- a/lib/models/id/guild_id.ml +++ b/lib/models/id/guild_id.ml @@ -1,2 +1,2 @@ -include Guild_id_t +include Guild_id_t
include Impl.Guild(Guild_id_t)
\ No newline at end of file diff --git a/lib/models/id/guild_id.mli b/lib/models/id/guild_id.mli index 670a903..88e9fa7 100644 --- a/lib/models/id/guild_id.mli +++ b/lib/models/id/guild_id.mli @@ -1,3 +1,3 @@ -include module type of Guild_id_t -include S.GuildImpl with +include module type of Guild_id_t
+include S.GuildImpl with
type t := Guild_id_t.t
\ No newline at end of file diff --git a/lib/models/id/guild_id_t.ml b/lib/models/id/guild_id_t.ml index d023058..cd8eb58 100644 --- a/lib/models/id/guild_id_t.ml +++ b/lib/models/id/guild_id_t.ml @@ -1,11 +1,11 @@ -type t = [ `Guild_id of Snowflake.t ] [@@deriving sexp] - -let of_yojson a : (t, string) result = - match Snowflake.of_yojson a with - | Ok id -> Ok (`Guild_id id) - | Error err -> Error err - -let of_yojson_exn a : t = `Guild_id (Snowflake.of_yojson_exn a) -let to_yojson (`Guild_id id) = (Snowflake.to_yojson id) - +type t = [ `Guild_id of Snowflake.t ] [@@deriving sexp]
+
+let of_yojson a : (t, string) result =
+ match Snowflake.of_yojson a with
+ | Ok id -> Ok (`Guild_id id)
+ | Error err -> Error err
+
+let of_yojson_exn a : t = `Guild_id (Snowflake.of_yojson_exn a)
+let to_yojson (`Guild_id id) = (Snowflake.to_yojson id)
+
let get_id (`Guild_id id) = id
\ No newline at end of file diff --git a/lib/models/id/guild_id_t.mli b/lib/models/id/guild_id_t.mli index dc72deb..9c92d6c 100644 --- a/lib/models/id/guild_id_t.mli +++ b/lib/models/id/guild_id_t.mli @@ -1,3 +1,3 @@ -type t = [ `Guild_id of Snowflake.t ] [@@deriving sexp, yojson] - +type t = [ `Guild_id of Snowflake.t ] [@@deriving sexp, yojson]
+
val get_id : t -> Snowflake.t
\ No newline at end of file diff --git a/lib/models/id/message_id.ml b/lib/models/id/message_id.ml index 4a4fbb3..10bcb1d 100644 --- a/lib/models/id/message_id.ml +++ b/lib/models/id/message_id.ml @@ -1,11 +1,11 @@ -type t = [ `Message_id of Snowflake.t ] [@@deriving sexp] - -let of_yojson a : (t, string) result = - match Snowflake.of_yojson a with - | Ok id -> Ok (`Message_id id) - | Error err -> Error err - -let of_yojson_exn a : t = `Message_id (Snowflake.of_yojson_exn a) -let to_yojson (`Message_id id) = (Snowflake.to_yojson id) - +type t = [ `Message_id of Snowflake.t ] [@@deriving sexp]
+
+let of_yojson a : (t, string) result =
+ match Snowflake.of_yojson a with
+ | Ok id -> Ok (`Message_id id)
+ | Error err -> Error err
+
+let of_yojson_exn a : t = `Message_id (Snowflake.of_yojson_exn a)
+let to_yojson (`Message_id id) = (Snowflake.to_yojson id)
+
let get_id (`Message_id id) = id
\ No newline at end of file diff --git a/lib/models/id/message_id.mli b/lib/models/id/message_id.mli index da50f72..90107b5 100644 --- a/lib/models/id/message_id.mli +++ b/lib/models/id/message_id.mli @@ -1,3 +1,3 @@ -type t = [ `Message_id of Snowflake.t ] [@@deriving sexp, yojson] - +type t = [ `Message_id of Snowflake.t ] [@@deriving sexp, yojson]
+
val get_id : t -> Snowflake.t
\ No newline at end of file diff --git a/lib/models/id/role_id.ml b/lib/models/id/role_id.ml index b3fa5a1..f055b1a 100644 --- a/lib/models/id/role_id.ml +++ b/lib/models/id/role_id.ml @@ -1,11 +1,11 @@ -type t = [ `Role_id of Snowflake.t ] [@@deriving sexp] - -let of_yojson a : (t, string) result = - match Snowflake.of_yojson a with - | Ok id -> Ok (`Role_id id) - | Error err -> Error err - -let of_yojson_exn a : t = `Role_id (Snowflake.of_yojson_exn a) -let to_yojson (`Role_id id) = (Snowflake.to_yojson id) - +type t = [ `Role_id of Snowflake.t ] [@@deriving sexp]
+
+let of_yojson a : (t, string) result =
+ match Snowflake.of_yojson a with
+ | Ok id -> Ok (`Role_id id)
+ | Error err -> Error err
+
+let of_yojson_exn a : t = `Role_id (Snowflake.of_yojson_exn a)
+let to_yojson (`Role_id id) = (Snowflake.to_yojson id)
+
let get_id (`Role_id id) = id
\ No newline at end of file diff --git a/lib/models/id/role_id.mli b/lib/models/id/role_id.mli index ededf3a..701e4a9 100644 --- a/lib/models/id/role_id.mli +++ b/lib/models/id/role_id.mli @@ -1,3 +1,3 @@ -type t = [ `Role_id of Snowflake.t ] [@@deriving sexp, yojson] - +type t = [ `Role_id of Snowflake.t ] [@@deriving sexp, yojson]
+
val get_id : t -> Snowflake.t
\ No newline at end of file diff --git a/lib/models/id/user_id.ml b/lib/models/id/user_id.ml index 77ce220..cc71764 100644 --- a/lib/models/id/user_id.ml +++ b/lib/models/id/user_id.ml @@ -1,2 +1,2 @@ -include User_id_t +include User_id_t
include Impl.User(User_id_t)
\ No newline at end of file diff --git a/lib/models/id/user_id.mli b/lib/models/id/user_id.mli index d7da91e..574c4f0 100644 --- a/lib/models/id/user_id.mli +++ b/lib/models/id/user_id.mli @@ -1,3 +1,3 @@ -include module type of User_id_t -include S.UserImpl with +include module type of User_id_t
+include S.UserImpl with
type t := User_id_t.t
\ No newline at end of file diff --git a/lib/models/id/user_id_t.ml b/lib/models/id/user_id_t.ml index 5ed9f14..f168daa 100644 --- a/lib/models/id/user_id_t.ml +++ b/lib/models/id/user_id_t.ml @@ -1,11 +1,11 @@ -type t = [ `User_id of Snowflake.t ] [@@deriving sexp] - -let of_yojson a : (t, string) result = - match Snowflake.of_yojson a with - | Ok id -> Ok (`User_id id) - | Error err -> Error err - -let of_yojson_exn a : t = `User_id (Snowflake.of_yojson_exn a) -let to_yojson (`User_id id) = (Snowflake.to_yojson id) - +type t = [ `User_id of Snowflake.t ] [@@deriving sexp]
+
+let of_yojson a : (t, string) result =
+ match Snowflake.of_yojson a with
+ | Ok id -> Ok (`User_id id)
+ | Error err -> Error err
+
+let of_yojson_exn a : t = `User_id (Snowflake.of_yojson_exn a)
+let to_yojson (`User_id id) = (Snowflake.to_yojson id)
+
let get_id (`User_id id) = id
\ No newline at end of file diff --git a/lib/models/id/user_id_t.mli b/lib/models/id/user_id_t.mli index 90211ab..0893a34 100644 --- a/lib/models/id/user_id_t.mli +++ b/lib/models/id/user_id_t.mli @@ -1,3 +1,3 @@ -type t = [ `User_id of Snowflake.t ] [@@deriving sexp, yojson] - +type t = [ `User_id of Snowflake.t ] [@@deriving sexp, yojson]
+
val get_id : t -> Snowflake.t
\ No newline at end of file diff --git a/lib/models/snowflake.ml b/lib/models/snowflake.ml index 3b55493..44b0a48 100644 --- a/lib/models/snowflake.ml +++ b/lib/models/snowflake.ml @@ -1,22 +1,22 @@ -open Core - -type t = Int.t [@@deriving sexp] - -let of_yojson_exn d = Yojson.Safe.Util.to_string d |> Int.of_string - -let of_yojson d = - try of_yojson_exn d |> Ok - with Yojson.Safe.Util.Type_error (why,_) -> Error why - -let to_yojson s : Yojson.Safe.json = `String (Int.to_string s) - -let timestamp snowflake = (snowflake lsr 22) + 1_420_070_400_000 - -let time_of_t snowflake = - let t = timestamp snowflake |> float_of_int in - Time.(Span.of_ms t - |> of_span_since_epoch) - -let timestamp_iso snowflake = - time_of_t snowflake +open Core
+
+type t = Int.t [@@deriving sexp]
+
+let of_yojson_exn d = Yojson.Safe.Util.to_string d |> Int.of_string
+
+let of_yojson d =
+ try of_yojson_exn d |> Ok
+ with Yojson.Safe.Util.Type_error (why,_) -> Error why
+
+let to_yojson s : Yojson.Safe.json = `String (Int.to_string s)
+
+let timestamp snowflake = (snowflake lsr 22) + 1_420_070_400_000
+
+let time_of_t snowflake =
+ let t = timestamp snowflake |> float_of_int in
+ Time.(Span.of_ms t
+ |> of_span_since_epoch)
+
+let timestamp_iso snowflake =
+ time_of_t snowflake
|> Time.(to_string_iso8601_basic ~zone:Zone.utc)
\ No newline at end of file diff --git a/lib/models/snowflake.mli b/lib/models/snowflake.mli index e7f6be3..475b94c 100644 --- a/lib/models/snowflake.mli +++ b/lib/models/snowflake.mli @@ -1,12 +1,12 @@ -open Core - -type t = Int.t [@@deriving sexp, yojson] - -(** Convert a snowflake into a {!Core.Time.t} *) -val time_of_t : t -> Time.t - -(** Convert a snowflake into a Unix timestamp. Millisecond precision. *) -val timestamp : t -> int - -(** Convert a snowflake into an ISO8601 timestamp string. This is equivalent to calling [Snowflake.time_of_t snowflake |> Time.(to_string_iso8601_basic ~zone:Zone.utc)] *) +open Core
+
+type t = Int.t [@@deriving sexp, yojson]
+
+(** Convert a snowflake into a {!Core.Time.t} *)
+val time_of_t : t -> Time.t
+
+(** Convert a snowflake into a Unix timestamp. Millisecond precision. *)
+val timestamp : t -> int
+
+(** Convert a snowflake into an ISO8601 timestamp string. This is equivalent to calling [Snowflake.time_of_t snowflake |> Time.(to_string_iso8601_basic ~zone:Zone.utc)] *)
val timestamp_iso : t -> string
\ No newline at end of file diff --git a/lib/models/user/activity.mli b/lib/models/user/activity.mli index 970ac59..1ddd4e7 100644 --- a/lib/models/user/activity.mli +++ b/lib/models/user/activity.mli @@ -1,6 +1,6 @@ -(** An activity object. *) -type t = { - name: string; (** The name of the activity. *) - kind: int; (** 0 = Playing, 1 = Streaming, 2 = Listening, 3 = Watching *) - url: string option; (** Stream URL. Only validated for kind = 1. *) +(** An activity object. *)
+type t = {
+ name: string; (** The name of the activity. *)
+ kind: int; (** 0 = Playing, 1 = Streaming, 2 = Listening, 3 = Watching *)
+ url: string option; (** Stream URL. Only validated for kind = 1. *)
} [@@deriving sexp, yojson]
\ No newline at end of file diff --git a/lib/models/user/presence.mli b/lib/models/user/presence.mli index 6c60d7f..d75d408 100644 --- a/lib/models/user/presence.mli +++ b/lib/models/user/presence.mli @@ -1,9 +1,9 @@ -(** A user presence. *) -type t = { - user: User_t.partial_user; (** A partial user that this presence belongs to. *) - roles: Role_id.t list; (** A list of roles that the user has. *) - game: Activity.t option; (** The current activity of the user, if any. *) - guild_id: Guild_id_t.t; (** The guild ID in which this presence exists. *) - status: string; (** One of [online], [idle], [offline], or [dnd]. *) - activities: Activity.t list; (** A list of all of the user's current activities. *) +(** A user presence. *)
+type t = {
+ user: User_t.partial_user; (** A partial user that this presence belongs to. *)
+ roles: Role_id.t list; (** A list of roles that the user has. *)
+ game: Activity.t option; (** The current activity of the user, if any. *)
+ guild_id: Guild_id_t.t; (** The guild ID in which this presence exists. *)
+ status: string; (** One of [online], [idle], [offline], or [dnd]. *)
+ activities: Activity.t list; (** A list of all of the user's current activities. *)
} [@@deriving sexp, yojson]
\ No newline at end of file diff --git a/lib/models/user/user.ml b/lib/models/user/user.ml index de7ce01..b8c3b25 100644 --- a/lib/models/user/user.ml +++ b/lib/models/user/user.ml @@ -1,23 +1,23 @@ -open Core -include User_t - -let tag user = - Printf.sprintf "%s#%s" user.username user.discriminator - -let mention user = - let `User_id id = user.id in - Printf.sprintf "<@%d>" id - -let default_avatar user = - let avatar = Int.of_string user.discriminator % 5 in - Endpoints.cdn_default_avatar avatar - -let face user = - let `User_id id = user.id in - match user.avatar with - | Some avatar -> - let ext = if String.is_substring ~substring:"a_" avatar - then "gif" - else "png" in - Endpoints.cdn_avatar id avatar ext +open Core
+include User_t
+
+let tag user =
+ Printf.sprintf "%s#%s" user.username user.discriminator
+
+let mention user =
+ let `User_id id = user.id in
+ Printf.sprintf "<@%d>" id
+
+let default_avatar user =
+ let avatar = Int.of_string user.discriminator % 5 in
+ Endpoints.cdn_default_avatar avatar
+
+let face user =
+ let `User_id id = user.id in
+ match user.avatar with
+ | Some avatar ->
+ let ext = if String.is_substring ~substring:"a_" avatar
+ then "gif"
+ else "png" in
+ Endpoints.cdn_avatar id avatar ext
| None -> default_avatar user
\ No newline at end of file diff --git a/lib/models/user/user_t.ml b/lib/models/user/user_t.ml index 89a6895..8958e84 100644 --- a/lib/models/user/user_t.ml +++ b/lib/models/user/user_t.ml @@ -1,13 +1,13 @@ -open Core - -type partial_user = { - id: User_id_t.t; -} [@@deriving sexp, yojson { strict = false}] - -type t = { - id: User_id_t.t; - username: string; - discriminator: string; - avatar: string option [@default None]; - bot: bool [@default false]; +open Core
+
+type partial_user = {
+ id: User_id_t.t;
+} [@@deriving sexp, yojson { strict = false}]
+
+type t = {
+ id: User_id_t.t;
+ username: string;
+ discriminator: string;
+ avatar: string option [@default None];
+ bot: bool [@default false];
} [@@deriving sexp, yojson { strict = false }]
\ No newline at end of file diff --git a/lib/models/user/user_t.mli b/lib/models/user/user_t.mli index 694fc1e..645df3e 100644 --- a/lib/models/user/user_t.mli +++ b/lib/models/user/user_t.mli @@ -1,13 +1,13 @@ -(** A partial user. Used internally. *) -type partial_user = { - id: User_id_t.t; -} [@@deriving sexp, yojson] - -(** A user object. *) -type t = { - id: User_id_t.t; (** The user's Snowflake ID, wrapped in the convenience [`User_id] type. *) - username: string; (** The username of the user. *) - discriminator: string; (** The 4 digits, as a string, that come after the '#' in a Discord username. *) - avatar: string option; (** The hash of the user avatar, if they have one set. See {!User.face} to get the avatar URL. *) - bot: bool; (** Whether the user is a bot. *) +(** A partial user. Used internally. *)
+type partial_user = {
+ id: User_id_t.t;
+} [@@deriving sexp, yojson]
+
+(** A user object. *)
+type t = {
+ id: User_id_t.t; (** The user's Snowflake ID, wrapped in the convenience [`User_id] type. *)
+ username: string; (** The username of the user. *)
+ discriminator: string; (** The 4 digits, as a string, that come after the '#' in a Discord username. *)
+ avatar: string option; (** The hash of the user avatar, if they have one set. See {!User.face} to get the avatar URL. *)
+ bot: bool; (** Whether the user is a bot. *)
} [@@deriving sexp, yojson]
\ No newline at end of file @@ -1,92 +1,92 @@ -open Async - -module type HasSnowflake = sig - type t [@@deriving sexp, yojson] - val get_id : t -> Snowflake.t -end - -module type ChannelImpl = sig - type t - exception Invalid_message - exception No_message_found - - (** Advanced message sending. - - Raises {!Invalid_message} if one of content or embed is not set. - - {3 Examples} - {[ - open Core - open Disml - - let check_command (msg : Message.t) = - if String.is_prefix ~prefix:"!hello" msg.content then - let embed = Embed.(default |> title "Hello World!") in - Channel_id.send_message ~embed msg.channel_id >>> ignore - - Client.message_create := check_command - ]} - *) - val send_message : - ?embed:Embed.t -> - ?content:string -> - ?file:string -> - ?tts:bool -> - t -> - Message_t.t Deferred.Or_error.t - - (** [say str ch] is equivalent to [send_message ~content:str ch]. *) - val say : string -> t -> Message_t.t Deferred.Or_error.t - - val delete : t -> Channel_t.t Deferred.Or_error.t - val get_message : id:Snowflake.t -> t -> Message_t.t Deferred.Or_error.t - val get_messages : - ?mode:[ `Before | `After | `Around ] -> - ?id:Snowflake.t -> - ?limit:int -> - t -> - Message_t.t list Deferred.Or_error.t - val broadcast_typing : t -> unit Deferred.Or_error.t - val get_pins : t -> Message_t.t list Deferred.Or_error.t - (* TODO more things related to guild channels *) -end - -module type GuildImpl = sig - open Async - - type t - val ban_user : id:Snowflake.t -> ?reason:string -> ?days:int -> t -> unit Deferred.Or_error.t - val create_emoji : name:string -> image:string -> t -> Emoji.t Deferred.Or_error.t - val create_role : - name:string -> - ?colour:int -> - ?permissions:int -> - ?hoist:bool -> - ?mentionable:bool -> - t -> - Role_t.t Deferred.Or_error.t - val create_channel : mode:[ `Text | `Voice | `Category ] -> name:string -> t -> Channel_t.t Deferred.Or_error.t - val delete : t -> unit Deferred.Or_error.t - val get_ban : id:Snowflake.t -> t -> Ban_t.t Deferred.Or_error.t - val get_bans : t -> Ban_t.t list Deferred.Or_error.t - val get_emoji : id:Snowflake.t -> t -> Emoji.t Deferred.Or_error.t - val get_invites : t -> Yojson.Safe.json Deferred.Or_error.t - val get_prune_count : days:int -> t -> int Deferred.Or_error.t - val get_webhooks : t -> Yojson.Safe.json Deferred.Or_error.t - val kick_user : id:Snowflake.t -> ?reason:string -> t -> unit Deferred.Or_error.t - val leave : t -> unit Deferred.Or_error.t - val list_voice_regions : t -> Yojson.Safe.json Deferred.Or_error.t - val prune : days:int -> t -> int Deferred.Or_error.t - val request_members : t -> Member_t.t list Deferred.Or_error.t - val set_afk_channel : id:Snowflake.t -> t -> Guild_t.t Deferred.Or_error.t - val set_afk_timeout : timeout:int -> t -> Guild_t.t Deferred.Or_error.t - val set_name : name:string -> t -> Guild_t.t Deferred.Or_error.t - val set_icon : icon:string -> t -> Guild_t.t Deferred.Or_error.t - val unban_user : id:Snowflake.t -> ?reason:string -> t -> unit Deferred.Or_error.t -end - -module type UserImpl = sig - type t - (* val private_channel : t -> Channel_t.t *) - (* val send : t -> Yojson.Safe.json Deferred.Or_error.t *) +open Async
+
+module type HasSnowflake = sig
+ type t [@@deriving sexp, yojson]
+ val get_id : t -> Snowflake.t
+end
+
+module type ChannelImpl = sig
+ type t
+ exception Invalid_message
+ exception No_message_found
+
+ (** Advanced message sending.
+
+ Raises {!Invalid_message} if one of content or embed is not set.
+
+ {3 Examples}
+ {[
+ open Core
+ open Disml
+
+ let check_command (msg : Message.t) =
+ if String.is_prefix ~prefix:"!hello" msg.content then
+ let embed = Embed.(default |> title "Hello World!") in
+ Channel_id.send_message ~embed msg.channel_id >>> ignore
+
+ Client.message_create := check_command
+ ]}
+ *)
+ val send_message :
+ ?embed:Embed.t ->
+ ?content:string ->
+ ?file:string ->
+ ?tts:bool ->
+ t ->
+ Message_t.t Deferred.Or_error.t
+
+ (** [say str ch] is equivalent to [send_message ~content:str ch]. *)
+ val say : string -> t -> Message_t.t Deferred.Or_error.t
+
+ val delete : t -> Channel_t.t Deferred.Or_error.t
+ val get_message : id:Snowflake.t -> t -> Message_t.t Deferred.Or_error.t
+ val get_messages :
+ ?mode:[ `Before | `After | `Around ] ->
+ ?id:Snowflake.t ->
+ ?limit:int ->
+ t ->
+ Message_t.t list Deferred.Or_error.t
+ val broadcast_typing : t -> unit Deferred.Or_error.t
+ val get_pins : t -> Message_t.t list Deferred.Or_error.t
+ (* TODO more things related to guild channels *)
+end
+
+module type GuildImpl = sig
+ open Async
+
+ type t
+ val ban_user : id:Snowflake.t -> ?reason:string -> ?days:int -> t -> unit Deferred.Or_error.t
+ val create_emoji : name:string -> image:string -> t -> Emoji.t Deferred.Or_error.t
+ val create_role :
+ name:string ->
+ ?colour:int ->
+ ?permissions:int ->
+ ?hoist:bool ->
+ ?mentionable:bool ->
+ t ->
+ Role_t.t Deferred.Or_error.t
+ val create_channel : mode:[ `Text | `Voice | `Category ] -> name:string -> t -> Channel_t.t Deferred.Or_error.t
+ val delete : t -> unit Deferred.Or_error.t
+ val get_ban : id:Snowflake.t -> t -> Ban_t.t Deferred.Or_error.t
+ val get_bans : t -> Ban_t.t list Deferred.Or_error.t
+ val get_emoji : id:Snowflake.t -> t -> Emoji.t Deferred.Or_error.t
+ val get_invites : t -> Yojson.Safe.json Deferred.Or_error.t
+ val get_prune_count : days:int -> t -> int Deferred.Or_error.t
+ val get_webhooks : t -> Yojson.Safe.json Deferred.Or_error.t
+ val kick_user : id:Snowflake.t -> ?reason:string -> t -> unit Deferred.Or_error.t
+ val leave : t -> unit Deferred.Or_error.t
+ val list_voice_regions : t -> Yojson.Safe.json Deferred.Or_error.t
+ val prune : days:int -> t -> int Deferred.Or_error.t
+ val request_members : t -> Member_t.t list Deferred.Or_error.t
+ val set_afk_channel : id:Snowflake.t -> t -> Guild_t.t Deferred.Or_error.t
+ val set_afk_timeout : timeout:int -> t -> Guild_t.t Deferred.Or_error.t
+ val set_name : name:string -> t -> Guild_t.t Deferred.Or_error.t
+ val set_icon : icon:string -> t -> Guild_t.t Deferred.Or_error.t
+ val unban_user : id:Snowflake.t -> ?reason:string -> t -> unit Deferred.Or_error.t
+end
+
+module type UserImpl = sig
+ type t
+ (* val private_channel : t -> Channel_t.t *)
+ (* val send : t -> Yojson.Safe.json Deferred.Or_error.t *)
end
\ No newline at end of file diff --git a/lib/sharder.ml b/lib/sharder.ml index 11a6bd8..f98ee8f 100644 --- a/lib/sharder.ml +++ b/lib/sharder.ml @@ -1,327 +1,327 @@ -open Async -open Core -open Websocket_async - -exception Invalid_Payload -exception Failure_to_Establish_Heartbeat - -module Shard = struct - type shard = { - hb_interval: Time.Span.t Ivar.t; - seq: int; - session: string option; - pipe: Frame.t Pipe.Reader.t * Frame.t Pipe.Writer.t; - ready: unit Ivar.t; - url: string; - id: int * int; - _internal: Reader.t * Writer.t; - } - - type 'a t = { - mutable state: 'a; - } - - let identify_lock = Mvar.create () - let _ = Mvar.set identify_lock () - - let parse (frame:[`Ok of Frame.t | `Eof]) = - match frame with - | `Ok s -> begin - let open Frame.Opcode in - match s.opcode with - | Text -> Some (Yojson.Safe.from_string s.content) - | _ -> None - end - | `Eof -> None - - let push_frame ?payload ~ev shard = - let content = match payload with - | None -> "" - | Some p -> - Yojson.Safe.to_string @@ `Assoc [ - ("op", `Int (Opcode.to_int ev)); - ("d", p); - ] - in - let (_, write) = shard.pipe in - Pipe.write write @@ Frame.create ~content () - >>| fun () -> - shard - - let heartbeat shard = - Logs.debug (fun m -> m "Heartbeating - Shard: [%d, %d] - Seq: %d" (fst shard.id) (snd shard.id) (shard.seq)); - let payload = match shard.seq with - | 0 -> `Null - | i -> `Int i - in - push_frame ~payload ~ev:HEARTBEAT shard - - let dispatch ~payload shard = - let module J = Yojson.Safe.Util in - let seq = J.(member "s" payload |> to_int) in - let t = J.(member "t" payload |> to_string) in - let data = J.member "d" payload in - let session = if t = "READY" then begin - Ivar.fill_if_empty shard.ready (); - Clock.after (Core.Time.Span.create ~sec:5 ()) - >>> (fun _ -> Mvar.put identify_lock () >>> ignore); - J.(member "session_id" data |> to_string_option) - end else None in - Event.handle_event ~ev:t data; - return { shard with - seq = seq; - session = session; - } - - let set_status ~(status:Yojson.Safe.json) shard = - let payload = match status with - | `Assoc [("name", `String name); ("type", `Int t)] -> - `Assoc [ - ("status", `String "online"); - ("afk", `Bool false); - ("since", `Null); - ("game", `Assoc [ - ("name", `String name); - ("type", `Int t) - ]) - ] - | `String name -> - `Assoc [ - ("status", `String "online"); - ("afk", `Bool false); - ("since", `Null); - ("game", `Assoc [ - ("name", `String name); - ("type", `Int 0) - ]) - ] - | _ -> raise Invalid_Payload - in - Ivar.read shard.ready >>= fun _ -> - push_frame ~payload ~ev:STATUS_UPDATE shard - - let request_guild_members ?(query="") ?(limit=0) ~guild shard = - let payload = `Assoc [ - ("guild_id", `String (Int.to_string guild)); - ("query", `String query); - ("limit", `Int limit); - ] in - Ivar.read shard.ready >>= fun _ -> - push_frame ~payload ~ev:REQUEST_GUILD_MEMBERS shard - - let initialize ?data shard = - let module J = Yojson.Safe.Util in - let _ = match data with - | Some data -> Ivar.fill shard.hb_interval (Time.Span.create ~ms:J.(member "heartbeat_interval" data |> to_int) ()) - | None -> raise Failure_to_Establish_Heartbeat - in - let shards = [`Int (fst shard.id); `Int (snd shard.id)] in - match shard.session with - | None -> begin - Mvar.take identify_lock >>= fun () -> - Logs.debug (fun m -> m "Identifying shard [%d, %d]" (fst shard.id) (snd shard.id)); - let payload = `Assoc [ - ("token", `String !Client_options.token); - ("properties", `Assoc [ - ("$os", `String Sys.os_type); - ("$device", `String "dis.ml"); - ("$browser", `String "dis.ml") - ]); - ("compress", `Bool false); (* TODO add compression handling*) - ("large_threshold", `Int 250); - ("shard", `List shards); - ] in - push_frame ~payload ~ev:IDENTIFY shard - >>| fun s -> s - end - | Some s -> - let payload = `Assoc [ - ("token", `String !Client_options.token); - ("session_id", `String s); - ("seq", `Int shard.seq) - ] in - push_frame ~payload ~ev:RESUME shard - - let handle_frame ~f shard = - let module J = Yojson.Safe.Util in - let op = J.(member "op" f |> to_int) |> Opcode.from_int in - match op with - | DISPATCH -> dispatch ~payload:f shard - | HEARTBEAT -> heartbeat shard - | INVALID_SESSION -> begin - Logs.err (fun m -> m "Received OP 9 on Shard [%d, %d]: %s" (fst shard.id) (snd shard.id) (Yojson.Safe.pretty_to_string f)); - if J.(member "d" f |> to_bool) then - initialize shard - else begin - initialize { shard with session = None; } - end - end - | RECONNECT -> initialize shard - | HELLO -> initialize ~data:(J.member "d" f) shard - | HEARTBEAT_ACK -> return shard - | opcode -> - Logs.warn (fun m -> m "Invalid Opcode: %s" (Opcode.to_string opcode)); - return shard - - let rec make_client - ~initialized - ~extra_headers - ~app_to_ws - ~ws_to_app - ~net_to_ws - ~ws_to_net - uri = - client - ~initialized - ~extra_headers - ~app_to_ws - ~ws_to_app - ~net_to_ws - ~ws_to_net - uri - >>> fun res -> - match res with - | Ok () -> () - | Error _ -> - let backoff = Time.Span.create ~ms:500 () in - Clock.after backoff >>> (fun () -> - make_client - ~initialized - ~extra_headers - ~app_to_ws - ~ws_to_app - ~net_to_ws - ~ws_to_net - uri) - - - let create ~url ~shards () = - let open Core in - let uri = (url ^ "?v=6&encoding=json") |> Uri.of_string in - let extra_headers = Http.Base.process_request_headers () in - let host = Option.value_exn ~message:"no host in uri" Uri.(host uri) in - let port = - match Uri.port uri, Uri_services.tcp_port_of_uri uri with - | Some p, _ -> p - | None, Some p -> p - | _ -> 443 in - let scheme = Option.value_exn ~message:"no scheme in uri" Uri.(scheme uri) in - let tcp_fun (net_to_ws, ws_to_net) = - (* Writer.monitor ws_to_net - |> Monitor.detach_and_get_error_stream - |> Stream.iter ~f:(fun e -> Logs.err (fun m -> m "Socket Connection Error: %s" (Exn.sexp_of_t e |> Sexp.to_string_hum))); *) - let (app_to_ws, write) = Pipe.create () in - let (read, ws_to_app) = Pipe.create () in - let initialized = Ivar.create () in - make_client - ~initialized - ~extra_headers - ~app_to_ws - ~ws_to_app - ~net_to_ws - ~ws_to_net - uri; - Ivar.read initialized >>| fun () -> - { - pipe = (read, write); - ready = Ivar.create (); - hb_interval = Ivar.create (); - seq = 0; - id = shards; - session = None; - url; - _internal = (net_to_ws, ws_to_net); - } - in - match Unix.getaddrinfo host (string_of_int port) [] with - | [] -> failwithf "DNS resolution failed for %s" host () - | { ai_addr; _ } :: _ -> - let addr = - match scheme, ai_addr with - | _, ADDR_UNIX path -> `Unix_domain_socket path - | "https", ADDR_INET (h, p) - | "wss", ADDR_INET (h, p) -> - let h = Ipaddr_unix.of_inet_addr h in - `OpenSSL (h, p, Conduit_async.V2.Ssl.Config.create ()) - | _, ADDR_INET (h, p) -> - let h = Ipaddr_unix.of_inet_addr h in - `TCP (h, p) - in - Conduit_async.V2.connect addr >>= tcp_fun - - let shutdown_clean shard = - let (_,w) = shard._internal in - Writer.close w - - let recreate shard = - shutdown_clean shard >>= fun () -> - create ~url:(shard.url) ~shards:(shard.id) () -end - -type t = { - shards: (Shard.shard Shard.t) list; -} - -let start ?count () = - let module J = Yojson.Safe.Util in - Http.get_gateway_bot () >>= fun data -> - let data = match data with - | Ok d -> d - | Error e -> Error.raise e - in - let url = J.(member "url" data |> to_string) in - let count = match count with - | Some c -> c - | None -> J.(member "shards" data |> to_int) - in - let shard_list = (0, count) in - let rec ev_loop (t:Shard.shard Shard.t) = - let (read, _) = t.state.pipe in - Pipe.read read - >>= fun frame -> - (match Shard.parse frame with - | Some f -> begin - Shard.handle_frame ~f t.state - >>| fun s -> t.state <- s; t - end - | None -> begin - Shard.recreate t.state - >>| fun s -> t.state <- s; t - end) - >>= fun t -> - ev_loop t - in - let rec gen_shards l a = - match l with - | (id, total) when id >= total -> return a - | (id, total) -> - Shard.create ~url ~shards:(id, total) () - >>= fun shard -> - let t = Shard.{ state = shard; } in - let _ = Ivar.read t.state.hb_interval >>> fun hb -> Clock.every ~continue_on_error:true hb (fun () -> Shard.heartbeat t.state >>> ignore) in - ev_loop t >>> ignore; - gen_shards (id+1, total) (t :: a) - in - gen_shards shard_list [] - >>| fun shards -> - { shards; } - -let set_status ~status sharder = - Deferred.all @@ List.map ~f:(fun t -> - Shard.set_status ~status t.state - ) sharder.shards - -let set_status_with ~f sharder = - Deferred.all @@ List.map ~f:(fun t -> - Shard.set_status ~status:(f t.state) t.state - ) sharder.shards - -let request_guild_members ?query ?limit ~guild sharder = - Deferred.all @@ List.map ~f:(fun t -> - Shard.request_guild_members ~guild ?query ?limit t.state - ) sharder.shards - -let shutdown_all sharder = - Deferred.all @@ List.map ~f:(fun t -> - Shard.shutdown_clean t.state +open Async
+open Core
+open Websocket_async
+
+exception Invalid_Payload
+exception Failure_to_Establish_Heartbeat
+
+module Shard = struct
+ type shard = {
+ hb_interval: Time.Span.t Ivar.t;
+ seq: int;
+ session: string option;
+ pipe: Frame.t Pipe.Reader.t * Frame.t Pipe.Writer.t;
+ ready: unit Ivar.t;
+ url: string;
+ id: int * int;
+ _internal: Reader.t * Writer.t;
+ }
+
+ type 'a t = {
+ mutable state: 'a;
+ }
+
+ let identify_lock = Mvar.create ()
+ let _ = Mvar.set identify_lock ()
+
+ let parse (frame:[`Ok of Frame.t | `Eof]) =
+ match frame with
+ | `Ok s -> begin
+ let open Frame.Opcode in
+ match s.opcode with
+ | Text -> Some (Yojson.Safe.from_string s.content)
+ | _ -> None
+ end
+ | `Eof -> None
+
+ let push_frame ?payload ~ev shard =
+ let content = match payload with
+ | None -> ""
+ | Some p ->
+ Yojson.Safe.to_string @@ `Assoc [
+ ("op", `Int (Opcode.to_int ev));
+ ("d", p);
+ ]
+ in
+ let (_, write) = shard.pipe in
+ Pipe.write write @@ Frame.create ~content ()
+ >>| fun () ->
+ shard
+
+ let heartbeat shard =
+ Logs.debug (fun m -> m "Heartbeating - Shard: [%d, %d] - Seq: %d" (fst shard.id) (snd shard.id) (shard.seq));
+ let payload = match shard.seq with
+ | 0 -> `Null
+ | i -> `Int i
+ in
+ push_frame ~payload ~ev:HEARTBEAT shard
+
+ let dispatch ~payload shard =
+ let module J = Yojson.Safe.Util in
+ let seq = J.(member "s" payload |> to_int) in
+ let t = J.(member "t" payload |> to_string) in
+ let data = J.member "d" payload in
+ let session = if t = "READY" then begin
+ Ivar.fill_if_empty shard.ready ();
+ Clock.after (Core.Time.Span.create ~sec:5 ())
+ >>> (fun _ -> Mvar.put identify_lock () >>> ignore);
+ J.(member "session_id" data |> to_string_option)
+ end else None in
+ Event.handle_event ~ev:t data;
+ return { shard with
+ seq = seq;
+ session = session;
+ }
+
+ let set_status ~(status:Yojson.Safe.json) shard =
+ let payload = match status with
+ | `Assoc [("name", `String name); ("type", `Int t)] ->
+ `Assoc [
+ ("status", `String "online");
+ ("afk", `Bool false);
+ ("since", `Null);
+ ("game", `Assoc [
+ ("name", `String name);
+ ("type", `Int t)
+ ])
+ ]
+ | `String name ->
+ `Assoc [
+ ("status", `String "online");
+ ("afk", `Bool false);
+ ("since", `Null);
+ ("game", `Assoc [
+ ("name", `String name);
+ ("type", `Int 0)
+ ])
+ ]
+ | _ -> raise Invalid_Payload
+ in
+ Ivar.read shard.ready >>= fun _ ->
+ push_frame ~payload ~ev:STATUS_UPDATE shard
+
+ let request_guild_members ?(query="") ?(limit=0) ~guild shard =
+ let payload = `Assoc [
+ ("guild_id", `String (Int.to_string guild));
+ ("query", `String query);
+ ("limit", `Int limit);
+ ] in
+ Ivar.read shard.ready >>= fun _ ->
+ push_frame ~payload ~ev:REQUEST_GUILD_MEMBERS shard
+
+ let initialize ?data shard =
+ let module J = Yojson.Safe.Util in
+ let _ = match data with
+ | Some data -> Ivar.fill shard.hb_interval (Time.Span.create ~ms:J.(member "heartbeat_interval" data |> to_int) ())
+ | None -> raise Failure_to_Establish_Heartbeat
+ in
+ let shards = [`Int (fst shard.id); `Int (snd shard.id)] in
+ match shard.session with
+ | None -> begin
+ Mvar.take identify_lock >>= fun () ->
+ Logs.debug (fun m -> m "Identifying shard [%d, %d]" (fst shard.id) (snd shard.id));
+ let payload = `Assoc [
+ ("token", `String !Client_options.token);
+ ("properties", `Assoc [
+ ("$os", `String Sys.os_type);
+ ("$device", `String "dis.ml");
+ ("$browser", `String "dis.ml")
+ ]);
+ ("compress", `Bool false); (* TODO add compression handling*)
+ ("large_threshold", `Int 250);
+ ("shard", `List shards);
+ ] in
+ push_frame ~payload ~ev:IDENTIFY shard
+ >>| fun s -> s
+ end
+ | Some s ->
+ let payload = `Assoc [
+ ("token", `String !Client_options.token);
+ ("session_id", `String s);
+ ("seq", `Int shard.seq)
+ ] in
+ push_frame ~payload ~ev:RESUME shard
+
+ let handle_frame ~f shard =
+ let module J = Yojson.Safe.Util in
+ let op = J.(member "op" f |> to_int) |> Opcode.from_int in
+ match op with
+ | DISPATCH -> dispatch ~payload:f shard
+ | HEARTBEAT -> heartbeat shard
+ | INVALID_SESSION -> begin
+ Logs.err (fun m -> m "Received OP 9 on Shard [%d, %d]: %s" (fst shard.id) (snd shard.id) (Yojson.Safe.pretty_to_string f));
+ if J.(member "d" f |> to_bool) then
+ initialize shard
+ else begin
+ initialize { shard with session = None; }
+ end
+ end
+ | RECONNECT -> initialize shard
+ | HELLO -> initialize ~data:(J.member "d" f) shard
+ | HEARTBEAT_ACK -> return shard
+ | opcode ->
+ Logs.warn (fun m -> m "Invalid Opcode: %s" (Opcode.to_string opcode));
+ return shard
+
+ let rec make_client
+ ~initialized
+ ~extra_headers
+ ~app_to_ws
+ ~ws_to_app
+ ~net_to_ws
+ ~ws_to_net
+ uri =
+ client
+ ~initialized
+ ~extra_headers
+ ~app_to_ws
+ ~ws_to_app
+ ~net_to_ws
+ ~ws_to_net
+ uri
+ >>> fun res ->
+ match res with
+ | Ok () -> ()
+ | Error _ ->
+ let backoff = Time.Span.create ~ms:500 () in
+ Clock.after backoff >>> (fun () ->
+ make_client
+ ~initialized
+ ~extra_headers
+ ~app_to_ws
+ ~ws_to_app
+ ~net_to_ws
+ ~ws_to_net
+ uri)
+
+
+ let create ~url ~shards () =
+ let open Core in
+ let uri = (url ^ "?v=6&encoding=json") |> Uri.of_string in
+ let extra_headers = Http.Base.process_request_headers () in
+ let host = Option.value_exn ~message:"no host in uri" Uri.(host uri) in
+ let port =
+ match Uri.port uri, Uri_services.tcp_port_of_uri uri with
+ | Some p, _ -> p
+ | None, Some p -> p
+ | _ -> 443 in
+ let scheme = Option.value_exn ~message:"no scheme in uri" Uri.(scheme uri) in
+ let tcp_fun (net_to_ws, ws_to_net) =
+ (* Writer.monitor ws_to_net
+ |> Monitor.detach_and_get_error_stream
+ |> Stream.iter ~f:(fun e -> Logs.err (fun m -> m "Socket Connection Error: %s" (Exn.sexp_of_t e |> Sexp.to_string_hum))); *)
+ let (app_to_ws, write) = Pipe.create () in
+ let (read, ws_to_app) = Pipe.create () in
+ let initialized = Ivar.create () in
+ make_client
+ ~initialized
+ ~extra_headers
+ ~app_to_ws
+ ~ws_to_app
+ ~net_to_ws
+ ~ws_to_net
+ uri;
+ Ivar.read initialized >>| fun () ->
+ {
+ pipe = (read, write);
+ ready = Ivar.create ();
+ hb_interval = Ivar.create ();
+ seq = 0;
+ id = shards;
+ session = None;
+ url;
+ _internal = (net_to_ws, ws_to_net);
+ }
+ in
+ match Unix.getaddrinfo host (string_of_int port) [] with
+ | [] -> failwithf "DNS resolution failed for %s" host ()
+ | { ai_addr; _ } :: _ ->
+ let addr =
+ match scheme, ai_addr with
+ | _, ADDR_UNIX path -> `Unix_domain_socket path
+ | "https", ADDR_INET (h, p)
+ | "wss", ADDR_INET (h, p) ->
+ let h = Ipaddr_unix.of_inet_addr h in
+ `OpenSSL (h, p, Conduit_async.V2.Ssl.Config.create ())
+ | _, ADDR_INET (h, p) ->
+ let h = Ipaddr_unix.of_inet_addr h in
+ `TCP (h, p)
+ in
+ Conduit_async.V2.connect addr >>= tcp_fun
+
+ let shutdown_clean shard =
+ let (_,w) = shard._internal in
+ Writer.close w
+
+ let recreate shard =
+ shutdown_clean shard >>= fun () ->
+ create ~url:(shard.url) ~shards:(shard.id) ()
+end
+
+type t = {
+ shards: (Shard.shard Shard.t) list;
+}
+
+let start ?count () =
+ let module J = Yojson.Safe.Util in
+ Http.get_gateway_bot () >>= fun data ->
+ let data = match data with
+ | Ok d -> d
+ | Error e -> Error.raise e
+ in
+ let url = J.(member "url" data |> to_string) in
+ let count = match count with
+ | Some c -> c
+ | None -> J.(member "shards" data |> to_int)
+ in
+ let shard_list = (0, count) in
+ let rec ev_loop (t:Shard.shard Shard.t) =
+ let (read, _) = t.state.pipe in
+ Pipe.read read
+ >>= fun frame ->
+ (match Shard.parse frame with
+ | Some f -> begin
+ Shard.handle_frame ~f t.state
+ >>| fun s -> t.state <- s; t
+ end
+ | None -> begin
+ Shard.recreate t.state
+ >>| fun s -> t.state <- s; t
+ end)
+ >>= fun t ->
+ ev_loop t
+ in
+ let rec gen_shards l a =
+ match l with
+ | (id, total) when id >= total -> return a
+ | (id, total) ->
+ Shard.create ~url ~shards:(id, total) ()
+ >>= fun shard ->
+ let t = Shard.{ state = shard; } in
+ let _ = Ivar.read t.state.hb_interval >>> fun hb -> Clock.every ~continue_on_error:true hb (fun () -> Shard.heartbeat t.state >>> ignore) in
+ ev_loop t >>> ignore;
+ gen_shards (id+1, total) (t :: a)
+ in
+ gen_shards shard_list []
+ >>| fun shards ->
+ { shards; }
+
+let set_status ~status sharder =
+ Deferred.all @@ List.map ~f:(fun t ->
+ Shard.set_status ~status t.state
+ ) sharder.shards
+
+let set_status_with ~f sharder =
+ Deferred.all @@ List.map ~f:(fun t ->
+ Shard.set_status ~status:(f t.state) t.state
+ ) sharder.shards
+
+let request_guild_members ?query ?limit ~guild sharder =
+ Deferred.all @@ List.map ~f:(fun t ->
+ Shard.request_guild_members ~guild ?query ?limit t.state
+ ) sharder.shards
+
+let shutdown_all sharder =
+ Deferred.all @@ List.map ~f:(fun t ->
+ Shard.shutdown_clean t.state
) sharder.shards
\ No newline at end of file diff --git a/lib/sharder.mli b/lib/sharder.mli index 0bc014b..92c4178 100644 --- a/lib/sharder.mli +++ b/lib/sharder.mli @@ -1,86 +1,86 @@ -(** Internal sharding manager. Most of this is accessed through {!Client}. *) - -open Core -open Async -open Websocket_async - -exception Invalid_Payload -exception Failure_to_Establish_Heartbeat - -type t - -(** Start the Sharder. This is called by {!Client.start}. *) -val start : - ?count:int -> - unit -> - t Deferred.t - -(** Module representing a single shard. *) -module Shard : sig - (** Representation of the state of a shard. *) - type shard = { - hb_interval: Time.Span.t Ivar.t; (** Time span between heartbeats, wrapped in an Ivar. *) - seq: int; (** Current sequence number *) - session: string option; (** Session id, if one exists. *) - pipe: Frame.t Pipe.Reader.t * Frame.t Pipe.Writer.t; (** Raw frame IO pipe used for websocket communications. *) - ready: unit Ivar.t; (** A simple Ivar indicating if the shard has received READY. *) - url: string; (** The websocket URL in use. *) - id: int * int; (** A tuple as expected by Discord. First element is the current shard index, second element is the total shard count. *) - _internal: Reader.t * Writer.t; - } - - (** Wrapper around an internal state, used to wrap {!shard}. *) - type 'a t = { - mutable state: 'a; - } - - (** Send a heartbeat to Discord. This is handled automatically. *) - val heartbeat : - shard -> - shard Deferred.t - - (** Set the status of the shard. *) - val set_status : - status:Yojson.Safe.json -> - shard -> - shard Deferred.t - - (** Request guild members for the shard's guild. Causes dispatch of multiple {{!Dispatch.members_chunk}member chunk} events. *) - val request_guild_members : - ?query:string -> - ?limit:int -> - guild:Snowflake.t -> - shard -> - shard Deferred.t - - (** Create a new shard *) - val create : - url:string -> - shards:int * int -> - unit -> - shard Deferred.t - - val shutdown_clean : shard -> unit Deferred.t -end - -(** Calls {!Shard.set_status} for each shard registered with the sharder. *) -val set_status : - status:Yojson.Safe.json -> - t -> - Shard.shard list Deferred.t - -(** Like {!set_status} but takes a function with a {{!Shard.shard}shard} as its parameter and {{!Yojson.Safe.json}json} for its return. *) -val set_status_with : - f:(Shard.shard -> Yojson.Safe.json) -> - t -> - Shard.shard list Deferred.t - -(** Calls {!Shard.request_guild_members} for each shard registered with the sharder. *) -val request_guild_members : - ?query:string -> - ?limit:int -> - guild:Snowflake.t -> - t -> - Shard.shard list Deferred.t - +(** Internal sharding manager. Most of this is accessed through {!Client}. *)
+
+open Core
+open Async
+open Websocket_async
+
+exception Invalid_Payload
+exception Failure_to_Establish_Heartbeat
+
+type t
+
+(** Start the Sharder. This is called by {!Client.start}. *)
+val start :
+ ?count:int ->
+ unit ->
+ t Deferred.t
+
+(** Module representing a single shard. *)
+module Shard : sig
+ (** Representation of the state of a shard. *)
+ type shard = {
+ hb_interval: Time.Span.t Ivar.t; (** Time span between heartbeats, wrapped in an Ivar. *)
+ seq: int; (** Current sequence number *)
+ session: string option; (** Session id, if one exists. *)
+ pipe: Frame.t Pipe.Reader.t * Frame.t Pipe.Writer.t; (** Raw frame IO pipe used for websocket communications. *)
+ ready: unit Ivar.t; (** A simple Ivar indicating if the shard has received READY. *)
+ url: string; (** The websocket URL in use. *)
+ id: int * int; (** A tuple as expected by Discord. First element is the current shard index, second element is the total shard count. *)
+ _internal: Reader.t * Writer.t;
+ }
+
+ (** Wrapper around an internal state, used to wrap {!shard}. *)
+ type 'a t = {
+ mutable state: 'a;
+ }
+
+ (** Send a heartbeat to Discord. This is handled automatically. *)
+ val heartbeat :
+ shard ->
+ shard Deferred.t
+
+ (** Set the status of the shard. *)
+ val set_status :
+ status:Yojson.Safe.json ->
+ shard ->
+ shard Deferred.t
+
+ (** Request guild members for the shard's guild. Causes dispatch of multiple {{!Dispatch.members_chunk}member chunk} events. *)
+ val request_guild_members :
+ ?query:string ->
+ ?limit:int ->
+ guild:Snowflake.t ->
+ shard ->
+ shard Deferred.t
+
+ (** Create a new shard *)
+ val create :
+ url:string ->
+ shards:int * int ->
+ unit ->
+ shard Deferred.t
+
+ val shutdown_clean : shard -> unit Deferred.t
+end
+
+(** Calls {!Shard.set_status} for each shard registered with the sharder. *)
+val set_status :
+ status:Yojson.Safe.json ->
+ t ->
+ Shard.shard list Deferred.t
+
+(** Like {!set_status} but takes a function with a {{!Shard.shard}shard} as its parameter and {{!Yojson.Safe.json}json} for its return. *)
+val set_status_with :
+ f:(Shard.shard -> Yojson.Safe.json) ->
+ t ->
+ Shard.shard list Deferred.t
+
+(** Calls {!Shard.request_guild_members} for each shard registered with the sharder. *)
+val request_guild_members :
+ ?query:string ->
+ ?limit:int ->
+ guild:Snowflake.t ->
+ t ->
+ Shard.shard list Deferred.t
+
val shutdown_all : t -> unit list Deferred.t
\ No newline at end of file |