|
@@ -378,18 +378,12 @@ type voiceChannelJoinOp struct {
|
|
|
|
|
|
func (s *Session) ChannelVoiceJoin(gID, cID string, mute, deaf bool) (err error) {
|
|
|
|
|
|
- if s.wsConn == nil {
|
|
|
- return fmt.Errorf("no websocket connection exists")
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
if s.Voice == nil {
|
|
|
s.Voice = &Voice{}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
data := voiceChannelJoinOp{4, voiceChannelJoinData{gID, cID, mute, deaf}}
|
|
@@ -434,6 +428,10 @@ func (s *Session) onVoiceStateUpdate(se *Session, st *VoiceStateUpdate) {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
func (s *Session) onVoiceServerUpdate(se *Session, st *VoiceServerUpdate) {
|
|
|
|
|
|
|