Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

fix lack of GetSenderUid function #38

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions v2/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type IGroupMsg interface {
GetGroupInfo() GroupInfo
GetSenderNick() string
GetSenderUin() int64
GetSenderUid() string
ParseTextMsg() ITextMsg
ParsePicMsg() IPicMsg
ContainedPic() bool
Expand Down Expand Up @@ -256,6 +257,9 @@ func (e *EventStruct) ExcludeBot() IEvent {
func (e *EventStruct) GetSenderUin() int64 {
return e.CurrentPacket.EventData.MsgHead.SenderUin
}
func (e *EventStruct) GetSenderUid() string {
return e.CurrentPacket.EventData.MsgHead.SenderUid
}
func (e *EventStruct) GetSenderNick() string {
return e.CurrentPacket.EventData.MsgHead.SenderNick
}
Expand Down
Loading