DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
A class for handling commands from user input. More...
#include <CommandController.hpp>
Public Member Functions | |
unordered_map< jsonifier::vector< jsonifier::string >, unique_ptr< base_function > > & | getFunctions () |
For returning the contained map of functions. More... | |
void | registerFunction (const jsonifier::vector< jsonifier::string > &functionNames, unique_ptr< base_function > baseFunction) |
Registers a function to be called. More... | |
unordered_map< jsonifier::vector< jsonifier::string >, unique_ptr< base_function > > & discord_core_api::command_controller::getFunctions | ( | ) |
Definition at line 42 of file CommandController.cpp.
void discord_core_api::command_controller::registerFunction | ( | const jsonifier::vector< jsonifier::string > & | functionNames, |
unique_ptr< base_function > | baseFunction | ||
) |
functionNames | a vector of strings to be accepted as function names. |
baseFunction | a unique_ptr to the function to be called. |
Definition at line 38 of file CommandController.cpp.