瀏覽代碼

VOICE_STATE_UPDATE should not fall though to Default right now.

Bruce Marriner 9 年之前
父節點
當前提交
87f433e2d8
共有 1 個文件被更改,包括 1 次插入0 次删除
  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