Add documentation for Message.editMessage
This commit is contained in:
parent
fb71f31ea5
commit
4af2f4f711
|
@ -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"})),
|
||||
|
|
Reference in New Issue