1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-discord.git synced 2024-11-24 15:12:53 +00:00

fixed weird message reference

This commit is contained in:
diamondburned 2021-01-06 17:45:23 -08:00
parent 8edbbcc249
commit 4fefdf1b93

View file

@ -288,7 +288,7 @@ func newRegularContent(m discord.Message, s *state.Instance) Message {
segments.ParseWithMessageRich(&content, refContent, &m, s.Cabinet) segments.ParseWithMessageRich(&content, refContent, &m, s.Cabinet)
content = segments.Ellipsize(content, 100) content = segments.Ellipsize(content, 100)
content.Content += ">" + content.Content + "\n" content.Content = ">" + content.Content + "\n"
segutil.Add(&content, segutil.Add(&content,
reference.NewMessageSegment(0, len(content.Content)-1, m.ReferencedMessage.ID), reference.NewMessageSegment(0, len(content.Content)-1, m.ReferencedMessage.ID),