SICKNICKERONI
SICKNICKERONI
DIAdiscord.js - Imagine an app
Created by SICKNICKERONI on 8/19/2024 in #djs-voice
Proper disposal of a PlayerSubscription, and AudioPlayer
Really stupid question here however, I need to know what the safe and proper way to do this is. Does calling .destroy() on a VoiceConnection dispose of the subscription and player properly? Is that something I should even worry about? I ask because I'm considering keeping track of subscriptions within a map since it has a reference to both the player and connection (useful for several things, especially the audio player reference) and primarily would like to know if that would cause problems.
6 replies