connection destroy, disconnect
Is it possible to destroy the connection with disconnecting the bot,
I’ve a command that play an audio < 35 sec
What I’m doing right now that i just use the same connection, but then i will see the warn
13 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
v13
you haven't shown any code and your question is a little vague
but from what I gather, you're calling
<VoiceConnection>.disconnect()
then later connecting with joinVoiceChannel
and adding one or more event listeners to the connection, resulting in listeners piling up due to the VoiceConnection being reused
is that correct?
i want the bot to stay in the channel
and destroy the connection
to prevent this warn
if you destroy the connection, the bot will disconnect
there is no way to destroy the connection without disconnecting
but this appears to be the patchwork fix for the recent voice issue
<a:4kr_think:971221604195524728>
which has been solved in the recent release of /voice 0.15.0
do u mean i need to update to prevent this warn?
the warning has nothing to do with the keepalive issue
as you can read in the warning, there are just too many listeners being added to the same event emitter
this code from what I can tell is the patchwork fix for said keepalive issue, but with the issue being solved, you could remove it entirely after updating
or just remove this
you could remove it entirely after updating
yeah i will try now
ty
working perfectly just like you