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

Member Function Documentation

◆ bulkOverwriteGlobalApplicationCommandsAsync()

CoRoutine< std::vector< ApplicationCommand > > DiscordCoreAPI::ApplicationCommands::bulkOverwriteGlobalApplicationCommandsAsync ( BulkOverwriteGlobalApplicationCommandsData  dataPackage)
static

Bulk overwrites a collection of global ApplicationCommands.

Parameters
dataPackageA BulkOverwriteGlobalApplicationCommandsData structure.
Returns
A CoRoutine containing a vector<ApplicationCommand>.

Definition at line 262 of file ApplicationCommandEntities.cpp.

◆ bulkOverwriteGuildApplicationCommandsAsync()

CoRoutine< std::vector< ApplicationCommand > > DiscordCoreAPI::ApplicationCommands::bulkOverwriteGuildApplicationCommandsAsync ( BulkOverwriteGuildApplicationCommandsData  dataPackage)
static

Bulk overwrites some Guild ApplicationCommands for this bot.

Parameters
dataPackageA BulkOverwriteGuildApplicationCommandsData structure.
Returns
A CoRoutine containing a vector<ApplicationCommand>.

Definition at line 365 of file ApplicationCommandEntities.cpp.

◆ createGlobalApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::createGlobalApplicationCommandAsync ( CreateGlobalApplicationCommandData  dataPackage)
static

Create a global ApplicationCommand for this bot.

Parameters
dataPackageA CreateGlobalApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 200 of file ApplicationCommandEntities.cpp.

◆ createGuildApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::createGuildApplicationCommandAsync ( CreateGuildApplicationCommandData  dataPackage)
static

Create a Guild ApplicationCommand for a single server for this bot.

Parameters
dataPackageA CreateGuildApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 301 of file ApplicationCommandEntities.cpp.

◆ deleteGlobalApplicationCommandAsync()

CoRoutine< void > DiscordCoreAPI::ApplicationCommands::deleteGlobalApplicationCommandAsync ( DeleteGlobalApplicationCommandData  dataPackage)
static

Delete a global ApplicationCommand for this bot.

Parameters
dataPackageA DeleteGlobalApplicationCommandData structure.
Returns
A CoRoutine containing void.

Definition at line 241 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ deleteGuildApplicationCommandAsync()

CoRoutine< void > DiscordCoreAPI::ApplicationCommands::deleteGuildApplicationCommandAsync ( DeleteGuildApplicationCommandData  dataPackage)
static

Delete a single Guild ApplicationCommand for a single server for this bot.

Parameters
dataPackageA DeleteGuildApplicationCommandData structure.
Returns
A CoRoutine containing void.

Definition at line 344 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ editGlobalApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::editGlobalApplicationCommandAsync ( EditGlobalApplicationCommandData  dataPackage)
static

Edit a global ApplicationCommand for this bot.

Parameters
dataPackageAn EditGlobalApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 219 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ editGuildApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::editGuildApplicationCommandAsync ( EditGuildApplicationCommandData  dataPackage)
static

Edit a single Guild ApplicationCommand for a single server for this bot.

Parameters
dataPackageAn EditGuildApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 322 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ editGuildApplicationCommandPermissionsAsync()

CoRoutine< GuildApplicationCommandPermissionsData > DiscordCoreAPI::ApplicationCommands::editGuildApplicationCommandPermissionsAsync ( EditGuildApplicationCommandPermissionsData  dataPackage)
static

Edit Guild ApplicationCommand permissions for a server on this bot.

Parameters
dataPackageAn EditGuildApplicationCommandPermissionsData structure.
Returns
A CoRoutine containing a GuildApplicationCommandPermissionsData.

Definition at line 424 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ getApplicationCommandPermissionsAsync()

CoRoutine< GuildApplicationCommandPermissionsData > DiscordCoreAPI::ApplicationCommands::getApplicationCommandPermissionsAsync ( GetApplicationCommandPermissionsData  dataPackage)
static

Get ApplicationCommand permissions for a single command on this bot.

Parameters
dataPackageA GetApplicationCommandPermissionsData structure.
Returns
A CoRoutine containing a GuildApplicationCommandPermissionsData.

Definition at line 402 of file ApplicationCommandEntities.cpp.

Here is the call graph for this function:

◆ getGlobalApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::getGlobalApplicationCommandAsync ( GetGlobalApplicationCommandData  dataPackage)
static

Get a single global ApplicationCommand for this bot.

Parameters
dataPackageA GetGlobalApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 210 of file ApplicationCommandEntities.cpp.

◆ getGlobalApplicationCommandsAsync()

CoRoutine< std::vector< ApplicationCommand > > DiscordCoreAPI::ApplicationCommands::getGlobalApplicationCommandsAsync ( GetGlobalApplicationCommandsData  dataPackage)
static

Get all of the global ApplicationCommands for this bot.

Returns
A CoRoutine containing a vector<ApplicationCommand>.

Definition at line 188 of file ApplicationCommandEntities.cpp.

Here is the caller graph for this function:

◆ getGuildApplicationCommandAsync()

CoRoutine< ApplicationCommand > DiscordCoreAPI::ApplicationCommands::getGuildApplicationCommandAsync ( GetGuildApplicationCommandData  dataPackage)
static

Get a single Guild ApplicationCommand for a single server for this bot.

Parameters
dataPackageA GetGuildApplicationCommandData structure.
Returns
A CoRoutine containing an ApplicationCommand.

Definition at line 312 of file ApplicationCommandEntities.cpp.

◆ getGuildApplicationCommandPermissionsAsync()

CoRoutine< std::vector< GuildApplicationCommandPermissionsData > > DiscordCoreAPI::ApplicationCommands::getGuildApplicationCommandPermissionsAsync ( GetGuildApplicationCommandPermissionsData  dataPackage)
static

Gets Guild ApplicationCommand permissions for a single server on this bot.

Parameters
dataPackageA GetGuildApplicationCommandPermissionsData structure.
Returns
A CoRoutine containing a vector<GuildApplicationCommandPermissionsData>.

Definition at line 392 of file ApplicationCommandEntities.cpp.

◆ getGuildApplicationCommandsAsync()

CoRoutine< std::vector< ApplicationCommand > > DiscordCoreAPI::ApplicationCommands::getGuildApplicationCommandsAsync ( GetGuildApplicationCommandsData  dataPackage)
static

Get all of the Guild ApplicationCommands for a single Guild for this bot.

Parameters
dataPackageA GetGuildApplicationCommandsData structure.
Returns
A CoRoutine containing a vector<ApplicationCommand>.

Definition at line 289 of file ApplicationCommandEntities.cpp.

Here is the caller graph for this function:

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