Create interaction.
More...
#include <dispatcher.h>
◆ interaction_create_t()
dpp::interaction_create_t::interaction_create_t |
( |
class discord_client * |
client, |
|
|
const std::string & |
raw |
|
) |
| |
Constructor
- Parameters
-
client | The shard the event originated on |
raw | Raw event text as JSON |
◆ edit_response() [1/2]
void dpp::interaction_create_t::edit_response |
( |
const message & |
m | ) |
const |
Edit the response for this interaction.
- Parameters
-
m | Message object to send. Not all fields are supported by Discord. |
◆ edit_response() [2/2]
void dpp::interaction_create_t::edit_response |
( |
const std::string & |
mt | ) |
const |
Edit the response for this interaction.
- Parameters
-
mt | The string value to send, for simple text only messages |
◆ get_parameter()
virtual const command_value & dpp::interaction_create_t::get_parameter |
( |
const std::string & |
name | ) |
const |
|
virtual |
Get a command line parameter.
- Parameters
-
name | The command line parameter to retrieve |
- Returns
- const command_value& If the command line parameter does not exist, an empty variant is returned.
Reimplemented in dpp::button_click_t, and dpp::select_click_t.
◆ reply() [1/2]
Send a reply for this interaction.
- Parameters
-
t | Type of reply to send |
m | Message object to send. Not all fields are supported by Discord. |
◆ reply() [2/2]
Send a reply for this interaction.
- Parameters
-
t | Type of reply to send |
mt | The string value to send, for simple text only messages |
◆ command
◆ from
Shard the event came from
◆ raw_event
std::string dpp::event_dispatch_t::raw_event |
|
inherited |