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

Method Texts

message/message.go:544–550  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

542}
543
544func (msg *PrivateMessage) Texts() []string {
545 texts := make([]string, 0, len(msg.Elements))
546 for _, elem := range msg.Elements {
547 texts = append(texts, ToReadableStringEle(elem))
548 }
549 return texts
550}
551
552func (msg *TempMessage) ToString() string {
553 return ToReadableString(msg.Elements)

Callers

nothing calls this directly

Calls 1

ToReadableStringEleFunction · 0.85

Tested by

no test coverage detected