diff --git a/voice.go b/voice.go index 6e41769..094aa59 100644 --- a/voice.go +++ b/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