mirror of
https://github.com/Syping/dtranslatebot.git
synced 2024-11-22 13:50:22 +01:00
remove debug leftover
This commit is contained in:
parent
a26763df96
commit
2cbb137c11
1 changed files with 0 additions and 1 deletions
|
@ -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::promise<dpp::http_request_completion_t> _p;
|
||||||
std::future<dpp::http_request_completion_t> _f = _p.get_future();
|
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) {
|
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)
|
if (event.status != 204)
|
||||||
std::cerr << "[Warning] Webhook push returned unexpected code " << event.status << std::endl;
|
std::cerr << "[Warning] Webhook push returned unexpected code " << event.status << std::endl;
|
||||||
_p.set_value(event);
|
_p.set_value(event);
|
||||||
|
|
Loading…
Reference in a new issue