Преглед изворни кода

Fix param to ChannelVoiceJoin

Bruce Marriner пре 8 година
родитељ
комит
a97d89e1de
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      voice.go

+ 1 - 1
voice.go

@@ -831,7 +831,7 @@ func (v *VoiceConnection) reconnect() {
 
 		v.log(LogInformational, "trying to reconnect to channel %s", v.ChannelID)
 
-		_, err := v.session.ChannelVoiceJoin(gID, v.ChannelID, v.mute, v.deaf)
+		_, err := v.session.ChannelVoiceJoin(v.GuildID, v.ChannelID, v.mute, v.deaf)
 		if err == nil {
 			v.log(LogInformational, "successfully reconnected to channel %s", v.ChannelID)
 			return