| 24 | namespace dpp { |
| 25 | |
| 26 | void 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 | |
| 32 | void cluster::guild_template_create(snowflake guild_id, const std::string &name, const std::string &description, command_completion_event_t callback) { |