Discord Social SDK
|
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.
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. | |
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. | |
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. | |
|
noexcept |
Move constructor for ActivityInvite.
discordpp::ActivityInvite::ActivityInvite | ( | const ActivityInvite & | rhs | ) |
Copy constructor for ActivityInvite.
uint64_t discordpp::ActivityInvite::ApplicationId | ( | ) | const |
The target application of the invite.
uint64_t discordpp::ActivityInvite::ChannelId | ( | ) | const |
The id of the Discord channel in which the invite was sent.
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.
uint64_t discordpp::ActivityInvite::MessageId | ( | ) | const |
The id of the Discord message that contains the invite.
|
inline |
Returns true if the instance contains a valid object.
|
noexcept |
Move assignment operator for ActivityInvite.
ActivityInvite & discordpp::ActivityInvite::operator= | ( | const ActivityInvite & | rhs | ) |
Copy assignment operator for ActivityInvite.
std::string discordpp::ActivityInvite::PartyId | ( | ) | const |
The id of the party the invite was sent for.
uint64_t discordpp::ActivityInvite::SenderId | ( | ) | const |
The user id of the user who sent the invite.
std::string discordpp::ActivityInvite::SessionId | ( | ) | const |
The session id of the user who sent the invite.
void discordpp::ActivityInvite::SetApplicationId | ( | uint64_t | ApplicationId | ) |
Setter for ActivityInvite::ApplicationId.
void discordpp::ActivityInvite::SetChannelId | ( | uint64_t | ChannelId | ) |
Setter for ActivityInvite::ChannelId.
void discordpp::ActivityInvite::SetIsValid | ( | bool | IsValid | ) |
Setter for ActivityInvite::IsValid.
void discordpp::ActivityInvite::SetMessageId | ( | uint64_t | MessageId | ) |
Setter for ActivityInvite::MessageId.
void discordpp::ActivityInvite::SetPartyId | ( | std::string | PartyId | ) |
Setter for ActivityInvite::PartyId.
void discordpp::ActivityInvite::SetSenderId | ( | uint64_t | SenderId | ) |
Setter for ActivityInvite::SenderId.
void discordpp::ActivityInvite::SetSessionId | ( | std::string | SessionId | ) |
Setter for ActivityInvite::SessionId.
void discordpp::ActivityInvite::SetType | ( | discordpp::ActivityActionTypes | Type | ) |
Setter for ActivityInvite::Type.
discordpp::ActivityActionTypes discordpp::ActivityInvite::Type | ( | ) | const |
The type of invite that was sent.
|
static |
Uninitialized instance of ActivityInvite.