title: How to resolve TypeError: Cannot convert "null" to int
body: <p>Error:</p>
  <blockquote>
  <p>TypeError: Cannot convert &quot;null&quot; to int.</p>
  </blockquote>
  <pre><code>function play(connection, message){
                  var server = servers[message.guild.id];
  
                  server.dispatcher = connection.play(ytdl(server.queue[0], {filter: &quot;audioonly&quot;}));
  
                  server.queue.shift();
  
                  server.dispatcher.on(&quot;end&quot;, function(){
                      if(server.queue[0]){
                          play(connection, message);
                      }else {
                          connection.disconnect();
                      }
                  })
  
  
  
              }           
  </code></pre>
  <p>The error message I'm getting from the tester is:</p>
  <pre><code>    TypeError: Cannot convert &quot;null&quot; to int
      TypeError: Cannot convert &quot;null&quot; to int
      Error: &quot;abort(TypeError: Cannot convert &quot;null&quot; to int). Build with -s ASSERTIONS=1 for more info.&quot;
      at (anonymous) (file:///c:/Users/pc/Documents/Discord%20Bot/node_modules/opusscript/build/opusscript_native_wasm.js:8:1741) 
      at emit (events.js:311:19)
  </code></pre>
  <p>I'm begging you, please help me.
  Thanks.</p>