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

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

#include "commandhandler.h"

Collaboration diagram for dpp::command_info_t:

Public Attributes

command_handler func
 Function reference for the handler. More...
 
snowflake guild_id
 Guild ID the command exists on, or 0 to be present on all guilds. More...
 
parameter_registration_t parameters
 Parameters requested for the command, with their types. 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.

Referenced by dpp::commandhandler::~commandhandler().

◆ guild_id

snowflake dpp::command_info_t::guild_id

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

Referenced by dpp::commandhandler::~commandhandler().

◆ parameters

parameter_registration_t dpp::command_info_t::parameters

Parameters requested for the command, with their types.

Referenced by dpp::commandhandler::~commandhandler().


The documentation for this struct was generated from the following file: