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

Method guild_create_from_template

src/dpp/cluster/template.cpp:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace dpp {
25
26void cluster::guild_create_from_template(const std::string &code, const std::string &name, command_completion_event_t callback) {
27 json params({{"name", name}});
28 rest_request<guild>(this, API_PATH "/guilds", "templates", code, m_post, params.dump(-1, ' ', false, json::error_handler_t::replace), callback);
29}
30
31
32void cluster::guild_template_create(snowflake guild_id, const std::string &name, const std::string &description, command_completion_event_t callback) {

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected