3 releases
0.1.2 | Aug 28, 2021 |
---|---|
0.1.1 | Aug 7, 2021 |
0.1.0 | Jul 31, 2021 |
#23 in #serenity
13KB
279 lines
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.
Dependencies
~5–11MB
~117K SLoC