DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
DiscordCoreAPI::ApplicationCommands Class Reference

An interface class for the ApplicationCommand related Discord endpoints. More...

#include <ApplicationCommandEntities.hpp>

Static Public Member Functions

static CoRoutine< std::vector< ApplicationCommand > > bulkOverwriteGlobalApplicationCommandsAsync (BulkOverwriteGlobalApplicationCommandsData dataPackage)
 Bulk overwrites a collection of global ApplicationCommands.
 
static CoRoutine< std::vector< ApplicationCommand > > bulkOverwriteGuildApplicationCommandsAsync (BulkOverwriteGuildApplicationCommandsData dataPackage)
 Bulkoverwrites some Guild ApplicationCommands for this bot.
 
static CoRoutine< ApplicationCommandcreateGlobalApplicationCommandAsync (CreateGlobalApplicationCommandData dataPackage)
 Create a global ApplicationCommand for this bot.
 
static CoRoutine< ApplicationCommandcreateGuildApplicationCommandAsync (CreateGuildApplicationCommandData dataPackage)
 Create a Guild ApplicationCommand for a single server for this bot.
 
static CoRoutine< void > deleteGlobalApplicationCommandAsync (DeleteGlobalApplicationCommandData dataPackage)
 Delete a global ApplicationCommand for this bot.
 
static CoRoutine< void > deleteGuildApplicationCommandAsync (DeleteGuildApplicationCommandData dataPackage)
 Delete a single Guild ApplicationCommand for a single server for this bot.
 
static CoRoutine< ApplicationCommandeditGlobalApplicationCommandAsync (EditGlobalApplicationCommandData dataPackage)
 Edit a global ApplicationCommand for this bot.
 
static CoRoutine< ApplicationCommandeditGuildApplicationCommandAsync (EditGuildApplicationCommandData dataPackage)
 Edit a single Guild ApplicationCommand for a single server for this bot.
 
static CoRoutine< GuildApplicationCommandPermissionsDataeditGuildApplicationCommandPermissionsAsync (EditGuildApplicationCommandPermissionsData dataPackage)
 Edit Guild ApplicationCommand permissions for a server on this bot.
 
static CoRoutine< GuildApplicationCommandPermissionsDatagetApplicationCommandPermissionsAsync (GetApplicationCommandPermissionsData dataPackage)
 Get ApplicationCommand permissions for a single command on this bot.
 
static CoRoutine< ApplicationCommandgetGlobalApplicationCommandAsync (GetGlobalApplicationCommandData dataPackage)
 Get a single global ApplicationCommand for this bot.
 
static CoRoutine< std::vector< ApplicationCommand > > getGlobalApplicationCommandsAsync (GetGlobalApplicationCommandsData dataPackage)
 Get all of the global ApplicationCommands for this bot.
 
static CoRoutine< ApplicationCommandgetGuildApplicationCommandAsync (GetGuildApplicationCommandData dataPackage)
 Get a single Guild ApplicationCommand for a single server for this bot.
 
static CoRoutine< std::vector< GuildApplicationCommandPermissionsData > > getGuildApplicationCommandPermissionsAsync (GetGuildApplicationCommandPermissionsData dataPackage)
 Gets Guild ApplicationCommand permissions for a single server on this bot.
 
static CoRoutine< std::vector< ApplicationCommand > > getGuildApplicationCommandsAsync (GetGuildApplicationCommandsData dataPackage)
 Get all of the Guild ApplicationCommands for a single Guild for this bot.
 

Member Function Documentation

◆ bulkOverwriteGlobalApplicationCommandsAsync()

CoRoutine< std::vector< ApplicationCommand > > DiscordCoreAPI::ApplicationCommands::bulkOverwriteGlobalApplicationCommandsAsync ( BulkOverwriteGlobalApplicationCommandsData  dataPackage)
static
Parameters
dataPackageA BulkOverwriteGlobalApplicationCommandsData structure.
Returns
A CoRoutine containing a vector<ApplicationCommand>.

Definition at line 278 of file ApplicationCommandEntities.cpp.

◆ bulkOverwriteGuildApplicationCommandsAsync()

CoRoutine< std::vector< ApplicationCommand > > DiscordCoreAPI::ApplicationCommands::bulkOverwriteGuildApplicationCommandsAsync ( BulkOverwriteGuildApplicationCommandsData  dataPackage)
static
Parameters
dataPackageA BulkOverwriteGuildApplicationCommandsData structure.
Returns
A CoRoutine containing a vector<ApplicationCommand>.

Definition at line 385 of file ApplicationCommandEntities.cpp.

◆ createGlobalApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::createGlobalApplicationCommandAsync ( CreateGlobalApplicationCommandData  dataPackage)
static
Parameters
dataPackageA CreateGlobalApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 212 of file ApplicationCommandEntities.cpp.

◆ createGuildApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::createGuildApplicationCommandAsync ( CreateGuildApplicationCommandData  dataPackage)
static
Parameters
dataPackageA CreateGuildApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 317 of file ApplicationCommandEntities.cpp.

◆ deleteGlobalApplicationCommandAsync()

CoRoutine< void > DiscordCoreAPI::ApplicationCommands::deleteGlobalApplicationCommandAsync ( DeleteGlobalApplicationCommandData  dataPackage)
static
Parameters
dataPackageA DeleteGlobalApplicationCommandData structure.
Returns
A CoRoutine containing void.

Definition at line 257 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ deleteGuildApplicationCommandAsync()

CoRoutine< void > DiscordCoreAPI::ApplicationCommands::deleteGuildApplicationCommandAsync ( DeleteGuildApplicationCommandData  dataPackage)
static
Parameters
dataPackageA DeleteGuildApplicationCommandData structure.
Returns
A CoRoutine containing void.

Definition at line 364 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ editGlobalApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::editGlobalApplicationCommandAsync ( EditGlobalApplicationCommandData  dataPackage)
static
Parameters
dataPackageAn EditGlobalApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 233 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ editGuildApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::editGuildApplicationCommandAsync ( EditGuildApplicationCommandData  dataPackage)
static
Parameters
dataPackageAn EditGuildApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 340 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ editGuildApplicationCommandPermissionsAsync()

CoRoutine< GuildApplicationCommandPermissionsData > DiscordCoreAPI::ApplicationCommands::editGuildApplicationCommandPermissionsAsync ( EditGuildApplicationCommandPermissionsData  dataPackage)
static
Parameters
dataPackageAn EditGuildApplicationCommandPermissionsData structure.
Returns
A CoRoutine containing a GuildApplicationCommandPermissionsData.

Definition at line 446 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ getApplicationCommandPermissionsAsync()

CoRoutine< GuildApplicationCommandPermissionsData > DiscordCoreAPI::ApplicationCommands::getApplicationCommandPermissionsAsync ( GetApplicationCommandPermissionsData  dataPackage)
static
Parameters
dataPackageA GetApplicationCommandPermissionsData structure.
Returns
A CoRoutine containing a GuildApplicationCommandPermissionsData.

Definition at line 423 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ getGlobalApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::getGlobalApplicationCommandAsync ( GetGlobalApplicationCommandData  dataPackage)
static
Parameters
dataPackageA GetGlobalApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 224 of file ApplicationCommandEntities.cpp.

◆ getGlobalApplicationCommandsAsync()

CoRoutine< std::vector< ApplicationCommand > > DiscordCoreAPI::ApplicationCommands::getGlobalApplicationCommandsAsync ( GetGlobalApplicationCommandsData  dataPackage)
static
Returns
A CoRoutine containing a vector<ApplicationCommand>.

Definition at line 200 of file ApplicationCommandEntities.cpp.

Here is the caller graph for this function:

◆ getGuildApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::getGuildApplicationCommandAsync ( GetGuildApplicationCommandData  dataPackage)
static
Parameters
dataPackageA GetGuildApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 330 of file ApplicationCommandEntities.cpp.

◆ getGuildApplicationCommandPermissionsAsync()

CoRoutine< std::vector< GuildApplicationCommandPermissionsData > > DiscordCoreAPI::ApplicationCommands::getGuildApplicationCommandPermissionsAsync ( GetGuildApplicationCommandPermissionsData  dataPackage)
static
Parameters
dataPackageA GetGuildApplicationCommandPermissionsData structure.
Returns
A CoRoutine containing a vector<GuildApplicationCommandPermissionsData>.

Definition at line 413 of file ApplicationCommandEntities.cpp.

◆ getGuildApplicationCommandsAsync()

CoRoutine< std::vector< ApplicationCommand > > DiscordCoreAPI::ApplicationCommands::getGuildApplicationCommandsAsync ( GetGuildApplicationCommandsData  dataPackage)
static
Parameters
dataPackageA GetGuildApplicationCommandsData structure.
Returns
A CoRoutine containing a vector<ApplicationCommand>.

Definition at line 305 of file ApplicationCommandEntities.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: