Create interaction.
More...
#include <dispatcher.h>
◆ interaction_create_t()
dpp::interaction_create_t::interaction_create_t |
( |
class DiscordClient * |
client, |
|
|
const std::string & |
raw |
|
) |
| |
Constructor
- Parameters
-
client | The shard the event originated on |
raw | Raw event text as JSON |
◆ get_parameter()
const command_value & dpp::interaction_create_t::get_parameter |
( |
const std::string & |
name | ) |
const |
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.
◆ 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 |