mirror of
https://github.com/Syping/dtranslatebot.git
synced 2024-12-22 11:55:30 +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::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);
|
||||
|
|
Loading…
Reference in a new issue