| 41 | |
| 42 | |
| 43 | void 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 | |
| 49 | void cluster::guild_templates_get(snowflake guild_id, command_completion_event_t callback) { |