title: Discord.js v13, @discordjs/voice Play Music Command
body: <p>This is my code,
  The command executes perfectly, The bot joins the voice channel and also sends the name of the song its about to play, but it doesnt play the song in the voice channel.
  This is my first time ever asking a question on stackoverflow so dont mind the format and stuff. But I really need help here.
  Discord v13 and latest node module.</p>
  <pre><code>const ytsearch = require('yt-search');
  const Discord = require('discord.js')
  const {
      joinVoiceChannel,
      createAudioPlayer,
      createAudioResource,
      NoSubscriberBehavior
  } = require('@discordjs/voice');
  
  
  module.exports = {
      name: &quot;play&quot;,
      description: &quot;test command&quot;,
  
      async run(client, message, args) {
  
          const voiceChannel = message.member.voice.channel;
          if (!voiceChannel) return message.channel.send('Please connect to a voice channel!');
          if (!args.length) return message.channel.send('Please Provide Something To Play!')
  
          const connection = await joinVoiceChannel({
              channelId: message.member.voice.channel.id,
              guildId: message.guild.id,
              adapterCreator: message.guild.voiceAdapterCreator
          });
          const videoFinder = async (query) =&gt; {
              const videoResult = await ytsearch(query);
              return (videoResult.videos.length &gt; 1) ? videoResult.videos[0] : null;
  
  
          }
          const video = await videoFinder(args.join(' '));
          if (video) {
              const stream = ytdl(video.url, { filter: 'audioonly' });
              const player = createAudioPlayer();
              const resource = createAudioResource(stream)
  
              await player.play(resource);
              connection.subscribe(player);
              
  
  
  
  
              await message.reply(`:thumbsup: Now Playing ***${video.title}***`)
              
          } else {
              message.channel.send('No video results found');
          }
  
  
  
      }
  }``` 
  </code></pre>