dpp::guild_command_permissions
dpp::json_interface< guild_command_permissions >
appcommand.h
struct friend struct json_interface< guild_command_permissions > json_interface< guild_command_permissions > dpp::guild_command_permissions::json_interface< guild_command_permissions > json_interface< guild_command_permissions >
snowflake snowflake dpp::guild_command_permissions::application_id application_id dpp::guild_command_permissions::application_id

The id of the application the command belongs to.

snowflake snowflake dpp::guild_command_permissions::guild_id guild_id dpp::guild_command_permissions::guild_id

The id of the guild.

snowflake snowflake dpp::guild_command_permissions::id id dpp::guild_command_permissions::id

The id of the command.

std::vector< command_permission > std::vector<command_permission> dpp::guild_command_permissions::permissions permissions dpp::guild_command_permissions::permissions

The permissions for the command, in the guild.

guild_command_permissions & guild_command_permissions & dpp::guild_command_permissions::fill_from_json_impl (nlohmann::json *j) fill_from_json_impl dpp::guild_command_permissions::fill_from_json_impl nlohmann::json * j

Fill object properties from JSON.

j

JSON to fill from

guild_command_permissions& Reference to self

dpp::guild_command_permissions::guild_command_permissions
()
guild_command_permissions
dpp::guild_command_permissions::guild_command_permissions

Construct a new guild command permissions object.

virtual dpp::guild_command_permissions::~guild_command_permissions
()=default
~guild_command_permissions
dpp::guild_command_permissions::~guild_command_permissions
std::string std::string dpp::json_interface< guild_command_permissions >::build_json (bool with_id=false) const build_json dpp::json_interface< guild_command_permissions >::build_json bool with_id false

Convert object to json string.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

std::string Json built from the structure

guild_command_permissions & guild_command_permissions & dpp::json_interface< guild_command_permissions >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< guild_command_permissions >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

auto auto dpp::json_interface< guild_command_permissions >::to_json (bool with_id=false) const to_json dpp::json_interface< guild_command_permissions >::to_json bool with_id false

Convert object to nlohmann::json.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

json Json built from the structure

Returned when fetching the permissions for a command in a guild.

dpp::guild_command_permissions
dpp::json_interface< T >
dpp::json_interface< guild_command_permissions >
< guild_command_permissions >
T
bool
command_permission_type
dpp::command_permission
id
type
permission
dpp::guild_command_permissions
application_id
guild_id
id
permissions
dpp::json_interface< T >
dpp::json_interface< command_permission >
< command_permission >
dpp::json_interface< guild_command_permissions >
< guild_command_permissions >
dpp::snowflake
value
std::vector< T >
elements
std::vector< dpp::command_permission >
elements
< dpp::command_permission >
uint64_t
- dpp::guild_command_permissions
  application_id
- dpp::guild_command_permissions
  build_json
- dpp::guild_command_permissions
  fill_from_json
- dpp::guild_command_permissions
  fill_from_json_impl
- dpp::guild_command_permissions
  guild_command_permissions
- dpp::guild_command_permissions
  guild_id
- dpp::guild_command_permissions
  id
- dpp::guild_command_permissions
  json_interface< guild_command_permissions >
- dpp::guild_command_permissions
  permissions
- dpp::guild_command_permissions
  to_json
- dpp::guild_command_permissions
  ~guild_command_permissions