Kaktushose / jda-commands

A declarative, annotation driven command library for JDA
https://github.com/Kaktushose/jda-commands/wiki
Apache License 2.0
67 stars 11 forks source link

[FEATURE] ReplyContext queue / reply consumer #114

Closed stijnb1234 closed 1 year ago

stijnb1234 commented 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());