![]() |
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 | |
std::map< std::vector< std::string >, std::unique_ptr< BaseFunction > > & | getFunctions () |
For returning the contained map of functions. More... | |
void | registerFunction (const std::vector< std::string > &functionNames, std::unique_ptr< BaseFunction > baseFunction) |
Registers a function to be called. More... | |
std::map< std::vector< std::string >, std::unique_ptr< BaseFunction > > & DiscordCoreAPI::CommandController::getFunctions | ( | ) |
Definition at line 42 of file CommandController.cpp.
void DiscordCoreAPI::CommandController::registerFunction | ( | const std::vector< std::string > & | functionNames, |
std::unique_ptr< BaseFunction > | 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.