You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you add attachments with a MessageCreateBuilder, you give it an InputStream that it reads the data from. However, this stream is never closed, which is very bad.
Fix: in dev.kord.rest.request.Request, replace line 86 with files[0].second.use { it.copyTo(outputStream()) }, and replace lines 88-90 with append("file$index", pair.first) { pair.second.use { it.copyTo(outputStream()) } }
Should look like this:
Excuse the lack of input highlighting, IntelliJ was having issues.
The text was updated successfully, but these errors were encountered:
When you add attachments with a
MessageCreateBuilder
, you give it anInputStream
that it reads the data from. However, this stream is never closed, which is very bad.Fix: in
dev.kord.rest.request.Request
, replace line 86 withfiles[0].second.use { it.copyTo(outputStream()) }
, and replace lines 88-90 withappend("file$index", pair.first) { pair.second.use { it.copyTo(outputStream()) } }
Should look like this:

Excuse the lack of input highlighting, IntelliJ was having issues.
The text was updated successfully, but these errors were encountered: