Browse Source

VOICE_STATE_UPDATE should not fall though to Default right now.

Bruce Marriner 9 năm trước cách đây
mục cha
commit
87f433e2d8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      wsapi.go

+ 1 - 0
wsapi.go

@@ -148,6 +148,7 @@ func (s *Session) event(messageType int, message []byte) (err error) {
 			return err
 		}
 		s.onVoiceStateUpdate(st)
+		return
 	case "PRESENCE_UPDATE":
 		if s.OnPresenceUpdate != nil {
 			var st PresenceUpdate