Crate vesper_macros

Source

Attribute Macros§

after
Prepares the function to allow it to be set as an after hook, see the implementation for more information about this macro’s behaviour.
autocomplete
Prepares the function to be used to autocomplete command arguments.
before
Prepares the function to allow it to be set as a before hook, see the implementation for more information about this macro’s behaviour.
check
command
Converts an async-compatible function into a builder and modifies function’s body to parse all required arguments, for further information about the behaviour of this macro, see the implementation.
error_handler

Derive Macros§

Modal
Implements the Modal trait for the derived struct, allowing it to create modals and collect the inputs provided by the user.
Parse
Implements Parse for an enum, allowing it to be used as a command argument. The enum will be seen by the user as a list of options to choose from, and one of the variants will have to be selected.