hikari.Bytes
creates file with 0 bytes when proxing io.BytesIO
#1343
Labels
bug
Something isn't working
hikari.Bytes
creates file with 0 bytes when proxing io.BytesIO
#1343
Steps to reproduce
This code does not work.
Expected result
The example function should post an image instead of an empty file.
Actual result
The first example function posts an empty file to discord.
System info
hikari (2.0.0.dev111) [2d0c77b5] located at /foo/bar/venv/lib/python3.10/site-packages/hikari CPython 3.10.6 GCC 11.3.0 Linux pop-os 6.0.3-76060003-generic #202210211149~1666452039~22.04~1891946 SMP PREEMPT_DYNAMIC Sat O x86_64 x86_64
Further info
This is how I solved the issue in my project:
Checklist
The text was updated successfully, but these errors were encountered: