| 30 | |
| 31 | |
| 32 | void 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 | |
| 38 | void cluster::guild_template_delete(snowflake guild_id, const std::string &code, command_completion_event_t callback) { |