From a97d89e1de13c933e59353f337e759f06e1ac843 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Mon, 11 Jul 2016 22:17:56 -0500 Subject: [PATCH] Fix param to ChannelVoiceJoin --- voice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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