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

Contains information about non-text content in a message that likely cannot be rendered in game such as images, videos, embeds, polls, and more. More...

#include <discordpp.h>

Collaboration diagram for discordpp::AdditionalContent:
[legend]

Public Member Functions

 AdditionalContent (AdditionalContent &&other) noexcept
 Move constructor for AdditionalContent.
AdditionalContent & operator= (AdditionalContent &&other) noexcept
 Move assignment operator for AdditionalContent.
 operator bool () const
 Returns true if the instance contains a valid object.
 AdditionalContent (const AdditionalContent &arg0)
 Copy constructor for AdditionalContent.
AdditionalContent & operator= (const AdditionalContent &arg0)
 Copy assignment operator for AdditionalContent.
 AdditionalContent ()
bool Equals (discordpp::AdditionalContent rhs) const
 Compares each field of the AdditionalContent struct for equality.
discordpp::AdditionalContentType Type () const
 Represents the type of additional content in the message.
void SetType (discordpp::AdditionalContentType Type)
 Setter for AdditionalContent::Type.
std::optional< std::string > Title () const
 When the additional content is a poll or thread, this field will contain the name of the poll or thread.
void SetTitle (std::optional< std::string > Title)
 Setter for AdditionalContent::Title.
uint8_t Count () const
 Represents the number of pieces of additional content so you could for example renders "2 additional images".
void SetCount (uint8_t Count)
 Setter for AdditionalContent::Count.

Static Public Member Functions

static std::string TypeToString (discordpp::AdditionalContentType type)
 Converts the AdditionalContentType enum to a string.

Static Public Attributes

static const AdditionalContent nullobj
 Uninitialized instance of AdditionalContent.

Detailed Description

Contains information about non-text content in a message that likely cannot be rendered in game such as images, videos, embeds, polls, and more.

Definition at line 2905 of file discordpp.h.

Constructor & Destructor Documentation

◆ AdditionalContent() [1/3]

discordpp::AdditionalContent::AdditionalContent ( AdditionalContent && other)
noexcept

Move constructor for AdditionalContent.

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

◆ AdditionalContent() [2/3]

discordpp::AdditionalContent::AdditionalContent ( const AdditionalContent & arg0)

Copy constructor for AdditionalContent.

Here is the call graph for this function:

◆ AdditionalContent() [3/3]

discordpp::AdditionalContent::AdditionalContent ( )
explicit

Member Function Documentation

◆ Count()

uint8_t discordpp::AdditionalContent::Count ( ) const

Represents the number of pieces of additional content so you could for example renders "2 additional images".

Here is the caller graph for this function:

◆ Equals()

bool discordpp::AdditionalContent::Equals ( discordpp::AdditionalContent rhs) const

Compares each field of the AdditionalContent struct for equality.

◆ operator bool()

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

Returns true if the instance contains a valid object.

Definition at line 2926 of file discordpp.h.

◆ operator=() [1/2]

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

Move assignment operator for AdditionalContent.

Here is the call graph for this function:

◆ operator=() [2/2]

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

Copy assignment operator for AdditionalContent.

Here is the call graph for this function:

◆ SetCount()

void discordpp::AdditionalContent::SetCount ( uint8_t Count)

Setter for AdditionalContent::Count.

Here is the call graph for this function:

◆ SetTitle()

void discordpp::AdditionalContent::SetTitle ( std::optional< std::string > Title)

Setter for AdditionalContent::Title.

Here is the call graph for this function:

◆ SetType()

void discordpp::AdditionalContent::SetType ( discordpp::AdditionalContentType Type)

Setter for AdditionalContent::Type.

Here is the call graph for this function:

◆ Title()

std::optional< std::string > discordpp::AdditionalContent::Title ( ) const

When the additional content is a poll or thread, this field will contain the name of the poll or thread.

Here is the caller graph for this function:

◆ Type()

discordpp::AdditionalContentType discordpp::AdditionalContent::Type ( ) const

Represents the type of additional content in the message.

Here is the caller graph for this function:

◆ TypeToString()

std::string discordpp::AdditionalContent::TypeToString ( discordpp::AdditionalContentType type)
static

Converts the AdditionalContentType enum to a string.

Member Data Documentation

◆ nullobj

const AdditionalContent discordpp::AdditionalContent::nullobj
static

Uninitialized instance of AdditionalContent.

Definition at line 2924 of file discordpp.h.


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