mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 12:52:31 +00:00
edit imporement
This commit is contained in:
1 parent
c03763adae
commit
1f1f4d2849
1 file changed
+3
@@ -459,6 +459,9 @@ class Message extends SnowFlake {
|
||||
return new Date(this.timestamp).getTime();
|
||||
}
|
||||
async edit(content: string) {
|
||||
if (content === this.content.textContent) {
|
||||
return;
|
||||
}
|
||||
return await fetch(this.info.api + "/channels/" + this.channel.id + "/messages/" + this.id, {
|
||||
method: "PATCH",
|
||||
headers: this.headers,
|
||||
|
||||
Reference in new issue
Block a user