Signed-off-by: Cléo Rebert <cleo.rebert@gmail.com>
This mostly helps avoid a type assertion that could potentially be incorrectly done.
This adds a small helper function just for convenience.
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.