| 36 | } |
| 37 | |
| 38 | void cluster::global_command_create(const slashcommand &s, command_completion_event_t callback) { |
| 39 | rest_request<slashcommand>(this, API_PATH "/applications", std::to_string(s.application_id ? s.application_id : me.id), "commands", m_post, s.build_json(false), callback); |
| 40 | } |
| 41 | |
| 42 | void cluster::global_command_get(snowflake id, command_completion_event_t callback) { |
| 43 | rest_request<slashcommand>(this, API_PATH "/applications", std::to_string(me.id), "commands/" + std::to_string(id), m_get, "", callback); |