D++ (DPP)
C++ Discord API Bot Library
dpp::activity_button Struct Reference

An activity button is a custom button shown in the rich presence. Can be to join a game or whatever. More...

+ Collaboration diagram for dpp::activity_button:

Public Member Functions

 activity_button ()=default
 

Public Attributes

std::string label
 The text shown on the button (1-32 characters). More...
 
std::string url
 The url opened when clicking the button (1-512 characters, can be empty). More...
 

Detailed Description

An activity button is a custom button shown in the rich presence. Can be to join a game or whatever.

Constructor & Destructor Documentation

◆ activity_button()

dpp::activity_button::activity_button ( )
default

Constructor

Member Data Documentation

◆ label

std::string dpp::activity_button::label

The text shown on the button (1-32 characters).

◆ url

std::string dpp::activity_button::url

The url opened when clicking the button (1-512 characters, can be empty).

Note
Bots cannot access the activity button URLs.
D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0