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

Function NewAt

message/elements.go:175–187  ·  view source on GitHub ↗
(target uint32, display ...string)

Source from the content-addressed store, hash-verified

173}
174
175func NewAt(target uint32, display ...string) *AtElement {
176 dis := "@" + strconv.FormatInt(int64(target), 10)
177 if target == 0 {
178 dis = "@全体成员"
179 }
180 if len(display) != 0 {
181 dis = display[0]
182 }
183 return &AtElement{
184 TargetUin: target,
185 Display: dis,
186 }
187}
188
189func NewGroupReply(m *GroupMessage) *ReplyElement {
190 return &ReplyElement{

Callers 1

ParseMessageElementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected