Skip to content

Commit

Permalink
Update Disconnect() comment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
santichu95 authored Jul 5, 2018
1 parent d7a58a4 commit fbfba5b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion voice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbfba5b

Please sign in to comment.