title: is there a way to make my music discord bot saves the volume setting?
body: <p>When I play music, and I set the volume to 20% for example, when the bot leaves the voice channel, and then I play another music, the volume goes back to 100%, and I have to set it again manually to 20% again.</p>
  <p>I want to make my bot save the volume I set. Is there any way to do that?</p>
  <p>Here's my code:</p>
  <pre class="lang-js prettyprint-override"><code> } else if (command === &quot;volume&quot; || command === &quot;vol&quot;) {
          if (!message.member.voice.channel) return message.channel.send(&quot;I'm sorry, but you need to be in a voice channel to set a volume!&quot;);
          if (!serverQueue) return message.channel.send(&quot;There is nothing playing&quot;);
          if (!args[1]) return message.channel.send(`The current volume is: **\`${serverQueue.volume}%\`**`);
          if (isNaN(args[1]) || args[1] &gt; 100) return message.channel.send(&quot;Volume only can be set in a range of **\`1\`** - **\`100\`**&quot;);
          serverQueue.volume = args[1];
          serverQueue.connection.dispatcher.setVolume(args[1] / 100);
          return message.channel.send(`I set the volume to: **\`${args[1]}%\`**`);
  </code></pre>