feat: add UpdateWatchStatus function (#1291)
This commit adds the UpdateWatchStatus method
This commit is contained in:
parent
f73d3a2fd5
commit
2998b2c67d
1 changed files with 8 additions and 0 deletions
8
wsapi.go
8
wsapi.go
|
@ -361,6 +361,14 @@ func (s *Session) UpdateGameStatus(idle int, name string) (err error) {
|
|||
return s.UpdateStatusComplex(*newUpdateStatusData(idle, ActivityTypeGame, name, ""))
|
||||
}
|
||||
|
||||
// UpdateWatchStatus is used to update the user's watch status.
|
||||
// If idle>0 then set status to idle.
|
||||
// If name!="" then set movie/stream.
|
||||
// if otherwise, set status to active, and no activity.
|
||||
func (s *Session) UpdateWatchStatus(idle int, name string) (err error) {
|
||||
return s.UpdateStatusComplex(*newUpdateStatusData(idle, ActivityTypeWatching, name, ""))
|
||||
}
|
||||
|
||||
// UpdateStreamingStatus is used to update the user's streaming status.
|
||||
// If idle>0 then set status to idle.
|
||||
// If name!="" then set game.
|
||||
|
|
Loading…
Reference in a new issue