feat: add edited label after message content for edited messages (#536)

This commit is contained in:
Ayyan 2025-05-07 01:08:03 -04:00 • committed by GitHub
parent a111a9dfbb
commit c7ba928d0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

BIN
.github/preview.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 KiB

After

Width:  |  Height:  |  Size: 634 KiB

View file

@ -171,6 +171,10 @@ func (mt *MessagesText) createBody(w io.Writer, m discord.Message, isReply bool)
if isReply {
fmt.Fprint(w, "[::-]")
}
if m.EditedTimestamp.IsValid() {
fmt.Fprint(w, " [::d](edited)[::-]")
}
}
func (mt *MessagesText) createFooter(w io.Writer, m discord.Message) {