| 110 | } |
| 111 | |
| 112 | void cluster::get_webhook_message(const class webhook &wh, snowflake message_id, snowflake thread_id, command_completion_event_t callback) { |
| 113 | std::string parameters = utility::make_url_parameters({ |
| 114 | {"thread_id", thread_id}, |
| 115 | }); |
| 116 | rest_request<message>(this, API_PATH "/webhooks", std::to_string(wh.id), utility::url_encode(!wh.token.empty() ? wh.token: token) + "/messages/" + std::to_string(message_id) + parameters, m_get, "", callback); |
| 117 | } |
| 118 | |
| 119 | void cluster::get_webhook_with_token(snowflake webhook_id, const std::string &token, command_completion_event_t callback) { |
| 120 | rest_request<webhook>(this, API_PATH "/webhooks", std::to_string(webhook_id), utility::url_encode(token), m_get, "", callback); |
nothing calls this directly
no test coverage detected