56 friend class discord_core_client;
59 bool alwaysRegister{};
67 unordered_map<jsonifier::string, jsonifier::string>
70 jsonifier::vector<application_command_option_data>
options{};
86 jsonifier::vector<create_global_application_command_data>
responseData{};
111 jsonifier::vector<application_command_option_data>
options{};
129 jsonifier::vector<create_guild_application_command_data>
responseData{};
149 jsonifier::vector<application_command_permission_data>
permissions{};
158 jsonifier::vector<guild_application_command_permissions_data>
permissions{};
172 static void initialize(discord_core_internal::https_client*);
238 const get_guild_application_command_permissions_data dataPackage);
249 const edit_guild_application_command_permissions_data dataPackage);
252 static discord_core_internal::https_client* httpsClient;
Data structure representing an application_command_data.
An interface class for the application_command_data related discord endpoints.
static co_routine< jsonifier::vector< application_command_data > > getGlobalApplicationCommandsAsync(get_global_application_commands_data dataPackage)
Get all of the global application_commands for this bot.
static co_routine< void > deleteGlobalApplicationCommandAsync(delete_global_application_command_data dataPackage)
Delete a global application_command_data for this bot.
static co_routine< jsonifier::vector< application_command_data > > bulkOverwriteGlobalApplicationCommandsAsync(bulk_overwrite_global_application_commands_data dataPackage)
Bulk overwrites a collection of global application_commands.
static co_routine< application_command_data > getGlobalApplicationCommandAsync(get_global_application_command_data dataPackage)
Get a single global application_command_data for this bot.
static co_routine< guild_application_command_permissions_data > editGuildApplicationCommandPermissionsAsync(const edit_guild_application_command_permissions_data dataPackage)
Edit guild application_command_data permissions for a server on this bot.
static co_routine< jsonifier::vector< application_command_data > > getGuildApplicationCommandsAsync(get_guild_application_commands_data dataPackage)
Get all of the guild application_commands for a single guild for this bot.
static co_routine< application_command_data > createGlobalApplicationCommandAsync(create_global_application_command_data dataPackage)
Create a global application_command_data for this bot.
static co_routine< jsonifier::vector< guild_application_command_permissions_data > > getGuildApplicationCommandPermissionsAsync(const get_guild_application_command_permissions_data dataPackage)
Gets guild application_command_data permissions for a single server on this bot.
static co_routine< application_command_data > editGlobalApplicationCommandAsync(edit_global_application_command_data dataPackage)
Edit a global application_command_data for this bot.
static co_routine< application_command_data > createGuildApplicationCommandAsync(create_guild_application_command_data dataPackage)
Create a guild application_command_data for a single server for this bot.
static co_routine< jsonifier::vector< application_command_data > > bulkOverwriteGuildApplicationCommandsAsync(bulk_overwrite_guild_application_commands_data dataPackage)
Bulkoverwrites some guild application_commands for this bot.
static co_routine< guild_application_command_permissions_data > getApplicationCommandPermissionsAsync(get_application_command_permissions_data dataPackage)
Get application_command_data permissions for a single command on this bot.
static co_routine< application_command_data > editGuildApplicationCommandAsync(edit_guild_application_command_data dataPackage)
Edit a single guild application_command_data for a single server for this bot.
static co_routine< void > deleteGuildApplicationCommandAsync(delete_guild_application_command_data dataPackage)
Delete a single guild application_command_data for a single server for this bot.
static co_routine< application_command_data > getGuildApplicationCommandAsync(get_guild_application_command_data dataPackage)
Get a single guild application_command_data for a single server for this bot.
The main namespace for the forward-facing interfaces.
For batch editing the permissions of a collection of guild application_commands.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
jsonifier::vector< guild_application_command_permissions_data > permissions
A vector of edit-guild-application-permissions responseData to edit.
snowflake guildId
The guild id of the guild for which you would like to batch edit guild application permissions.
For bulk-overwriting a collection of global application_commands.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
jsonifier::vector< create_global_application_command_data > responseData
A vector of the options for the application_commands.
For bulk-overwriting a collection of guild application_commands.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
jsonifier::vector< create_guild_application_command_data > responseData
A vector of the options for the application_commands.
snowflake guildId
The id of the guild which you would like to overwrite the commands of.
For creating an application command.
For creating a single global application_command_data.
For creating a single guild application_command_data.
For deleting a single global application_command_data.
jsonifier::string name
The name of the command to delete.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
For deleting a single guild application_command_data.
jsonifier::string name
A name of the command which you would like to delete.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
snowflake guildId
The id of the guild which you would like to delete the command from.
For editing a single global application_command_data.
bool dmPermission
Indicates whether the command is available in dms with the app.
jsonifier::string description
A description of the command.
unordered_map< jsonifier::string, jsonifier::string > descriptionLocalizations
Dictionary with keys in available locales localization dictionary for the description field.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
jsonifier::string name
A name for the new command.
jsonifier::string defaultMemberPermissions
Set of permissions represented as a bit set. only for globally - scoped commands.
unordered_map< jsonifier::string, jsonifier::string > nameLocalizations
Dictionary with keys in available locales localization dictionary for the name field.
jsonifier::vector< application_command_option_data > options
The options for the application_command_data.
For editing a single guild application_command_data.
jsonifier::string description
A description of the command.
unordered_map< jsonifier::string, jsonifier::string > nameLocalizations
Dictionary with keys in available locales.
bool dmPermission
Indicates whether the command is available in dms with the app.
jsonifier::string defaultMemberPermissions
Set of permissions represented as a bit set. only for globally - scoped commands.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
jsonifier::vector< application_command_option_data > options
The options for the application_command_data.
snowflake guildId
The id of the guild which you would like to add the new command to.
jsonifier::string name
A name for the new command.
unordered_map< jsonifier::string, jsonifier::string > descriptionLocalizations
Dictionary with keys in available locales.
For editing the permissions of a single guild application_command_data.
snowflake commandId
The command id which you would like to edit the permissions of.
jsonifier::vector< application_command_permission_data > permissions
A vector of application_command_data permissions.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
jsonifier::string commandName
The command name which you would like to edit the permissions of.
snowflake guildId
The guild id of the guild for which you would like to edit the command permissions.
For acquiring the permissions of a single guild application_command_data.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
snowflake guildId
The id of the guild from which you would like to acquire the command permissions.
jsonifier::string commandName
The name of the command which you would like to collect the permissions of.
For collecting a single global application_command_data.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
jsonifier::string commandId
The id of the command which you would like to collect.
For getting all of the global application commands.
bool withLocalizations
Do we collect the name-and-description localizations?
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
For acquiring a single guild application_command_data.
snowflake guildId
The id of the guild from which you would like to acquire the application_command_data from.
snowflake commandId
The command id which you would like to acquire.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
For acquiring the permissions of a collection of guild application_commands.
snowflake guildId
The id of the guild from which you would like to acquire the command permissions.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
For acquiring all of the guild application_commands of a single guild.
snowflake applicationId
The current application's snowflake (the bot's user_data snowflake).
bool withLocalizations
Do we collect the name-and-description localizations?
snowflake guildId
The id of the guild for which you would like to acquire the application_commands from.