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

Method global_command_create

src/dpp/cluster/appcommand.cpp:38–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void cluster::global_command_create(const slashcommand &s, command_completion_event_t callback) {
39 rest_request<slashcommand>(this, API_PATH "/applications", std::to_string(s.application_id ? s.application_id : me.id), "commands", m_post, s.build_json(false), callback);
40}
41
42void cluster::global_command_get(snowflake id, command_completion_event_t callback) {
43 rest_request<slashcommand>(this, API_PATH "/applications", std::to_string(me.id), "commands/" + std::to_string(id), m_get, "", callback);

Callers 15

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 2

to_stringFunction · 0.85
build_jsonMethod · 0.80

Tested by

no test coverage detected