Skip to content

Commit

Permalink
Merge pull request #123 from ralfizzle/master
Browse files Browse the repository at this point in the history
Add Rich Presence to PersonaStateEvent
  • Loading branch information
Philipp15b authored Dec 6, 2021
2 parents 37bb02b + 49408fb commit b1bb47e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions social.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ func (s *Social) handlePersonaState(packet *protocol.Packet) {
ClanTag: friend.GetClanTag(),
OnlineSessionInstances: friend.GetOnlineSessionInstances(),
PersonaSetByUser: friend.GetPersonaSetByUser(),
RichPresence: friend.GetRichPresence(),
})
}
}
Expand Down
2 changes: 2 additions & 0 deletions social_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package steam
import (
"time"

"github.com/Philipp15b/go-steam/v2/protocol/protobuf"
"github.com/Philipp15b/go-steam/v2/protocol/steamlang"
"github.com/Philipp15b/go-steam/v2/steamid"
)
Expand Down Expand Up @@ -49,6 +50,7 @@ type PersonaStateEvent struct {
ClanTag string
OnlineSessionInstances uint32
PersonaSetByUser bool
RichPresence []*protobuf.CMsgClientPersonaState_Friend_KV
}

// Fired when a clan's state has been changed
Expand Down

0 comments on commit b1bb47e

Please sign in to comment.