D++ (DPP)
C++ Discord API Bot Library
dpp::command_info_t Struct Reference

Represents the details of a command added to the command handler class. More...

+ Collaboration diagram for dpp::command_info_t:

Public Attributes

command_handler func
 Function reference for the handler. This is std::function so it can represent a class member, a lambda or a raw C function pointer. More...
 
parameter_registration_t parameters
 Parameters requested for the command, with their types. More...
 
snowflake guild_id
 Guild ID the command exists on, or 0 to be present on all guilds. More...
 

Detailed Description

Represents the details of a command added to the command handler class.

Deprecated:
commandhandler and message commands are deprecated and dpp::slashcommand is encouraged as a replacement.

Member Data Documentation

◆ func

command_handler dpp::command_info_t::func

Function reference for the handler. This is std::function so it can represent a class member, a lambda or a raw C function pointer.

◆ guild_id

snowflake dpp::command_info_t::guild_id

Guild ID the command exists on, or 0 to be present on all guilds.

◆ parameters

parameter_registration_t dpp::command_info_t::parameters

Parameters requested for the command, with their types.

D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0