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

Method guild_template_modify

src/dpp/cluster/template.cpp:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43void cluster::guild_template_modify(snowflake guild_id, const std::string &code, const std::string &name, const std::string &description, command_completion_event_t callback) {
44 json params({{"name", name}, {"description", description}});
45 rest_request<dtemplate>(this, API_PATH "/guilds", std::to_string(guild_id), "templates/" + code, m_patch, params.dump(-1, ' ', false, json::error_handler_t::replace), callback);
46}
47
48
49void cluster::guild_templates_get(snowflake guild_id, 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