MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / guild_command_get_permissions

Method guild_command_get_permissions

src/dpp/cluster/appcommand.cpp:126–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void cluster::guild_command_get_permissions(snowflake id, snowflake guild_id, command_completion_event_t callback) {
127 rest_request<guild_command_permissions>(this, API_PATH "/applications", std::to_string(me.id), "guilds/" + std::to_string(guild_id) + "/commands/" + std::to_string(id) + "/permissions", m_get, "", callback);
128}
129
130void 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);

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected