Inject Event Objects into Command Methods #78
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Request
Sub-Project
This is regarding:
Description
Currently the only event we can inject is
ActionEvent, regardless of type parameters.This is nice as it provides some control which is useful, however it'd be better if we were able to
use some kind of pre-execution bindings so there was a cleaner and better way we could handle event
objects other than the highest level Action object.
Motivation
Referring to Discord (ComCord) as the primary example of this, it's quite common that
we want to access
EorMinside theActionEvent<E, M>, but the only way to get theseis with injecting the
ActionEventand then doing the respective getter.It'd be great if events just had a pool of objects that could be injected into events, and
there was a property or annotation that indicated to take from the pool instead of treating
it like a parameter instead of hard-coding specifically for the
ActionEvent.Interface