D++ (DPP)
C++ Discord API Bot Library
|
Click on button. More...
#include <dispatcher.h>
Public Member Functions | |
button_click_t (class DiscordClient *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... | |
Public Attributes | |
std::string | custom_id |
uint8_t | component_type |
interaction | command |
std::string | raw_event |
class DiscordClient * | from |
Click on button.
dpp::button_click_t::button_click_t | ( | class DiscordClient * | client, |
const std::string & | raw | ||
) |
Constructor
client | The shard the event originated on |
raw | Raw event text as JSON |
|
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