| 128 | } |
| 129 | |
| 130 | void cluster::guild_command_edit(const slashcommand &s, snowflake guild_id, command_completion_event_t callback) { |
| 131 | rest_request<confirmation>(this, API_PATH "/applications", std::to_string(s.application_id ? s.application_id : me.id), "guilds/" + std::to_string(guild_id) + "/commands/" + std::to_string(s.id), m_patch, s.build_json(true), callback); |
| 132 | } |
| 133 | |
| 134 | void cluster::guild_commands_get(snowflake guild_id, command_completion_event_t callback) { |
| 135 | rest_request_list<slashcommand>(this, API_PATH "/applications", std::to_string(me.id), "/guilds/" + std::to_string(guild_id) + "/commands", m_get, "", callback); |
nothing calls this directly
no test coverage detected