what does joinVoiceChannel return when there's already an active voice connection?
so the guide says
If you try to call joinVoiceChannel
on another channel in the same guild in which there is already an active voice connection, the existing voice connection switches over to the new channel.
does it return the same VoiceConnection
object as before changing channels (therefore, it already has event listeners attached, if any) or is it a new VoiceConnection
with the old one destroyed?3 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I believe it's the same VoiceConnection object
i've tested just to be sure but yes, it's the same object
thanks
i ran
then saw that there's more listeners for
stateChange
in voiceConnection
's list of listeners