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 docs2y 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
dzlandis2y ago
Irrelevant.
megatank58
megatank582y ago
can't you just call stream.destroy
dzlandis
dzlandis2y 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 User14mo ago
Message Not Public
Sign In & Join Server To View
dzlandis
dzlandis14mo 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 User14mo ago
Message Not Public
Sign In & Join Server To View