MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / get_webhook_message

Method get_webhook_message

src/dpp/cluster/webhook.cpp:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void 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
119void 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);

Callers

nothing calls this directly

Calls 4

make_url_parametersFunction · 0.85
to_stringFunction · 0.85
url_encodeFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected