#include <InteractionData.h>
|
std::string | get_token () const |
|
json | api_call (const std::string &url, const std::string &method="GET", const json &data=json(), const std::string &content_type="", const bool cache=true) |
| helper function to communicate with the http api
|
|
◆ InteractionData()
DiscordCPP::InteractionData::InteractionData |
( |
const json & | data, |
|
|
const std::string & | token ) |
◆ get_custom_id()
std::optional< std::string > DiscordCPP::InteractionData::get_custom_id |
( |
| ) |
|
|
inline |
- Returns
- The custom id of the component.
◆ get_guild_id()
std::optional< std::string > DiscordCPP::InteractionData::get_guild_id |
( |
| ) |
|
|
inline |
- Returns
- The id of the guild the command is registered to.
◆ get_name()
std::string DiscordCPP::InteractionData::get_name |
( |
| ) |
|
|
inline |
- Returns
- name of the invoked command.
◆ get_options()
- Returns
- The parameters and values from the user.
◆ get_resolved_data()
- Returns
- The resolved users, roles, channels, messages and/or attachments.
◆ get_target_id()
std::optional< std::string > DiscordCPP::InteractionData::get_target_id |
( |
| ) |
|
|
inline |
- Returns
- Id the of user or message targeted by a user or message command.
◆ get_type()
- Returns
- The type of the invoked command.
The documentation for this class was generated from the following files: