mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 20:16:06 -04:00
Update "edited" object locally.
This commit is contained in:
+1
-1
@@ -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>",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user