MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / Texts

Method Texts

message/message.go:564–570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

562}
563
564func (msg *TempMessage) Texts() []string {
565 texts := make([]string, 0, len(msg.Elements))
566 for _, elem := range msg.Elements {
567 texts = append(texts, ToReadableStringEle(elem))
568 }
569 return texts
570}
571
572func ToReadableString(m []IMessageElement) string {
573 sb := new(strings.Builder)

Callers

nothing calls this directly

Calls 1

ToReadableStringEleFunction · 0.85

Tested by

no test coverage detected