message.author or message.member code example
Example 1: message.author
message.channel.send("Test").then(sentMessage => sentMessage.edit("Blah"));
Example 2: message.author
message.channel.fetchMessages({around: "352292052538753025", limit: 1})
.then(messages => {
const fetchedMsg = messages.first();
fetchedMsg.edit("This fetched message was edited");
});
message.channel.messages.fetch({around: "352292052538753025", limit: 1})
.then(messages => {
messages.first().edit("This fetched message was edited");
});