From 4af2f4f711fe695cb1e13e0019f86f100eb4c3ca Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 18 Jun 2020 15:46:22 -0500 Subject: [PATCH] Add documentation for Message.editMessage --- src/message.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/message.nim b/src/message.nim index 7360137..176bc13 100644 --- a/src/message.nim +++ b/src/message.nim @@ -201,6 +201,7 @@ proc removeAllReactions*(message: Message, emoji: Emoji) {.asnyc.} = #TODO: Embeds and maybe flags? proc editMessage*(message: Message, content: string): Future[Message] {.async.} = + ## Edit a previously sent message. let jsonBody = %*{"content": content} return newMessage(sendRequest(endpoint("/channels/" & $message.channelID & "/messages/" & $message.id), HttpPatch, defaultHeaders(newHttpHeaders({"Content-Type": "application/json"})),