#include <User.h>
|
std::string | get_token () const |
|
json | api_call (const std::string &url, const std::string &method="GET", const json &data=json(), const std::string &content_type="", const bool cache=true) |
| helper function to communicate with the http api
|
|
◆ PremiumType
Enumerator |
---|
None | |
NitroClassic | |
Nitro | |
◆ User() [1/3]
DiscordCPP::User::User |
( |
| ) |
|
|
default |
◆ User() [2/3]
DiscordCPP::User::User |
( |
const json & | data, |
|
|
const std::string & | token ) |
◆ User() [3/3]
DiscordCPP::User::User |
( |
const std::string & | id, |
|
|
const std::string & | token ) |
◆ ~User()
virtual DiscordCPP::User::~User |
( |
| ) |
|
|
virtualdefault |
◆ get_avatar()
std::string DiscordCPP::User::get_avatar |
( |
| ) |
|
|
inline |
◆ get_discriminator()
std::string DiscordCPP::User::get_discriminator |
( |
| ) |
|
|
inline |
◆ get_dmchannel()
◆ get_email()
std::string DiscordCPP::User::get_email |
( |
| ) |
|
|
inline |
◆ get_flags()
int DiscordCPP::User::get_flags |
( |
| ) |
|
|
inline |
the flags on a user's account
◆ get_locale()
std::string DiscordCPP::User::get_locale |
( |
| ) |
|
|
inline |
the user's chosen language option
◆ get_premium_type()
- Returns
- the type of Nitro subscription on a user's account
◆ get_username()
std::string DiscordCPP::User::get_username |
( |
| ) |
|
|
inline |
◆ is_bot()
bool DiscordCPP::User::is_bot |
( |
| ) |
|
|
inline |
true, if the user is a bot
◆ is_mfa_enabled()
bool DiscordCPP::User::is_mfa_enabled |
( |
| ) |
|
|
inline |
true, if the user has enabled two factor authentification
◆ is_verified()
bool DiscordCPP::User::is_verified |
( |
| ) |
|
|
inline |
true, if the user's email has been verified
◆ operator std::string()
virtual DiscordCPP::User::operator std::string |
( |
| ) |
|
|
inlineexplicitvirtual |
◆ send() [1/2]
send an embed to this user
- Parameters
-
[in] | embed | The Embed to send. |
- Returns
- The message that was sent.
◆ send() [2/2]
DiscordCPP::Message DiscordCPP::User::send |
( |
const std::string & | content, |
|
|
const bool | tts = false ) |
send a message to this user
- Parameters
-
[in] | content | The string message to send. |
[in] | tts | (optional) Wether to send as tts-message or not. Default is false. |
- Returns
- The message that was sent.
The documentation for this class was generated from the following files: