#include <dpp/export.h>
#include <dpp/snowflake.h>
#include <dpp/misc-enum.h>
#include <dpp/user.h>
#include <dpp/guild.h>
#include <dpp/role.h>
#include <dpp/appcommand.h>
#include <dpp/dispatcher.h>
#include <dpp/utility.h>
#include <dpp/json_fwd.h>
#include <dpp/event_router.h>
#include <unordered_map>
#include <vector>
#include <functional>
#include <variant>
Classes | |
struct | dpp::command_info_t |
Represents the details of a command added to the command handler class. More... | |
struct | dpp::command_source |
Represents the sending source of a command. More... | |
class | dpp::commandhandler |
The commandhandler class represents a group of commands, prefixed or slash commands with handling functions. More... | |
struct | dpp::param_info |
Details of a command parameter used in registration. More... | |
struct | dpp::resolved_user |
dpp::resolved_user contains both a dpp::guild_member and a dpp::user. More... | |
Namespaces | |
dpp | |
The main namespace for D++ functions. | |
Typedefs | |
typedef std::function< void(const std::string &, const parameter_list_t &, command_source)> | dpp::command_handler |
The function definition for a command handler. More... | |
typedef std::variant< std::monostate, std::string, dpp::role, dpp::channel, dpp::resolved_user, int64_t, bool, double > | dpp::command_parameter |
Represents a received parameter. More... | |
typedef std::vector< std::pair< std::string, command_parameter > > | dpp::parameter_list_t |
Parameter list for a called command. More... | |
typedef std::vector< std::pair< std::string, param_info > > | dpp::parameter_registration_t |
Parameter list used during registration. More... | |
Enumerations | |
enum | dpp::parameter_type { dpp::pt_string, dpp::pt_role, dpp::pt_channel, dpp::pt_user, dpp::pt_integer, dpp::pt_double, dpp::pt_boolean } |
Parameter types when registering a command. More... | |