(content: string)
| 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() { |
no outgoing calls
no test coverage detected