discordjs / voice

Implementation of the Discord Voice API for discord.js and other JS/TS libraries
Apache License 2.0
328 stars 112 forks source link

fix(Interaction): update interaction methods #244

Open shadyrajab opened 2 years ago

shadyrajab commented 2 years ago

Updating the Interaction methods to the latest discord.js version

Fixing the audio resource. The track was not being played and the parameters passed to ytdl() method was throwing an error, these parameters have been removed. Also, use probe.stream as parameter to createAudioResource makes the track don't be played, I changed this parameter to a ytdl method, imported from ytdl-core: await ytdla(this.url). These two modifications makes the bot work normally... (Sorry if I speak something wrong. I don't speak english very well =D)

megatank58 commented 2 years ago

174 fixes this and other improvements, perhaps the other changes could be suggested on that PR?