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

When one user invites another to join their game on Discord, it will send a message to that user. The SDK will parse those messages for you automatically, and this struct contains all of the relevant invite information which is needed to later accept that invite. More...

#include <discordpp.h>

Collaboration diagram for discordpp::ActivityInvite:
[legend]

Public Member Functions

 ActivityInvite (ActivityInvite &&other) noexcept
 Move constructor for ActivityInvite.
ActivityInvite & operator= (ActivityInvite &&other) noexcept
 Move assignment operator for ActivityInvite.
 operator bool () const
 Returns true if the instance contains a valid object.
 ActivityInvite (const ActivityInvite &rhs)
 Copy constructor for ActivityInvite.
ActivityInvite & operator= (const ActivityInvite &rhs)
 Copy assignment operator for ActivityInvite.
 ActivityInvite ()
uint64_t SenderId () const
 The user id of the user who sent the invite.
void SetSenderId (uint64_t SenderId)
 Setter for ActivityInvite::SenderId.
uint64_t ChannelId () const
 The id of the Discord channel in which the invite was sent.
void SetChannelId (uint64_t ChannelId)
 Setter for ActivityInvite::ChannelId.
uint64_t MessageId () const
 The id of the Discord message that contains the invite.
void SetMessageId (uint64_t MessageId)
 Setter for ActivityInvite::MessageId.
discordpp::ActivityActionTypes Type () const
 The type of invite that was sent.
void SetType (discordpp::ActivityActionTypes Type)
 Setter for ActivityInvite::Type.
uint64_t ApplicationId () const
 The target application of the invite.
void SetApplicationId (uint64_t ApplicationId)
 Setter for ActivityInvite::ApplicationId.
uint64_t ParentApplicationId () const
 The application id of the parent - this is only applicable if there is a parent for a publisher's suite of applications.
void SetParentApplicationId (uint64_t ParentApplicationId)
 Setter for ActivityInvite::ParentApplicationId.
std::string PartyId () const
 The id of the party the invite was sent for.
void SetPartyId (std::string PartyId)
 Setter for ActivityInvite::PartyId.
std::string SessionId () const
 The session id of the user who sent the invite.
void SetSessionId (std::string SessionId)
 Setter for ActivityInvite::SessionId.
bool IsValid () const
 Whether or not this invite is currently joinable. An invite becomes invalid if it was sent more than 6 hours ago or if the sender is no longer playing the game the invite is for.
void SetIsValid (bool IsValid)
 Setter for ActivityInvite::IsValid.

Static Public Attributes

static const ActivityInvite nullobj
 Uninitialized instance of ActivityInvite.

Detailed Description

When one user invites another to join their game on Discord, it will send a message to that user. The SDK will parse those messages for you automatically, and this struct contains all of the relevant invite information which is needed to later accept that invite.

Definition at line 729 of file discordpp.h.

Constructor & Destructor Documentation

◆ ActivityInvite() [1/3]

discordpp::ActivityInvite::ActivityInvite ( ActivityInvite && other)
noexcept

Move constructor for ActivityInvite.

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

◆ ActivityInvite() [2/3]

discordpp::ActivityInvite::ActivityInvite ( const ActivityInvite & rhs)

Copy constructor for ActivityInvite.

Here is the call graph for this function:

◆ ActivityInvite() [3/3]

discordpp::ActivityInvite::ActivityInvite ( )
explicit

Member Function Documentation

◆ ApplicationId()

uint64_t discordpp::ActivityInvite::ApplicationId ( ) const

The target application of the invite.

Here is the caller graph for this function:

◆ ChannelId()

uint64_t discordpp::ActivityInvite::ChannelId ( ) const

The id of the Discord channel in which the invite was sent.

Here is the caller graph for this function:

◆ IsValid()

bool discordpp::ActivityInvite::IsValid ( ) const

Whether or not this invite is currently joinable. An invite becomes invalid if it was sent more than 6 hours ago or if the sender is no longer playing the game the invite is for.

Here is the caller graph for this function:

◆ MessageId()

uint64_t discordpp::ActivityInvite::MessageId ( ) const

The id of the Discord message that contains the invite.

Here is the caller graph for this function:

◆ operator bool()

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

Returns true if the instance contains a valid object.

Definition at line 750 of file discordpp.h.

◆ operator=() [1/2]

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

Move assignment operator for ActivityInvite.

Here is the call graph for this function:

◆ operator=() [2/2]

ActivityInvite & discordpp::ActivityInvite::operator= ( const ActivityInvite & rhs)

Copy assignment operator for ActivityInvite.

Here is the call graph for this function:

◆ ParentApplicationId()

uint64_t discordpp::ActivityInvite::ParentApplicationId ( ) const

The application id of the parent - this is only applicable if there is a parent for a publisher's suite of applications.

Here is the caller graph for this function:

◆ PartyId()

std::string discordpp::ActivityInvite::PartyId ( ) const

The id of the party the invite was sent for.

Here is the caller graph for this function:

◆ SenderId()

uint64_t discordpp::ActivityInvite::SenderId ( ) const

The user id of the user who sent the invite.

Here is the caller graph for this function:

◆ SessionId()

std::string discordpp::ActivityInvite::SessionId ( ) const

The session id of the user who sent the invite.

Here is the caller graph for this function:

◆ SetApplicationId()

void discordpp::ActivityInvite::SetApplicationId ( uint64_t ApplicationId)

Setter for ActivityInvite::ApplicationId.

Here is the call graph for this function:

◆ SetChannelId()

void discordpp::ActivityInvite::SetChannelId ( uint64_t ChannelId)

Setter for ActivityInvite::ChannelId.

Here is the call graph for this function:

◆ SetIsValid()

void discordpp::ActivityInvite::SetIsValid ( bool IsValid)

Setter for ActivityInvite::IsValid.

Here is the call graph for this function:

◆ SetMessageId()

void discordpp::ActivityInvite::SetMessageId ( uint64_t MessageId)

Setter for ActivityInvite::MessageId.

Here is the call graph for this function:

◆ SetParentApplicationId()

void discordpp::ActivityInvite::SetParentApplicationId ( uint64_t ParentApplicationId)

Setter for ActivityInvite::ParentApplicationId.

Here is the call graph for this function:

◆ SetPartyId()

void discordpp::ActivityInvite::SetPartyId ( std::string PartyId)

Setter for ActivityInvite::PartyId.

Here is the call graph for this function:

◆ SetSenderId()

void discordpp::ActivityInvite::SetSenderId ( uint64_t SenderId)

Setter for ActivityInvite::SenderId.

Here is the call graph for this function:

◆ SetSessionId()

void discordpp::ActivityInvite::SetSessionId ( std::string SessionId)

Setter for ActivityInvite::SessionId.

Here is the call graph for this function:

◆ SetType()

void discordpp::ActivityInvite::SetType ( discordpp::ActivityActionTypes Type)

Setter for ActivityInvite::Type.

Here is the call graph for this function:

◆ Type()

discordpp::ActivityActionTypes discordpp::ActivityInvite::Type ( ) const

The type of invite that was sent.

Here is the caller graph for this function:

Member Data Documentation

◆ nullobj

const ActivityInvite discordpp::ActivityInvite::nullobj
static

Uninitialized instance of ActivityInvite.

Definition at line 748 of file discordpp.h.


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