AquinBot 1.0.2
Official AquinBot made by Team Aquin | Finaly a simple Open Source Discord bot made in C++ by Aquin
 
Loading...
Searching...
No Matches
commandValidation.hpp
Go to the documentation of this file.
1#include <vector>
2#include <string>
3#include <tuple>
4#include <map>
5
7
9
10namespace bot
11{
15 extern std::vector<std::tuple<
16 std::string, // Command name
17 std::string, // Command explanation
18 std::vector<Error>(*)(const dpp::slashcommand_t&, std::shared_ptr<bot::Bot> aquin), // Function call
19 std::map<std::string, std::pair<std::string, bool>>, // {Option name}, {Command explanation}, {Is required?}
20 std::map<std::string, std::string> // {Option popup}, {Popup explanation}
22}
23
Definition cli.cpp:17
std::vector< std::tuple< std::string, std::string, std::vector< Error >(*)(const dpp::slashcommand_t &, std::shared_ptr< bot::Bot > aquin), std::map< std::string, std::pair< std::string, bool > >, std::map< std::string, std::string > > > slashCommandValidations
Validate the commands here, check src/commandValidation.cpp for reference.
Definition commandValidation.cpp:19