D++ (DPP)
C++ Discord API Bot Library
|
Click on select. More...
#include <dispatcher.h>
Public Member Functions | |
select_click_t (class discord_client *client, const std::string &raw) | |
virtual const command_value & | get_parameter (const std::string &name) const |
Get a command line parameter. More... | |
void | reply (interaction_response_type t, const message &m) const |
Send a reply for this interaction. More... | |
void | reply (interaction_response_type t, const std::string &mt) const |
Send a reply for this interaction. More... | |
void | get_original_response (command_completion_event_t callback={}) const |
Get original response message for this interaction. More... | |
void | edit_response (const message &m) const |
Edit the response for this interaction. More... | |
void | edit_response (const std::string &mt) const |
Edit the response for this interaction. More... | |
Public Attributes | |
std::string | custom_id |
std::vector< std::string > | values |
uint8_t | component_type |
interaction | command |
std::string | raw_event |
class discord_client * | from |
Click on select.
dpp::select_click_t::select_click_t | ( | class discord_client * | client, |
const std::string & | raw | ||
) |
Constructor
client | The shard the event originated on |
raw | Raw event text as JSON |
|
inherited |
Edit the response for this interaction.
m | Message object to send. Not all fields are supported by Discord. |
|
inherited |
Edit the response for this interaction.
mt | The string value to send, for simple text only messages |
|
inherited |
Get original response message for this interaction.
callback | Function to call when the API call completes. On success the callback will contain a dpp::message object in confirmation_callback_t::value. On failure, the value is undefined and confirmation_callback_t::is_error() method will return true. You can obtain full error details with confirmation_callback_t::get_error(). |
|
virtual |
Get a command line parameter.
name | The command line parameter to retrieve |
Reimplemented from dpp::interaction_create_t.
|
inherited |
Send a reply for this interaction.
t | Type of reply to send |
m | Message object to send. Not all fields are supported by Discord. |
|
inherited |
Send a reply for this interaction.
t | Type of reply to send |
mt | The string value to send, for simple text only messages |
|
inherited |
uint8_t dpp::select_click_t::component_type |
std::string dpp::select_click_t::custom_id |
|
inherited |
Shard the event came from
|
inherited |
Raw event text
std::vector<std::string> dpp::select_click_t::values |