![]() |
D++ (DPP)
C++ Discord API Bot Library
|
Click on button. More...
#include <dispatcher.h>
Inheritance diagram for dpp::button_click_t:
Collaboration diagram for dpp::button_click_t:Public Member Functions | |
| button_click_t (class discord_client *client, const std::string &raw) | |
| 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... | |
| void | get_original_response (command_completion_event_t callback={}) const |
| Get original response message for this interaction. More... | |
| 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... | |
Public Attributes | |
| interaction | command |
| uint8_t | component_type |
| std::string | custom_id |
| class discord_client * | from |
| std::string | raw_event |
Click on button.
| dpp::button_click_t::button_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::button_click_t::component_type |
| std::string dpp::button_click_t::custom_id |
|
inherited |
Shard the event came from
|
inherited |
Raw event text