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

Method guild_template_create

src/dpp/cluster/template.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32void cluster::guild_template_create(snowflake guild_id, const std::string &name, const std::string &description, command_completion_event_t callback) {
33 json params({{"name", name}, {"description", description}});
34 rest_request<dtemplate>(this, API_PATH "/guilds", std::to_string(guild_id), "templates", m_post, params.dump(-1, ' ', false, json::error_handler_t::replace), callback);
35}
36
37
38void cluster::guild_template_delete(snowflake guild_id, const std::string &code, command_completion_event_t callback) {

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
dumpMethod · 0.45

Tested by

no test coverage detected