diff options
Diffstat (limited to 'docs/disml/Disml__/Event/index.html')
| -rw-r--r-- | docs/disml/Disml__/Event/index.html | 2 |
1 files changed, 2 insertions, 0 deletions
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 |