|
@@ -338,13 +338,13 @@ type voiceChannelJoinOp struct {
|
|
|
|
|
|
func (s *Session) ChannelVoiceJoin(gID, cID string, mute, deaf bool) (voice *VoiceConnection, err error) {
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
var ok bool
|
|
|
- if voice, ok = s.VoiceConnections[gID]; ok {
|
|
|
+ if voice, ok = s.VoiceConnections[gID]; ok && voice.GuildID != "" {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if voice.ChannelID != cID {
|
|
|
err = voice.ChangeChannel(cID)
|
|
|
}
|