blob: c9a7e0406e596f2f266c5b693d0c6ef1993b2312 (
plain) (
blame)
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><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><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-_"><a href="#val-_" class="anchor"></a><code><span class="keyword">val </span>_ : <a href="index.html#type-message_update">message_update</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-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><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-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><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></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-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>
|