How do you manually end an AudioReceiveStream?

It's very unclear from the documentation how you actually end it the same way you would with EndBehaviorType.AfterSilence or EndBehaviorType.AfterInactivity. How do I end it the same way it would end via EndBehaviorType.AfterSilence?
7 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
dzlandis
dzlandisOP3y ago
Irrelevant.
megatank58
megatank583y ago
can't you just call stream.destroy
dzlandis
dzlandisOP3y ago
Well I suppose but is ending the stream different then destroying it? Or is EndBehaviorType.AfterSilence also just destroying the stream? It's very confusing.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
dzlandis
dzlandisOP2y ago
No unfortunately, I never figured out how to end it when it has manual end behavior. I ended up just using one of the automatic end behaviors.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server