code: async def stream(self, ctx, *, url):
          
  
          async with ctx.typing():
              player = await YTDLSource.from_url(url, loop=self.bot.loop, stream=True)
              ctx.voice_client.play(player, after=lambda e: print('Player error: %s' % e) if e else None)
  
          await ctx.send('Now playing: {}'.format(player.title))
docs: Streams from a url (same as yt, but doesn't predownload)