dpp::command_source
commandhandler.h
snowflake snowflake dpp::command_source::channel_id channel_id dpp::command_source::channel_id

Source channel id.

snowflake snowflake dpp::command_source::command_id command_id dpp::command_source::command_id

Command ID of a slash command.

std::string std::string dpp::command_source::command_token command_token dpp::command_source::command_token

Token for sending a slash command reply.

snowflake snowflake dpp::command_source::guild_id guild_id dpp::command_source::guild_id

Sending guild id.

std::optional< interaction_create_t > std::optional<interaction_create_t> dpp::command_source::interaction_event interaction_event dpp::command_source::interaction_event

Copy of the underlying interaction_create_t event, if it was an interaction create event.

user user dpp::command_source::issuer issuer dpp::command_source::issuer

The user who issued the command.

std::optional< message_create_t > std::optional<message_create_t> dpp::command_source::message_event message_event dpp::command_source::message_event

Copy of the underlying message_create_t event, if it was a message create event.

dpp::command_source::command_source
(const struct interaction_create_t &event)
command_source
dpp::command_source::command_source
const struct interaction_create_t & event

Construct a command_source object from an interaction_create_t event.

dpp::command_source::command_source
(const struct message_create_t &event)
command_source
dpp::command_source::command_source
const struct message_create_t & event

Construct a command_source object from a message_create_t event.

Represents the sending source of a command. This is passed to any command handler and should be passed back to commandhandler::reply(), allowing the reply method to route any replies back to the origin, which may be a slash command or a message. Both require different response facilities but we want this to be transparent if you use the command handler class.

Deprecated

commandhandler and message commands are deprecated and dpp::slashcommand is encouraged as a replacement.

bool
dpp::command_source
channel_id
command_id
guild_id
command_token
issuer
message_event
interaction_event
dpp::json_interface< T >
dpp::json_interface< user >
< user >
dpp::managed
id
dpp::snowflake
value
dpp::user
global_name
username
avatar
avatar_decoration
primary_guild
flags
discriminator
refcount
dpp::utility::iconhash
first
second
dpp::utility::primaryguild
id
enabled
tag
badge
std::basic_string< Char >
optional< dpp::interaction_create_t >
optional< dpp::message_create_t >
std::string
uint16_t
uint32_t
uint64_t
uint8_t
- dpp::command_source
  channel_id
- dpp::command_source
  command_id
- dpp::command_source
  command_source
- dpp::command_source
  command_source
- dpp::command_source
  command_token
- dpp::command_source
  guild_id
- dpp::command_source
  interaction_event
- dpp::command_source
  issuer
- dpp::command_source
  message_event