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

Data structure representing an ApplicationCommand. More...

#include <FoundationEntities.hpp>

Inheritance diagram for DiscordCoreAPI::ApplicationCommandData:
[legend]

Public Data Members

Snowflake applicationId {}
 The current application id.
 
Permissions defaultMemberPermissions {}
 Set of permissions represented as a bit set all.
 
std::string description {}
 A description of the current ApplicationCommand.
 
std::unordered_map< std::string, std::string > descriptionLocalizations {}
 Dictionary with keys in available locales Localization dictionary for name field.
 
bool dmPermission { false }
 Indicates whether the command is available in DMs with the app, only for globally - scoped commands.
 
Snowflake guildId {}
 (Where applicable) a Guild id for which guild to assign this ApplicationCommand to.
 
std::string name {}
 Name of the current ApplicationCommand.
 
std::unordered_map< std::string, std::string > nameLocalizations {}
 Dictionary with keys in available locales Localization dictionary for name field.
 
std::vector< ApplicationCommandOptionDataoptions {}
 A vector of possible options for the current ApplicationCommand.
 
ApplicationCommandType type {}
 The type of ApplicationCommand.
 
std::string version {}
 An autoincremented version.
 
- Public Data Members inherited from DiscordCoreAPI::DiscordEntity
Snowflake id {}
 

Additional Inherited Members

- Public Member Functions inherited from DiscordCoreAPI::DiscordEntity
std::string getCreatedAtTimestamp (TimeFormat timeFormat)
 Converts the snowflake-id into a time and date stamp.
 

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