MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / guild_commands_get

Method guild_commands_get

src/dpp/cluster/appcommand.cpp:134–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void cluster::guild_commands_get(snowflake guild_id, command_completion_event_t callback) {
135 rest_request_list<slashcommand>(this, API_PATH "/applications", std::to_string(me.id), "/guilds/" + std::to_string(guild_id) + "/commands", m_get, "", callback);
136}
137
138void cluster::interaction_response_create(snowflake interaction_id, const std::string &token, const interaction_response &r, command_completion_event_t callback) {
139 this->post_rest_multipart(API_PATH "/interactions", std::to_string(interaction_id), utility::url_encode(token) + "/callback", m_post, r.build_json(), [this, callback](json &j, const http_request_completion_t& http) {

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected