|
@@ -316,12 +316,12 @@ type updateStatusOp struct {
|
|
|
Data updateStatusData `json:"d"`
|
|
|
}
|
|
|
|
|
|
-// UpdateStatus is used to update the user's status.
|
|
|
+// UpdateStreamingStatus is used to update the user's streaming status.
|
|
|
// If idle>0 then set status to idle.
|
|
|
// If game!="" then set game.
|
|
|
// If game!="" and url!="" then set the status type to streaming with the URL set.
|
|
|
// if otherwise, set status to active, and no game.
|
|
|
-func (s *Session) UpdateStatus(idle int, game string, url string) (err error) {
|
|
|
+func (s *Session) UpdateStreamingStatus(idle int, game string, url string) (err error) {
|
|
|
|
|
|
s.log(LogInformational, "called")
|
|
|
|
|
@@ -355,6 +355,14 @@ func (s *Session) UpdateStatus(idle int, game string, url string) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+// UpdateStatus is used to update the user's status.
|
|
|
+// If idle>0 then set status to idle.
|
|
|
+// If game!="" then set game.
|
|
|
+// if otherwise, set status to active, and no game.
|
|
|
+func (s *Session) UpdateStatus(idle int, game string) (err error) {
|
|
|
+ return s.UpdateStreamingStatus(idle, game, "")
|
|
|
+}
|
|
|
+
|
|
|
// onEvent is the "event handler" for all messages received on the
|
|
|
// Discord Gateway API websocket connection.
|
|
|
//
|