Crate vesper_macros

source ·

Attribute Macros§

  • Prepares the function to allow it to be set as an after hook, see the implementation for more information about this macro’s behaviour.
  • Prepares the function to be used to autocomplete command arguments.
  • Prepares the function to allow it to be set as a before hook, see the implementation for more information about this macro’s behaviour.
  • 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.

Derive Macros§

  • Implements the Modal trait for the derived struct, allowing it to create modals and collect the inputs provided by the user.
  • 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.