Fede
Fede
DIAdiscord.js - Imagine an app
Created by Fede on 8/27/2024 in #djs-voice
Voice Typescript error.
I have a command that i did in js back in the day. I dont even know how djs voice works exactly but ik it worked withouth problem. So here is my code:
player.on(AudioPlayerStatus.Idle, () => {
subscription?.unsubscribe()
player.removeAllListeners();
connection.destroy();
})
player.on(AudioPlayerStatus.Idle, () => {
subscription?.unsubscribe()
player.removeAllListeners();
connection.destroy();
})
And here is the compilation error: Property removeAllListeners does not exist on type AudioPlayer. i thought player was supossed to have it. i mean it used to work when i worked with js
6 replies