editMessage


General

editMessage edits a specific message in a text channel.


Usage

Client:sendMessage(<string> channelId, <string> content, (array / Embed / Attachment) options)
Returns: <Message> message


Limitations

See discordMessage PATCH.


Example

local sendMsg = Client:sendMessage("569166849099694093", "Testy testy not edited!")
print(sendMsg.content)
wait(2)
local editMsg = Client:editMessage("569166849099694093", sendMsg.id, "Testy testy edited!")
print(editMsg.content)

Back to top