From fbfba5b9694dc0b77cccaa1e58ee677d0d4015b6 Mon Sep 17 00:00:00 2001 From: Santiago Andaluz Date: Thu, 5 Jul 2018 13:46:54 -0500 Subject: [PATCH] Update Disconnect() comment It looks like dgo has moved away from ChannelVoiceLeave ever since discord allows bot to connect to more than one channel. Confusing comment seeing that it is very hard to find information about the function that it mentions. --- voice.go | 1 - 1 file changed, 1 deletion(-) diff --git a/voice.go b/voice.go index 3bbf621..769e547 100644 --- a/voice.go +++ b/voice.go @@ -135,7 +135,6 @@ func (v *VoiceConnection) ChangeChannel(channelID string, mute, deaf bool) (err // Disconnect disconnects from this voice channel and closes the websocket // and udp connections to Discord. -// !!! NOTE !!! this function may be removed in favour of ChannelVoiceLeave func (v *VoiceConnection) Disconnect() (err error) { // Send a OP4 with a nil channel to disconnect