title: Discord bot playing music not working anymore
body: <p>I've just moved my discord bot from replit to pycharm/heroku. The transfer went succesful but one part is not working anymore. The music part where the bot joins your voice channel doesn't work anymore. I do not know what going wrong. It does the purge part but not the join part of the code below.</p>
  <p>Update:
  Okay it can now join. No idea how i did it put i just installed two packages named PyNaCl and FFMEG-python. But now it only doesn't play anything. It goes up until async with ctx.typing() but after that there's no audio:</p>
  <pre><code>    @commands.command(name='play')
      async def _play(self, ctx: commands.Context, *, search: str):
          &quot;&quot;&quot;Plays a song.
          If there are songs in the queue, this will be queued until the
          other songs finished playing.
          This command automatically searches from various sites if no URL is provided.
          A list of these sites can be found here: https://rg3.github.io/youtube-dl/supportedsites.html
          &quot;&quot;&quot;
          await ctx.channel.purge(limit=1)
          if not ctx.voice_state.voice:
              await ctx.invoke(self._join)
  
          async with ctx.typing():
              try:
                  source = await YTDLSource.create_source(ctx, search, loop=self.client.loop)
              except YTDLError as e:
                  await ctx.send('An error occurred while processing this request: {}'.format(str(e)))
              else:
                  song = Song(source)
  
                  await ctx.voice_state.songs.put(song)
                  await ctx.send('Added {}'.format(str(source)))
  </code></pre>