| 132 | } |
| 133 | |
| 134 | void 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 | |
| 138 | void 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) { |
nothing calls this directly
no test coverage detected