Update "edited" object locally.

This commit is contained in:
Paul Makles
2021-01-27 14:20:48 +00:00
parent 10f9be875c
commit 96ec4f0795
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "revolt.js",
"version": "3.0.1-beta.10",
"version": "3.0.1-beta.11",
"main": "dist/index.js",
"repository": "https://gitlab.insrt.uk/revolt/revolt.js",
"author": "Paul Makles <insrt.uk>",
+1 -1
View File
@@ -50,7 +50,7 @@ export default class Message {
async edit(content: string) {
await this.client.Axios.patch(`/channels/${this.channel.id}/messages/${this.id}`, { content });
this.patch({ content }, true);
this.patch({ content, edited: { $date: new Date().toUTCString() } }, true);
}
async delete(preventRequest?: boolean) {