Crate serenity_slash_decode

Source
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§

SlashMap
Wrapper around HashMap<String, SlashValue>
SlashValue
Contains the values of the slash command

Enums§

Error
Mentionable
Mentionables
UserOrMember
Optionally contains a PartialMember so you don’t need to do a cache lookup

Traits§

FromSlashMap
For derive macros

Functions§

process
Processes a ApplicationCommandInteractionData and returns the path and arguments

Type Aliases§

Result