serenity-slash-decode

Crates.ioserenity-slash-decode
lib.rsserenity-slash-decode
version0.1.2
sourcesrc
created_at2021-07-31 00:20:01.428711
updated_at2021-08-28 03:56:19.960291
descriptionAbstraction layer to help with handling slash commands in Serenity
homepage
repositoryhttps://github.com/squili/serenity-slash-decode
max_upload_size
id429475
size48,431
Mia (squili)

documentation

README

Serenity Slash Decode

After banging my head against a wall trying to get slash commands to make sense in Serenity, in addition to the impending Discord intent changes, I decided to make a library to help with easier parsing of command arguments. Inspired by Clap's ArgMatches, you're able to parse arguments in one call, match which function to execute for which interaction, and extract values from the arguments. You're even able to use ?s to exit early from your command's individual function.

Commit count: 8

cargo fmt