Skip to content

Abstraction layer to help with handling slash commands in Serenity

License

Notifications You must be signed in to change notification settings

mre/serenity-slash-decode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Abstraction layer to help with handling slash commands in Serenity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%