D++ (DPP)  10.0.30
C++ Discord API Bot Library
restrequest.h File Reference
#include <dpp/export.h>
#include <dpp/snowflake.h>
#include <dpp/cluster.h>
#include <dpp/invite.h>
#include <dpp/json_fwd.h>
Include dependency graph for restrequest.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 dpp
 The main namespace for D++ functions.
 

Functions

template<class T >
void dpp::rest_request (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback)
 Templated REST request helper to save on typing. More...
 
template<>
void dpp::rest_request< confirmation > (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback)
 Templated REST request helper to save on typing (specialised for confirmation) More...
 
template<>
void dpp::rest_request< message > (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback)
 Templated REST request helper to save on typing (specialised for message) More...
 
template<class T >
void dpp::rest_request_list (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback, const std::string &key, const std::string &root)
 Templated REST request helper to save on typing (for returned lists) More...
 
template<class T >
void dpp::rest_request_list (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback, const std::string &key="id")
 Templated REST request helper to save on typing (for returned lists) More...
 
template<>
void dpp::rest_request_list< ban > (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback, const std::string &key)
 Templated REST request helper to save on typing (for returned lists, specialised for bans) More...
 
template<>
void dpp::rest_request_list< invite > (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback, const std::string &key)
 Templated REST request helper to save on typing (for returned lists, specialised for invites) More...
 
template<>
void dpp::rest_request_list< sticker_pack > (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback, const std::string &key)
 Templated REST request helper to save on typing (for returned lists, specialised for sticker packs) More...
 
template<>
void dpp::rest_request_list< voiceregion > (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback, const std::string &key)
 Templated REST request helper to save on typing (for returned lists, specialised for voiceregions) More...
 
template<class T >
void dpp::rest_request_vector (dpp::cluster *c, const char *basepath, const std::string &major, const std::string &minor, http_method method, const std::string &postdata, command_completion_event_t callback)
 Templated REST request helper to save on typing (for returned lists, specialised for objects which doesn't have ids) More...