An interaction represents a user running a command and arrives via the dpp::cluster::on_interaction_create event.
More...
#include <slashcommand.h>
An interaction represents a user running a command and arrives via the dpp::cluster::on_interaction_create event.
◆ build_json()
std::string dpp::interaction::build_json |
( |
bool |
with_id = false | ) |
const |
Build a json string for this object.
- Parameters
-
with_id | True if to include the ID in the JSON |
- Returns
- std::string JSON string
◆ fill_from_json()
Fill object properties from JSON.
- Parameters
-
- Returns
- interaction& Reference to self
◆ application_id
◆ channel_id
◆ data
◆ guild_id
◆ id
◆ member
◆ token
std::string dpp::interaction::token |
◆ type
uint8_t dpp::interaction::type |
◆ usr
user dpp::interaction::usr |
◆ version
uint8_t dpp::interaction::version |