remove debug leftover

This commit is contained in:
Syping 2024-02-07 19:34:01 +01:00
parent a26763df96
commit 2cbb137c11

View file

@ -78,7 +78,6 @@ void bot::webhook_push::push_request(dpp::snowflake webhook_id, const std::strin
std::promise<dpp::http_request_completion_t> _p;
std::future<dpp::http_request_completion_t> _f = _p.get_future();
bot->post_rest(API_PATH "/webhooks", std::to_string(webhook_id), dpp::utility::url_encode(webhook_token), dpp::m_post, json, [&bot, &_p](dpp::json &json, const dpp::http_request_completion_t &event) {
std::cout << event.body << std::endl;
if (event.status != 204)
std::cerr << "[Warning] Webhook push returned unexpected code " << event.status << std::endl;
_p.set_value(event);