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

Method create_webhook

src/dpp/cluster/webhook.cpp:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace dpp {
25
26void cluster::create_webhook(const class webhook &wh, command_completion_event_t callback) {
27 rest_request<webhook>(this, API_PATH "/channels", std::to_string(wh.channel_id), "webhooks", m_post, wh.build_json(false), callback);
28}
29
30void cluster::delete_webhook(snowflake webhook_id, command_completion_event_t callback) {
31 rest_request<confirmation>(this, API_PATH "/webhooks", std::to_string(webhook_id), "", m_delete, "", callback);

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
build_jsonMethod · 0.80

Tested by

no test coverage detected