How to go from stable version discord.js on the master version?

The problem with the music bot. I searched the Internet and realized that you need to go with a stable version discord.js on the master version. How to do it?

To be more precise about the error, here it is:
UnhandledPromiseRejectionWarning: TypeError: connection.play is not a function
Code:
const shell = module.require("discord.js");
const fs = require("fs");
const ffmpeg = require('ffmpeg');
const ytdl = require('ytdl-core');
const queue = new Map();

module.exports.run = async (bot,message,args) => {
if(!args[0]){
 bot.send('You forgot to enter a command!')
return
}
if(args[0]=='join'){
if(message.member.voiceChannel){
 const connection = await message.member.voiceChannel.join();
console.log(connection)
}else{
 bot.send('You are not connected to voice chat!')
}
}
if(args[0]=='test'){
 const connection = await message.member.voiceChannel
 const dispatcher = connection.play('e:/Programs/GitHub/castielbot/music/test/ChaosInsurgencyTheme.m4a');
console.log(connection)
console.log(dispatcher)
}
if(args[0]=='leave'){
 const connection = await message.member.voiceChannel.leave();
console.log(connection)
}
};
module.exports.help = {
 name: "m"
};
April 19th 20 at 12:21
1 answer
April 19th 20 at 12:23
When installed via NPM, you can pass the address of the git repository.
In your case this:
npm install https://github.com/discordjs/discord.js


But use it with caution since it is possible to obtain unstable code.

Find more questions by tags DiscordJavaScript