title: How do I make the bot to change a voice channel's name? (Discord.js)
body: <p>My idea here is to make the bot change a voice channel name depending on the text after the command. For example the command <code>=changename p</code> will change the vocal channel name into <code>&quot; Pepper&quot;</code>. However, I can't get the bot to do that.</p>
  <p>This is the only code that worked to me:</p>
  <pre><code>client.on('message', message =&gt;
  {
      if (message.channel.id === '748181582241857657') 
      {
          if(!message.content.startsWith(prefix) || message.author.bot) return;
  
          const args = message.content.slice(prefix.length).split(/ +/);
          const command = args.shift().toLowerCase();
          const channel = '843111736898617384' 
          //The ID of the vocal channel I want to change name
          const name = message.content.replace('=changename ','')
  
          if (command === 'changename')
          {
              if (name === 'p')
              message.channel.setName(' Pepper')
          }
      }
  });
  </code></pre>
  <p>However this change the name of the channel where the message is written and not the one I want. Everything other than that crashed the bot so I don't really know. Any idea?</p>