Expand description
Simple and easy to use slash command abstraction for Serenity
Abstractions:
- Puts all arguments of a slash command into a map with helper functions for easy argument handling
- Returns full path of subcommand for easy routing
For an example, check the examples
directory
Structs§
- Slash
Map - Wrapper around
HashMap<String, SlashValue>
- Slash
Value - Contains the values of the slash command
Enums§
- Error
- Mentionable
- Mentionables
- User
OrMember - Optionally contains a
PartialMember
so you don’t need to do a cache lookup
Traits§
- From
Slash Map - For derive macros
Functions§
- process
- Processes a
ApplicationCommandInteractionData
and returns the path and arguments