1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-28 01:33:10 +00:00
arikawa/api/cmdroute
diamondburned 181dcb1bdd
api: Introduce api/cmdroute
This commit introduces a slash commands and autocompletion router. It
abstracts the switch-cases that the user has to do in each
InteractionEvent handler away.

The router is largely inspired by go-chi's design. Refer to the tests
for examples.
2022-10-13 23:01:29 -07:00
..
fntypes.go api: Introduce api/cmdroute 2022-10-13 23:01:29 -07:00
middlewares.go api: Introduce api/cmdroute 2022-10-13 23:01:29 -07:00
router.go api: Introduce api/cmdroute 2022-10-13 23:01:29 -07:00
router_test.go api: Introduce api/cmdroute 2022-10-13 23:01:29 -07:00