We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66ec4dc commit bef374aCopy full SHA for bef374a
src/main/java/net/dv8tion/jda/internal/requests/restaction/MessageActionImpl.java
@@ -528,6 +528,8 @@ protected RequestBody asMultipart()
528
{
529
MultipartBody.Builder body = AttachedFile.createMultipartBody(files, null);
530
body.addFormDataPart("payload_json", getJSON().toString());
531
+ // clear remaining resources, they will be closed after being sent
532
+ files.clear();
533
return body.build();
534
}
535
0 commit comments