voice icon indicating copy to clipboard operation
voice copied to clipboard

fix(Interaction): update interaction methods

Open shadyrajab opened this issue 2 years ago • 1 comments

Updating the Interaction methods to the latest discord.js version

  • interaction.defer() -> interaction.deferReply()
  • interaction.get() -> interaction.getString()

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)

shadyrajab avatar Dec 29 '21 22:12 shadyrajab

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

megatank58 avatar Dec 30 '21 02:12 megatank58