title: how to locate the voice chat that the discord bot is connected to
body: <p>I am making a discord bot that is being activated by voice recognition, im at the very beginning right now im making him join a voice channel (which is working), and im trying to make a command to make him leave.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const commando = require('discord.js-commando');
  
  class LeaveChannelCommand extends commando.Command
  {
      constructor(client){!
          super(client,{
              name: 'leave',
              group: 'music',
              memberName: 'leave',
              description: 'leaves a voice channel'
          });
      }
      async run(message, args)
      {
          if(message.guild.voiceConnection)
          {
              message.guild.voiceConnection.disconnect();
          }
          else
          {
              message.channel.sendMessage("seccessfully left")
          }
      }
  }
  
  module.exports = LeaveChannelCommand;</code></pre>
  </div>
  </div>
  </p>
  
  <p>right now you can type !leave from anywhere in the server and the bot leaves,
  i want to make it possible to control him only from the same voice channel,
  what should i do</p>