Rise
The Vieneo Province
Loading...
Searching...
No Matches
discordpp::ActivityAssets Class Reference

Struct which controls what your rich presence looks like in the Discord client. If you don't specify any values, the icon and name of your application will be used as defaults. More...

#include <discordpp.h>

Collaboration diagram for discordpp::ActivityAssets:
[legend]

Public Member Functions

 ActivityAssets (ActivityAssets &&other) noexcept
 Move constructor for ActivityAssets.
ActivityAssets & operator= (ActivityAssets &&other) noexcept
 Move assignment operator for ActivityAssets.
 operator bool () const
 Returns true if the instance contains a valid object.
 ActivityAssets (const ActivityAssets &arg0)
 Copy constructor for ActivityAssets.
ActivityAssets & operator= (const ActivityAssets &arg0)
 Copy assignment operator for ActivityAssets.
 ActivityAssets ()
std::optional< std::string > LargeImage () const
 The primary image identifier or URL, rendered as a large square icon on a user's rich presence.
void SetLargeImage (std::optional< std::string > LargeImage)
 Setter for ActivityAssets::LargeImage.
std::optional< std::string > LargeText () const
 A tooltip string that is shown when the user hovers over the large image.
void SetLargeText (std::optional< std::string > LargeText)
 Setter for ActivityAssets::LargeText.
std::optional< std::string > LargeUrl () const
 A URL that opens when the user clicks/taps the large image.
void SetLargeUrl (std::optional< std::string > LargeUrl)
 Setter for ActivityAssets::LargeUrl.
std::optional< std::string > SmallImage () const
 The secondary image, rendered as a small circle over the largeImage.
void SetSmallImage (std::optional< std::string > SmallImage)
 Setter for ActivityAssets::SmallImage.
std::optional< std::string > SmallText () const
 A tooltip string that is shown when the user hovers over the small image.
void SetSmallText (std::optional< std::string > SmallText)
 Setter for ActivityAssets::SmallText.
std::optional< std::string > SmallUrl () const
 A URL that opens when the user clicks/taps the small image.
void SetSmallUrl (std::optional< std::string > SmallUrl)
 Setter for ActivityAssets::SmallUrl.
std::optional< std::string > InviteCoverImage () const
 The invite cover image identifier or URL, rendered as a banner image on activity invites.
void SetInviteCoverImage (std::optional< std::string > InviteCoverImage)
 Setter for ActivityAssets::InviteCoverImage.

Static Public Attributes

static const ActivityAssets nullobj
 Uninitialized instance of ActivityAssets.

Detailed Description

Struct which controls what your rich presence looks like in the Discord client. If you don't specify any values, the icon and name of your application will be used as defaults.

Image assets can be either the unique identifier for an image you uploaded to your application via the Rich Presence page in the Developer portal, or they can be an external image URL.

As an example, if I uploaded an asset and name it goofy-icon, I could set either image field to the string goofy-icon. Alternatively, if my icon was hosted at http://my-site.com/goofy.jpg, I could pass that URL into either image field.

See https://discord.com/developers/docs/rich-presence/overview#adding-custom-art-assets for more information on using custom art assets, as well as for visual examples of what each field does.

Definition at line 827 of file discordpp.h.

Constructor & Destructor Documentation

◆ ActivityAssets() [1/3]

discordpp::ActivityAssets::ActivityAssets ( ActivityAssets && other)
noexcept

Move constructor for ActivityAssets.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ActivityAssets() [2/3]

discordpp::ActivityAssets::ActivityAssets ( const ActivityAssets & arg0)

Copy constructor for ActivityAssets.

Here is the call graph for this function:

◆ ActivityAssets() [3/3]

discordpp::ActivityAssets::ActivityAssets ( )
explicit

Member Function Documentation

◆ InviteCoverImage()

std::optional< std::string > discordpp::ActivityAssets::InviteCoverImage ( ) const

The invite cover image identifier or URL, rendered as a banner image on activity invites.

If specified, must be a string between 1 and 300 characters.

Here is the caller graph for this function:

◆ LargeImage()

std::optional< std::string > discordpp::ActivityAssets::LargeImage ( ) const

The primary image identifier or URL, rendered as a large square icon on a user's rich presence.

If specified, must be a string between 1 and 300 characters.

Here is the caller graph for this function:

◆ LargeText()

std::optional< std::string > discordpp::ActivityAssets::LargeText ( ) const

A tooltip string that is shown when the user hovers over the large image.

If specified, must be a string between 2 and 128 characters.

Here is the caller graph for this function:

◆ LargeUrl()

std::optional< std::string > discordpp::ActivityAssets::LargeUrl ( ) const

A URL that opens when the user clicks/taps the large image.

If specified, must be a string between 1 and 256 characters.

Here is the caller graph for this function:

◆ operator bool()

discordpp::ActivityAssets::operator bool ( ) const
inline

Returns true if the instance contains a valid object.

Definition at line 848 of file discordpp.h.

◆ operator=() [1/2]

ActivityAssets & discordpp::ActivityAssets::operator= ( ActivityAssets && other)
noexcept

Move assignment operator for ActivityAssets.

Here is the call graph for this function:

◆ operator=() [2/2]

ActivityAssets & discordpp::ActivityAssets::operator= ( const ActivityAssets & arg0)

Copy assignment operator for ActivityAssets.

Here is the call graph for this function:

◆ SetInviteCoverImage()

void discordpp::ActivityAssets::SetInviteCoverImage ( std::optional< std::string > InviteCoverImage)

Setter for ActivityAssets::InviteCoverImage.

Here is the call graph for this function:

◆ SetLargeImage()

void discordpp::ActivityAssets::SetLargeImage ( std::optional< std::string > LargeImage)

Setter for ActivityAssets::LargeImage.

Here is the call graph for this function:

◆ SetLargeText()

void discordpp::ActivityAssets::SetLargeText ( std::optional< std::string > LargeText)

Setter for ActivityAssets::LargeText.

Here is the call graph for this function:

◆ SetLargeUrl()

void discordpp::ActivityAssets::SetLargeUrl ( std::optional< std::string > LargeUrl)

Setter for ActivityAssets::LargeUrl.

Here is the call graph for this function:

◆ SetSmallImage()

void discordpp::ActivityAssets::SetSmallImage ( std::optional< std::string > SmallImage)

Setter for ActivityAssets::SmallImage.

Here is the call graph for this function:

◆ SetSmallText()

void discordpp::ActivityAssets::SetSmallText ( std::optional< std::string > SmallText)

Setter for ActivityAssets::SmallText.

Here is the call graph for this function:

◆ SetSmallUrl()

void discordpp::ActivityAssets::SetSmallUrl ( std::optional< std::string > SmallUrl)

Setter for ActivityAssets::SmallUrl.

Here is the call graph for this function:

◆ SmallImage()

std::optional< std::string > discordpp::ActivityAssets::SmallImage ( ) const

The secondary image, rendered as a small circle over the largeImage.

If specified, must be a string between 1 and 300 characters.

Here is the caller graph for this function:

◆ SmallText()

std::optional< std::string > discordpp::ActivityAssets::SmallText ( ) const

A tooltip string that is shown when the user hovers over the small image.

If specified, must be a string between 2 and 128 characters.

Here is the caller graph for this function:

◆ SmallUrl()

std::optional< std::string > discordpp::ActivityAssets::SmallUrl ( ) const

A URL that opens when the user clicks/taps the small image.

If specified, must be a string between 1 and 256 characters.

Here is the caller graph for this function:

Member Data Documentation

◆ nullobj

const ActivityAssets discordpp::ActivityAssets::nullobj
static

Uninitialized instance of ActivityAssets.

Definition at line 846 of file discordpp.h.


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