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

An activity button is a custom button shown in the rich presence. More...

#include "presence.h"

Collaboration diagram for dpp::activity_button:

Public Member Functions

 activity_button ()=default
 Constructor. More...
 

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.

The documentation for this struct was generated from the following file: