D++ (DPP)  10.0.30
C++ Discord API Bot Library
slashcommand.cpp File Reference
#include <dpp/appcommand.h>
#include <dpp/discordevents.h>
#include <dpp/exception.h>
#include <dpp/json.h>
#include <dpp/stringops.h>
#include <dpp/cache.h>
#include <iostream>
Include dependency graph for slashcommand.cpp:

Namespaces

 dpp
 The main namespace for D++ functions.
 

Functions

void dpp::from_json (const nlohmann::json &j, autocomplete_interaction &ai)
 helper function to deserialize an autocomplete_interaction from json More...
 
void dpp::from_json (const nlohmann::json &j, command_data_option &cdo)
 helper function to deserialize a command_data_option from json More...
 
void dpp::from_json (const nlohmann::json &j, command_interaction &ci)
 helper function to deserialize a command_interaction from json More...
 
void dpp::from_json (const nlohmann::json &j, component_interaction &bi)
 helper function to deserialize a component_interaction from json More...
 
void dpp::from_json (const nlohmann::json &j, interaction &i)
 helper function to deserialize an interaction from json More...
 
void dpp::to_json (json &j, const component &cp)
 
void dpp::to_json (nlohmann::json &j, const command_option &opt)
 helper function to serialize a command_option to json More...
 
void dpp::to_json (nlohmann::json &j, const command_option_choice &choice)
 helper function to serialize a command_option_choice to json More...
 
void dpp::to_json (nlohmann::json &j, const command_permission &cp)
 helper function to serialize a command_permission to json More...
 
void dpp::to_json (nlohmann::json &j, const guild_command_permissions &gcp)
 helper function to serialize a guild_command_permissions to json More...
 
void dpp::to_json (nlohmann::json &j, const slashcommand &cmd)
 helper function to serialize a slashcommand to json More...