![]() |
D++ (DPP)
C++ Discord API Bot Library
|
Represents an invite to a discord guild or channel. More...
#include <invite.h>
Collaboration diagram for dpp::invite:Public Member Functions | |
| invite () | |
| ~invite () | |
| std::string | build_json () const |
| invite & | fill_from_json (nlohmann::json *j) |
Public Attributes | |
| uint32_t | approximate_member_count |
| uint32_t | approximate_presence_count |
| snowflake | channel_id |
| std::string | code |
| snowflake | guild_id |
| snowflake | inviter_id |
| uint32_t | max_age |
| uint32_t | max_uses |
| snowflake | target_user_id |
| uint8_t | target_user_type |
| bool | temporary |
| bool | unique |
Represents an invite to a discord guild or channel.
| dpp::invite::invite | ( | ) |
Constructor
| dpp::invite::~invite | ( | ) |
Destructor
| std::string dpp::invite::build_json | ( | ) | const |
Build JSON from this object.
| invite & dpp::invite::fill_from_json | ( | nlohmann::json * | j | ) |
Read class values from json object
| j | A json object to read from |
| uint32_t dpp::invite::approximate_member_count |
Approximate total users online and offline
| uint32_t dpp::invite::approximate_presence_count |
Approximate number of online users
| snowflake dpp::invite::channel_id |
Channel id for invite
| std::string dpp::invite::code |
Invite code
| snowflake dpp::invite::guild_id |
Guild for the invite
| snowflake dpp::invite::inviter_id |
User ID of invite creator
| uint32_t dpp::invite::max_age |
Maximum age of invite
| uint32_t dpp::invite::max_uses |
Maximum number of uses
| snowflake dpp::invite::target_user_id |
Target user ID of invite, for invites sent via DM
| uint8_t dpp::invite::target_user_type |
Target user type (generally this is always 1, "stream")
| bool dpp::invite::temporary |
True if a temporary invite which grants access for a limited time
| bool dpp::invite::unique |
True if this invite should not replace or "attach to" similar invites