aboutsummaryrefslogtreecommitdiff
path: root/lib/models/channel/message/message.mli
diff options
context:
space:
mode:
authorAdelyn Breedlove <[email protected]>2019-01-28 10:31:51 -0700
committerAdelyn Breedlove <[email protected]>2019-01-28 10:31:51 -0700
commit8662e92987c437f59d09896a247ec2b5d82c4528 (patch)
treef004cc14598351d4ad6b19d8e993d2f629c5e738 /lib/models/channel/message/message.mli
parentAdd more docs (diff)
downloaddisml-8662e92987c437f59d09896a247ec2b5d82c4528.tar.xz
disml-8662e92987c437f59d09896a247ec2b5d82c4528.zip
Publish docs updates
Diffstat (limited to 'lib/models/channel/message/message.mli')
-rw-r--r--lib/models/channel/message/message.mli57
1 files changed, 38 insertions, 19 deletions
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