async def METHOD_NAME(self, ctx, *, url: str, stream: bool):
    await self.ensure_voice(ctx)
    async with ctx.typing():
        player = await YTDLSource.from_url(url, loop=self.bot.loop, stream=stream)
        ctx.voice_client.play(
            player, after=lambda e: print(f"Player error: {e}") if e else None
        )
    await ctx.send(f"Now playing: {player.title}")