BcCakeman
DIAdiscord.js - Imagine an app
•Created by BcCakeman on 7/22/2024 in #djs-voice
Delete audio resource
fair enough
11 replies
DIAdiscord.js - Imagine an app
•Created by BcCakeman on 7/22/2024 in #djs-voice
Delete audio resource
and my goofing around has yielded no results
11 replies
DIAdiscord.js - Imagine an app
•Created by BcCakeman on 7/22/2024 in #djs-voice
Delete audio resource
I can't find anything in the docs for destroying it tho
11 replies
DIAdiscord.js - Imagine an app
•Created by BcCakeman on 7/22/2024 in #djs-voice
Delete audio resource
if this is just a fully wrong way to do this then I can do my own research to get it working directly with the streams, but if there is a way to just purge the resource and delete the file that would be easiest.
11 replies
DIAdiscord.js - Imagine an app
•Created by BcCakeman on 7/22/2024 in #djs-voice
Delete audio resource
because I've only played from files before and this was meant to be a quick thrown together thing
11 replies
DIAdiscord.js - Imagine an app
•Created by BcCakeman on 7/22/2024 in #djs-voice
Delete audio resource
Even if the resource is never played by an audio player the file remains locked. Removing the reference variable does nothing. I have tried things like resource.destroy() or resource.playStream.destroy() but looking in the docs I don't see any function to just delete it and close the file handle. Once I call createAudioResource I can't delete the file without stopping the entire app.
11 replies