Closed stijnb1234 closed 1 year ago
Related version: 4.0.0-alpha.1
It would be great if the ReplyContext supports a direct Consumer input.
Now I have to use:
event.getReplyContext().getBuilder().setFiles(myFile).setContent("My message"); event.getReplyContext().setConsumer((m) -> myFile.delete()); event.reply();
And instead that could be:
event.getReplyContext().getBuilder().setFiles(myFile).setContent("My message"); event.reply((m) -> myFile.delete());
Related version: 4.0.0-alpha.1
It would be great if the ReplyContext supports a direct Consumer input.
Now I have to use:
And instead that could be: