dpp::application
dpp::managed
dpp::json_interface< application >
application.h
struct friend struct json_interface< application > json_interface< application > dpp::application::json_interface< application > json_interface< application >
uint64_t uint64_t dpp::application::approximate_guild_count approximate_guild_count dpp::application::approximate_guild_count

Optional: Approximate count of guilds the app has been added to.

uint64_t uint64_t dpp::application::approximate_user_install_count approximate_user_install_count dpp::application::approximate_user_install_count

Optional: Approximate count of users that have installed the app.

user user dpp::application::bot bot dpp::application::bot

Optional: Partial user object for the bot user associated with the app.

bool bool dpp::application::bot_public bot_public dpp::application::bot_public

When false, only app owner add the bot to guilds.

bool bool dpp::application::bot_require_code_grant bot_require_code_grant dpp::application::bot_require_code_grant

When true, the app's bot will only join upon completion of the full oauth2 code grant flow.

utility::iconhash utility::iconhash dpp::application::cover_image cover_image dpp::application::cover_image

Optional: the application's default rich presence invite cover image hash.

uint8_t uint8_t dpp::application::creator_monetization_state creator_monetization_state dpp::application::creator_monetization_state

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

std::string std::string dpp::application::custom_install_url custom_install_url dpp::application::custom_install_url

The application's default custom authorization link, if enabled.

std::string std::string dpp::application::description description dpp::application::description

The description of the app.

uint8_t uint8_t dpp::application::discoverability_state discoverability_state dpp::application::discoverability_state

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

uint32_t uint32_t dpp::application::discovery_eligibility_flags discovery_eligibility_flags dpp::application::discovery_eligibility_flags

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

application_event_webhook_status application_event_webhook_status dpp::application::event_webhooks_status event_webhooks_status dpp::application::event_webhooks_status

If webhook events are enabled for the app.

std::vector< std::string > std::vector<std::string> dpp::application::event_webhooks_types event_webhooks_types dpp::application::event_webhooks_types

List of Webhook event types the app subscribes to.

std::string std::string dpp::application::event_webhooks_url event_webhooks_url dpp::application::event_webhooks_url

Event webhooks URL for the app to receive webhook events.

uint8_t uint8_t dpp::application::explicit_content_filter explicit_content_filter dpp::application::explicit_content_filter

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

uint32_t uint32_t dpp::application::flags flags dpp::application::flags

Optional: the application's public flags.

snowflake snowflake dpp::application::guild_id guild_id dpp::application::guild_id

Optional: if this application is a game sold on Discord, this field will be the guild to which it has been linked.

guild guild dpp::application::guild_obj guild_obj dpp::application::guild_obj

Partial object of the associated guild.

bool bool dpp::application::hook hook dpp::application::hook

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

utility::iconhash utility::iconhash dpp::application::icon icon dpp::application::icon

The icon hash of the app (may be empty).

snowflake snowflake dpp::managed::id id dpp::managed::id = {}

Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relevant to us as useful metadata.

application_install_params application_install_params dpp::application::install_params install_params dpp::application::install_params

Settings for the application's default in-app authorization link, if enabled.

bool bool dpp::application::integration_public integration_public dpp::application::integration_public

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

bool bool dpp::application::integration_require_code_grant integration_require_code_grant dpp::application::integration_require_code_grant

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

std::map< application_integration_types, integration_configuration > std::map<application_integration_types, integration_configuration> dpp::application::integration_types_config integration_types_config dpp::application::integration_types_config

Default scopes and permissions for each supported installation context.

std::string std::string dpp::application::interactions_endpoint_url interactions_endpoint_url dpp::application::interactions_endpoint_url

Optional: Interactions endpoint URL for the app.

std::vector< std::string > std::vector<std::string> dpp::application::interactions_event_types interactions_event_types dpp::application::interactions_event_types

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

uint8_t uint8_t dpp::application::interactions_version interactions_version dpp::application::interactions_version

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

bool bool dpp::application::is_monetized is_monetized dpp::application::is_monetized

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

uint32_t uint32_t dpp::application::monetization_eligibility_flags monetization_eligibility_flags dpp::application::monetization_eligibility_flags

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

uint8_t uint8_t dpp::application::monetization_state monetization_state dpp::application::monetization_state

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

std::string std::string dpp::application::name name dpp::application::name

The name of the app.

user user dpp::application::owner owner dpp::application::owner

Optional: partial user object containing info on the owner of the application.

snowflake snowflake dpp::application::primary_sku_id primary_sku_id dpp::application::primary_sku_id

Optional: if this application is a game sold on Discord, this field will be the id of the "Game SKU" that is created, if exists.

std::string std::string dpp::application::privacy_policy_url privacy_policy_url dpp::application::privacy_policy_url

Optional: the url of the app's privacy policy.

std::vector< std::string > std::vector<std::string> dpp::application::redirect_uris redirect_uris dpp::application::redirect_uris

Optional: Array of redirect URIs for the app.

std::string std::string dpp::application::role_connections_verification_url role_connections_verification_url dpp::application::role_connections_verification_url

The application's role connection verification entry point which, when configured, will render the app as a verification method in the guild role verification configuration.

uint8_t uint8_t dpp::application::rpc_application_state rpc_application_state dpp::application::rpc_application_state

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

std::vector< std::string > std::vector<std::string> dpp::application::rpc_origins rpc_origins dpp::application::rpc_origins

Optional: an array of rpc origin urls, if rpc is enabled.

std::string std::string dpp::application::slug slug dpp::application::slug

Optional: if this application is a game sold on Discord, this field will be the URL slug that links to the store page.

uint8_t uint8_t dpp::application::store_application_state store_application_state dpp::application::store_application_state

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

std::string std::string dpp::application::summary summary dpp::application::summary

If this application is a game sold on Discord, this field will be the summary field for the store page of its primary SKU.

Deprecated

Will be removed in v11

std::vector< std::string > std::vector<std::string> dpp::application::tags tags dpp::application::tags

Up to 5 tags describing the content and functionality of the application.

app_team app_team dpp::application::team team dpp::application::team

If the application belongs to a team, this will be a list of the members of that team (may be empty).

std::string std::string dpp::application::terms_of_service_url terms_of_service_url dpp::application::terms_of_service_url

Optional: the url of the app's terms of service.

uint8_t uint8_t dpp::application::verification_state verification_state dpp::application::verification_state

This variable is not documented by discord, we have no idea what it means and how it works. Use at your own risk.

std::string std::string dpp::application::verify_key verify_key dpp::application::verify_key

The hex encoded key for verification in interactions and the GameSDK's GetTicket.

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

Read class values from json object j

A json object to read from

A reference to self

dpp::application::application
()
application
dpp::application::application

Constructor

dpp::application::~application
()
~application
dpp::application::~application

Destructor

std::string std::string dpp::json_interface< application >::build_json (bool with_id=false) const build_json dpp::json_interface< application >::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

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

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

std::string std::string dpp::application::get_cover_image_url (uint16_t size=0, const image_type format=i_png) const get_cover_image_url dpp::application::get_cover_image_url uint16_t size 0 const image_type format i_png

Get the application's cover image url if they have one, otherwise returns an empty string.

size

The size of the cover image in pixels. It can be any power of two between 16 and 4096, otherwise the default sized cover image is returned.

format

The format to use for the avatar. It can be one of `i_webp`, `i_jpg` or `i_png`.

std::string cover image url or an empty string, if required attributes are missing or an invalid format was passed

double double dpp::managed::get_creation_time () const noexcept get_creation_time dpp::managed::get_creation_time

Get the creation time of this object according to Discord.

double creation time inferred from the snowflake ID. The minimum possible value is the first second of 2015.

std::string std::string dpp::application::get_icon_url (uint16_t size=0, const image_type format=i_png) const get_icon_url dpp::application::get_icon_url uint16_t size 0 const image_type format i_png

Get the application's icon url if they have one, otherwise returns an empty string.

size

The size of the icon in pixels. It can be any power of two between 16 and 4096, otherwise the default sized icon is returned.

format

The format to use for the avatar. It can be one of `i_webp`, `i_jpg` or `i_png`.

std::string icon url or an empty string, if required attributes are missing or an invalid format was passed

bool bool dpp::managed::operator!= (const managed &other) const noexcept operator!= dpp::managed::operator!= const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are not the same id

false objects are the same id

bool bool dpp::managed::operator== (const managed &other) const noexcept operator== dpp::managed::operator== const managed & other

Comparison operator for comparing two managed objects by id.

other

Other object to compare against

true objects are the same id

false objects are not the same id

auto auto dpp::json_interface< application >::to_json (bool with_id=false) const to_json dpp::json_interface< application >::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

The application class represents details of a bot application.

dpp::application
dpp::json_interface< T >
dpp::json_interface< application >
< application >
dpp::managed
K
T
application_event_webhook_status
application_integration_types
bool
default_message_notification_t
dpp::app_team
icon
id
owner_user_id
members
name
dpp::application
custom_install_url
description
event_webhooks_url
interactions_endpoint_url
name
privacy_policy_url
role_connections_verification_url
slug
summary
terms_of_service_url
...
cover_image
icon
event_webhooks_types
interactions_event_types
redirect_uris
rpc_origins
tags
bot_public
bot_require_code_grant
hook
integration_public
integration_require_code_grant
is_monetized
bot
owner
team
guild_id
primary_sku_id
guild_obj
discovery_eligibility_flags
flags
monetization_eligibility_flags
approximate_guild_count
approximate_user_install_count
event_webhooks_status
install_params
integration_types_config
creator_monetization_state
discoverability_state
explicit_content_filter
interactions_version
monetization_state
rpc_application_state
store_application_state
verification_state
dpp::application_install_params
permissions
scopes
dpp::guild
description
name
vanity_url_code
channels
emojis
roles
threads
voice_members
members
welcome_screen
banner
discovery_splash
icon
splash
afk_channel_id
application_id
owner_id
public_updates_channel_id
rules_channel_id
safety_alerts_channel_id
system_channel_id
widget_channel_id
flags
max_members
max_presences
member_count
flags_extra
premium_subscription_count
shard_id
afk_timeout
max_video_channel_users
default_message_notifications
premium_tier
verification_level
explicit_content_filter
mfa_level
nsfw_level
dpp::integration_configuration
oauth2_install_params
dpp::json_interface< T >
dpp::json_interface< application >
< application >
dpp::json_interface< guild >
< guild >
dpp::json_interface< user >
< user >
dpp::json_interface< voicestate >
< voicestate >
dpp::json_interface< welcome_channel >
< welcome_channel >
dpp::json_interface< welcome_screen >
< welcome_screen >
dpp::managed
id
dpp::permission
value
dpp::snowflake
value
dpp::team_member
membership_state
permissions
team_id
member_user
member_role
dpp::user
global_name
username
avatar
avatar_decoration
primary_guild
flags
discriminator
refcount
dpp::utility::icon
hash_or_data
dpp::utility::iconhash
first
second
dpp::utility::primaryguild
id
enabled
tag
badge
dpp::voicestate
shard_id
channel_id
guild_id
user_id
session_id
flags
request_to_speak
dpp::welcome_channel
description
emoji_name
channel_id
emoji_id
dpp::welcome_screen
description
welcome_channels
guild_afk_timeout_t
guild_explicit_content_t
guild_nsfw_level_t
guild_premium_tier_t
int32_t
mfa_level_t
std::basic_string< Char >
std::map< K, T >
keys
elements
std::map< application_integration_types, dpp::integration_configuration >
keys
elements
< application_integration_types, dpp::integration_configuration >
std::map< dpp::snowflake, dpp::voicestate >
keys
elements
< dpp::snowflake, dpp::voicestate >
std::string
std::unordered_map< K, T >
keys
elements
std::unordered_map< snowflake, guild_member >
< snowflake, guild_member >
variant< std::monostate, dpp::utility::iconhash, dpp::utility::image_data >
std::vector< T >
elements
std::vector< dpp::snowflake >
elements
< dpp::snowflake >
std::vector< dpp::team_member >
elements
< dpp::team_member >
std::vector< dpp::welcome_channel >
elements
< dpp::welcome_channel >
std::vector< std::string >
elements
< std::string >
team_member_role_t
team_member_status
time_t
uint16_t
uint32_t
uint64_t
uint8_t
verification_level_t
- dpp::application
  application
- dpp::application
  approximate_guild_count
- dpp::application
  approximate_user_install_count
- dpp::application
  bot
- dpp::application
  bot_public
- dpp::application
  bot_require_code_grant
- dpp::application
  build_json
- dpp::application
  cover_image
- dpp::application
  creator_monetization_state
- dpp::application
  custom_install_url
- dpp::application
  description
- dpp::application
  discoverability_state
- dpp::application
  discovery_eligibility_flags
- dpp::application
  event_webhooks_status
- dpp::application
  event_webhooks_types
- dpp::application
  event_webhooks_url
- dpp::application
  explicit_content_filter
- dpp::application
  fill_from_json
- dpp::application
  fill_from_json_impl
- dpp::application
  flags
- dpp::application
  get_cover_image_url
- dpp::application
  get_creation_time
- dpp::application
  get_icon_url
- dpp::application
  guild_id
- dpp::application
  guild_obj
- dpp::application
  hook
- dpp::application
  icon
- dpp::application
  id
- dpp::application
  install_params
- dpp::application
  integration_public
- dpp::application
  integration_require_code_grant
- dpp::application
  integration_types_config
- dpp::application
  interactions_endpoint_url
- dpp::application
  interactions_event_types
- dpp::application
  interactions_version
- dpp::application
  is_monetized
- dpp::application
  json_interface< application >
- dpp::application
  managed
- dpp::application
  managed
- dpp::application
  managed
- dpp::application
  managed
- dpp::application
  monetization_eligibility_flags
- dpp::application
  monetization_state
- dpp::application
  name
- dpp::application
  operator!=
- dpp::application
  operator=
- dpp::application
  operator=
- dpp::application
  operator==
- dpp::application
  owner
- dpp::application
  primary_sku_id
- dpp::application
  privacy_policy_url
- dpp::application
  redirect_uris
- dpp::application
  role_connections_verification_url
- dpp::application
  rpc_application_state
- dpp::application
  rpc_origins
- dpp::application
  slug
- dpp::application
  store_application_state
- dpp::application
  summary
- dpp::application
  tags
- dpp::application
  team
- dpp::application
  terms_of_service_url
- dpp::application
  to_json
- dpp::application
  verification_state
- dpp::application
  verify_key
- dpp::application
  ~application
- dpp::application
  ~managed