![]() Currently you are passing a function, hence the error. What you want is the output file name, which you can get from your previous call to download. TypeError: expect str, bytes or os.PathLike object, not method Stream = _highest_resolution()Īwait (file=discord.File(stream.download))Īnd this is my error: Ignoring exception in on_messageįile"opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event If ("/download"):Īwait ("Please Type the def on_message(message): Print("We have logged in as def on_message(message): ![]() ![]() This is my code: from pytube import YouTube It downloads the Video but cant send it to the server Hi im creating a Discord Bot which can download Youtube Videos and should send the video to t6he discord server. ![]()
0 Comments
Leave a Reply. |