MCPcopy Create free account
hub / github.com/MathMan05/Fermi / edit

Method edit

src/webpage/message.ts:605–614  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

603 return new Date(this.timestamp).getTime();
604 }
605 private editContent?: string;
606 async edit(content: string) {
607 if (content === this.content.textContent) {
608 return;
609 }
610 this.editContent = content;
611 return await fetch(this.info.api + "/channels/" + this.channel.id + "/messages/" + this.id, {
612 method: "PATCH",
613 headers: this.headers,
614 body: JSON.stringify({content}),
615 });
616 }
617 async delete() {

Callers 2

generateMessageMethod · 0.95
setupcmenuMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected