KordK
Kord4y ago
tmpod

[Solved with PR] Custom RequestBuilder

Is there any way to patch this (https://github.com/kordlib/kord/issues/674) while the issue is dormant? I'm in need of doing such streaming, but since
RequestBuilder
is final, I cannot make a different
build
implementation that returns a different multipart request that doesn't eagerly consume all stream bytes.
Any suggestions?
GitHub
At the moment, Kord loads the entirety of an InputStream onto memory by this readBytes call. Since the Request class is sealed, one cannot make a custom request that converts just takes a ByteReadC...
Was this page helpful?