Discord Social SDK
Loading...
Searching...
No Matches
discordpp::LinkedGameOrganization Class Reference

Detailed Description

Struct that stores information about the game organization linked to a guild.

If the game organization is owned by a different application, the guild is still linked but both fields are empty.

Public Member Functions

 LinkedGameOrganization (LinkedGameOrganization &&other) noexcept
 Move constructor for LinkedGameOrganization.
 
LinkedGameOrganization & operator= (LinkedGameOrganization &&other) noexcept
 Move assignment operator for LinkedGameOrganization.
 
 operator bool () const
 Returns true if the instance contains a valid object.
 
 LinkedGameOrganization (const LinkedGameOrganization &arg0)
 Copy constructor for LinkedGameOrganization.
 
LinkedGameOrganization & operator= (const LinkedGameOrganization &arg0)
 Copy assignment operator for LinkedGameOrganization.
 
std::optional< uint64_t > ApplicationId () const
 The ID of the application that owns the game organization.
 
void SetApplicationId (std::optional< uint64_t > ApplicationId)
 Setter for LinkedGameOrganization::ApplicationId.
 
std::optional< discordpp::String > GameOrganizationId () const
 The ID of the game organization.
 
void SetGameOrganizationId (std::optional< std::string_view > GameOrganizationId)
 Setter for LinkedGameOrganization::GameOrganizationId.
 

Static Public Attributes

static const LinkedGameOrganization nullobj
 Uninitialized instance of LinkedGameOrganization.
 

Constructor & Destructor Documentation

◆ LinkedGameOrganization() [1/2]

discordpp::LinkedGameOrganization::LinkedGameOrganization ( LinkedGameOrganization && other)
noexcept

Move constructor for LinkedGameOrganization.

◆ LinkedGameOrganization() [2/2]

discordpp::LinkedGameOrganization::LinkedGameOrganization ( const LinkedGameOrganization & arg0)

Copy constructor for LinkedGameOrganization.

Member Function Documentation

◆ ApplicationId()

std::optional< uint64_t > discordpp::LinkedGameOrganization::ApplicationId ( ) const

The ID of the application that owns the game organization.

◆ GameOrganizationId()

std::optional< discordpp::String > discordpp::LinkedGameOrganization::GameOrganizationId ( ) const

The ID of the game organization.

◆ operator bool()

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

Returns true if the instance contains a valid object.

◆ operator=() [1/2]

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

Copy assignment operator for LinkedGameOrganization.

◆ operator=() [2/2]

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

Move assignment operator for LinkedGameOrganization.

◆ SetApplicationId()

void discordpp::LinkedGameOrganization::SetApplicationId ( std::optional< uint64_t > ApplicationId)

◆ SetGameOrganizationId()

void discordpp::LinkedGameOrganization::SetGameOrganizationId ( std::optional< std::string_view > GameOrganizationId)

Member Data Documentation

◆ nullobj

const LinkedGameOrganization discordpp::LinkedGameOrganization::nullobj
static

Uninitialized instance of LinkedGameOrganization.