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

Method Texts

message/message.go:524–530  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

522}
523
524func (msg *GroupMessage) Texts() []string {
525 texts := make([]string, 0, len(msg.Elements))
526 for _, elem := range msg.Elements {
527 texts = append(texts, ToReadableStringEle(elem))
528 }
529 return texts
530}
531
532func (msg *PrivateMessage) ToString() string {
533 return ToReadableString(msg.Elements)

Callers

nothing calls this directly

Calls 1

ToReadableStringEleFunction · 0.85

Tested by

no test coverage detected