edit imporement

This commit is contained in:
MathMan05 committed 2025-10-16 09:44:20 -05:00
1 parent c03763adae
commit 1f1f4d2849
1 file changed
+3
+3
View File
@@ -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,