Skip to content
Success

Changes

Summary

  1. Proper closing of resources in MessageAction (commit: b8e7e4e) (details)
Commit b8e7e4e21474bbb299b64525458f8e2fe11d319d by Florian Spieß
Proper closing of resources in MessageAction
Added the following methods
* clearFiles(Consumer)
* clearFiles(BiConsumer)
This should allow users to close any of their provided resources,
additionally clearFiles() will now close any opened FileInputStreams!
I've added a note to the class-level documentation that the execution of
MessageAction closes all provided resources. You cannot send the same
resource twice without copying it first!
closes #660
(commit: b8e7e4e)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/restaction/MessageAction.java (diff)