Skip to content

Commit

Permalink
Add ActivityTypeWatching (3) (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
rigormorrtiss committed Aug 9, 2021
1 parent 4ebe5a0 commit 460b371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1202,8 +1202,8 @@ const (
ActivityTypeGame ActivityType = 0
ActivityTypeStreaming ActivityType = 1
ActivityTypeListening ActivityType = 2
// ActivityTypeWatching // not valid in this use case?
ActivityTypeCustom ActivityType = 4
ActivityTypeWatching ActivityType = 3
ActivityTypeCustom ActivityType = 4
)

// Identify is sent during initial handshake with the discord gateway.
Expand Down

2 comments on commit 460b371

@rickstaa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rigormorrtiss Thanks for adding this commit. Is there a way to use the watching activity type already, or do we still need to implement a wrapping function like UpdateStreamingStatus?

discordgo/wsapi.go

Lines 369 to 375 in f73d3a2

func (s *Session) UpdateStreamingStatus(idle int, name string, url string) (err error) {
gameType := ActivityTypeGame
if url != "" {
gameType = ActivityTypeStreaming
}
return s.UpdateStatusComplex(*newUpdateStatusData(idle, gameType, name, url))
}

@rickstaa
Copy link
Contributor

@rickstaa rickstaa commented on 460b371 Nov 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created #1291 as a follow-up on 460b371 to add this feature.

Please sign in to comment.