Feature Request: Define command REPLs on command types #740
Labels
feature-accepted
Feature Request or Proposal was accepted by maintainers and will be implemented
K-feature-request
Kind: request for implementing a feature
Currently,
crate::{commands_repl, commands_repl_with_listener}
accept a command type hint as a third parameter. I pondered awhile on how not to require a type hint and came to a stupid solution: just define REPL methods on command types themselves. I.e., we could introduce one more trait with thecommands_repl(_with_listener)
methods and define it forCmd: BotCommands
, we don't even need to change the macro library.Pros
Cons
Alternatives
The text was updated successfully, but these errors were encountered: