Rise
The Vieneo Province
Loading...
Searching...
No Matches
discordpp.h File Reference
#include "cdiscord.h"
#include <atomic>
#include <cassert>
#include <cstring>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for discordpp.h:

Go to the source code of this file.

Classes

class  discordpp::ActivityInvite
 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...
class  discordpp::ActivityAssets
 Struct which controls what your rich presence looks like in the Discord client. If you don't specify any values, the icon and name of your application will be used as defaults. More...
class  discordpp::ActivityTimestamps
class  discordpp::ActivityParty
class  discordpp::ActivitySecrets
class  discordpp::ActivityButton
class  discordpp::Activity
 An Activity represents one "thing" a user is doing on Discord and is part of their rich presence. More...
class  discordpp::ClientResult
 Struct that stores information about the result of an SDK function call. More...
class  discordpp::AuthorizationCodeChallenge
 Struct that encapsulates the challenge part of the code verification flow. More...
class  discordpp::AuthorizationCodeVerifier
 Struct that encapsulates both parts of the code verification flow. More...
class  discordpp::AuthorizationArgs
 Arguments to the Client::Authorize function. More...
class  discordpp::DeviceAuthorizationArgs
 Arguments to the Client::GetTokenFromDevice function. More...
class  discordpp::VoiceStateHandle
 A VoiceStateHandle represents the state of a single participant in a Discord voice call. More...
class  discordpp::VADThresholdSettings
 Settings for the void auto detection threshold for picking up activity from a user's mic. More...
class  discordpp::Call
 Class that manages an active voice session in a Lobby. More...
class  discordpp::ChannelHandle
 All messages sent on Discord are done so in a Channel. MessageHandle::ChannelId will contain the ID of the channel a message was sent in, and Client::GetChannelHandle will return an instance of this class. More...
class  discordpp::GuildMinimal
 Represents a guild (also knowns as a Discord server), that the current user is a member of, that contains channels that can be linked to a lobby. More...
class  discordpp::GuildChannel
 Represents a channel in a guild that the current user is a member of and may be able to be linked to a lobby. More...
class  discordpp::LinkedLobby
 Struct that stores information about the lobby linked to a channel. More...
class  discordpp::LinkedChannel
 Struct that stores information about the channel that a lobby is linked to. More...
class  discordpp::RelationshipHandle
 A RelationshipHandle represents the relationship between the current user and a target user on Discord. Relationships include friends, blocked users, and friend invites. More...
class  discordpp::UserApplicationProfileHandle
 A UserApplicationProfileHandle represents a profile from an external identity provider, such as Steam or Epic Online Services. More...
class  discordpp::UserHandle
 A UserHandle represents a single user on Discord that the SDK knows about and contains basic account information for them such as id, name, and avatar, as well as their "status" information which includes both whether they are online/offline/etc as well as whether they are playing this game. More...
class  discordpp::LobbyMemberHandle
 A LobbyMemberHandle represents the state of a single user in a Lobby. More...
class  discordpp::LobbyHandle
 A LobbyHandle represents a single lobby in the SDK. A lobby can be thought of as just an arbitrary, developer-controlled group of users that can communicate with each other. More...
class  discordpp::AdditionalContent
 Contains information about non-text content in a message that likely cannot be rendered in game such as images, videos, embeds, polls, and more. More...
class  discordpp::MessageHandle
 A MessageHandle represents a single message received by the SDK. More...
class  discordpp::AudioDevice
 Represents a single input or output audio device available to the user. More...
class  discordpp::VoiceSettings
 A read-only snapshot of the user's voice settings in the connected Discord desktop client. More...
class  discordpp::UserMessageSummary
 Represents a summary of a DM conversation with a user. More...
class  discordpp::ClientCreateOptions
 Options for creating a new Client instance. More...
class  discordpp::Client
 The Client class is the main entry point for the Discord SDK. All functionality is exposed through this class. More...
class  discordpp::CallInfoHandle
 Convenience class that represents the state of a single Discord call in a lobby. More...

Namespaces

namespace  discordpp
 The namespace for the generated Discord SDK bindings.

Enumerations

enum class  discordpp::DiscordObjectState { discordpp::Invalid , discordpp::Owned }
 Represents the memory state of a Discord object. More...
enum class  discordpp::ActivityActionTypes { discordpp::Invalid = 0 , discordpp::Join = 1 , discordpp::JoinRequest = 5 }
 ActivityActionTypes represents the type of invite being sent to a user. More...
enum class  discordpp::ActivityPartyPrivacy { discordpp::Private = 0 , discordpp::Public = 1 }
 Allows your game to control the privacy of the party the user is in. More...
enum class  discordpp::ActivityTypes {
  discordpp::Playing = 0 , discordpp::Streaming = 1 , discordpp::Listening = 2 , discordpp::Watching = 3 ,
  discordpp::CustomStatus = 4 , discordpp::Competing = 5 , discordpp::HangStatus = 6
}
 Discord RichPresence supports multiple types of activities that a user can be doing. More...
enum class  discordpp::StatusDisplayTypes { discordpp::Name = 0 , discordpp::State = 1 , discordpp::Details = 2 }
 Controls which Discord RichPresence field is displayed in the user's status. More...
enum class  discordpp::ActivityGamePlatforms {
  discordpp::Desktop = 1 , discordpp::Xbox = 2 , discordpp::Samsung = 4 , discordpp::IOS = 8 ,
  discordpp::Android = 16 , discordpp::Embedded = 32 , discordpp::PS4 = 64 , discordpp::PS5 = 128
}
 Represents the type of platforms that an activity invite can be accepted on. More...
enum class  discordpp::ErrorType {
  discordpp::None = 0 , discordpp::NetworkError = 1 , discordpp::HTTPError = 2 , discordpp::ClientNotReady = 3 ,
  discordpp::Disabled = 4 , discordpp::ClientDestroyed = 5 , discordpp::ValidationError = 6 , discordpp::Aborted = 7 ,
  discordpp::AuthorizationFailed = 8 , discordpp::RPCError = 9
}
 Enum representing various types of errors the SDK returns. More...
enum class  discordpp::HttpStatusCode {
  discordpp::None = 0 , discordpp::Continue = 100 , discordpp::SwitchingProtocols = 101 , discordpp::Processing = 102 ,
  discordpp::EarlyHints = 103 , discordpp::Ok = 200 , discordpp::Created = 201 , discordpp::Accepted = 202 ,
  discordpp::NonAuthoritativeInfo = 203 , discordpp::NoContent = 204 , discordpp::ResetContent = 205 , discordpp::PartialContent = 206 ,
  discordpp::MultiStatus = 207 , discordpp::AlreadyReported = 208 , discordpp::ImUsed = 209 , discordpp::MultipleChoices = 300 ,
  discordpp::MovedPermanently = 301 , discordpp::Found = 302 , discordpp::SeeOther = 303 , discordpp::NotModified = 304 ,
  discordpp::TemporaryRedirect = 307 , discordpp::PermanentRedirect = 308 , discordpp::BadRequest = 400 , discordpp::Unauthorized = 401 ,
  discordpp::PaymentRequired = 402 , discordpp::Forbidden = 403 , discordpp::NotFound = 404 , discordpp::MethodNotAllowed = 405 ,
  discordpp::NotAcceptable = 406 , discordpp::ProxyAuthRequired = 407 , discordpp::RequestTimeout = 408 , discordpp::Conflict = 409 ,
  discordpp::Gone = 410 , discordpp::LengthRequired = 411 , discordpp::PreconditionFailed = 412 , discordpp::PayloadTooLarge = 413 ,
  discordpp::UriTooLong = 414 , discordpp::UnsupportedMediaType = 415 , discordpp::RangeNotSatisfiable = 416 , discordpp::ExpectationFailed = 417 ,
  discordpp::MisdirectedRequest = 421 , discordpp::UnprocessableEntity = 422 , discordpp::Locked = 423 , discordpp::FailedDependency = 424 ,
  discordpp::TooEarly = 425 , discordpp::UpgradeRequired = 426 , discordpp::PreconditionRequired = 428 , discordpp::TooManyRequests = 429 ,
  discordpp::RequestHeaderFieldsTooLarge = 431 , discordpp::InternalServerError = 500 , discordpp::NotImplemented = 501 , discordpp::BadGateway = 502 ,
  discordpp::ServiceUnavailable = 503 , discordpp::GatewayTimeout = 504 , discordpp::HttpVersionNotSupported = 505 , discordpp::VariantAlsoNegotiates = 506 ,
  discordpp::InsufficientStorage = 507 , discordpp::LoopDetected = 508 , discordpp::NotExtended = 510 , discordpp::NetworkAuthorizationRequired = 511
}
 Enum that represents the various HTTP status codes that can be returned. More...
enum class  discordpp::AuthenticationCodeChallengeMethod { discordpp::S256 = 0 }
 Represents the crypto method used to generate a code challenge. More...
enum class  discordpp::IntegrationType { discordpp::GuildInstall = 0 , discordpp::UserInstall = 1 }
 Represents the type of integration the app will be installed as. More...
enum class  discordpp::ChannelType {
  discordpp::GuildText = 0 , discordpp::Dm = 1 , discordpp::GuildVoice = 2 , discordpp::GroupDm = 3 ,
  discordpp::GuildCategory = 4 , discordpp::GuildNews = 5 , discordpp::GuildStore = 6 , discordpp::GuildNewsThread = 10 ,
  discordpp::GuildPublicThread = 11 , discordpp::GuildPrivateThread = 12 , discordpp::GuildStageVoice = 13 , discordpp::GuildDirectory = 14 ,
  discordpp::GuildForum = 15 , discordpp::GuildMedia = 16 , discordpp::Lobby = 17 , discordpp::EphemeralDm = 18
}
 Enum that represents the various channel types on Discord. More...
enum class  discordpp::AdditionalContentType {
  discordpp::Other = 0 , discordpp::Attachment = 1 , discordpp::Poll = 2 , discordpp::VoiceMessage = 3 ,
  discordpp::Thread = 4 , discordpp::Embed = 5 , discordpp::Sticker = 6
}
 Represents the type of additional content contained in a message. More...
enum class  discordpp::VoiceInputModeType { discordpp::VoiceActivity = 0 , discordpp::PushToTalk = 1 }
 Describes how the Discord client decides when to transmit the user's microphone audio. More...
enum class  discordpp::AudioSystem { discordpp::Standard = 0 , discordpp::Game = 1 }
 The Discord Voice audio system to use. More...
enum class  discordpp::AudioModeType { discordpp::MODE_UNINIT = 0 , discordpp::MODE_VAD = 1 , discordpp::MODE_PTT = 2 }
 Represents whether a voice call is using push to talk or auto voice detection. More...
enum class  discordpp::RelationshipType {
  discordpp::None = 0 , discordpp::Friend = 1 , discordpp::Blocked = 2 , discordpp::PendingIncoming = 3 ,
  discordpp::PendingOutgoing = 4 , discordpp::Implicit = 5 , discordpp::Suggestion = 6
}
 Enum that represents the possible types of relationships that can exist between two users. More...
enum class  discordpp::ExternalIdentityProviderType {
  discordpp::OIDC = 0 , discordpp::EpicOnlineServices = 1 , discordpp::Steam = 2 , discordpp::Unity = 3 ,
  discordpp::DiscordBot = 4 , discordpp::None = 5 , discordpp::Unknown = 6
}
 The type of external identity provider. More...
enum class  discordpp::StatusType {
  discordpp::Online = 0 , discordpp::Offline = 1 , discordpp::Blocked = 2 , discordpp::Idle = 3 ,
  discordpp::Dnd = 4 , discordpp::Invisible = 5 , discordpp::Streaming = 6 , discordpp::Unknown = 7
}
 Enum that specifies the various online statuses for a user. More...
enum class  discordpp::DisclosureTypes { discordpp::MessageDataVisibleOnDiscord = 3 }
 Enum that represents various informational disclosures that Discord may make to users, so that the game can identity them and customize their rendering as desired. More...
enum class  discordpp::AuthorizationTokenType { discordpp::User = 0 , discordpp::Bearer = 1 }
 Represents the type of auth token used by the SDK, either the normal tokens produced by the Discord desktop app, or an oauth2 bearer token. Only the latter can be used by the SDK. More...
enum class  discordpp::AuthenticationExternalAuthType {
  discordpp::OIDC = 0 , discordpp::EpicOnlineServicesAccessToken = 1 , discordpp::EpicOnlineServicesIdToken = 2 , discordpp::SteamSessionTicket = 3 ,
  discordpp::UnityServicesIdToken = 4 , discordpp::DiscordBotIssuedAccessToken = 5 , discordpp::AppleIdToken = 6 , discordpp::PlayStationNetworkIdToken = 7
}
 Represents the various identity providers that can be used to authenticate a provisional account user for public clients. More...
enum class  discordpp::LoggingSeverity {
  discordpp::Verbose = 1 , discordpp::Info = 2 , discordpp::Warning = 3 , discordpp::Error = 4 ,
  discordpp::None = 5
}
 Enum that represents the various log levels supported by the SDK. More...
enum class  discordpp::RelationshipGroupType { discordpp::OnlinePlayingGame = 0 , discordpp::OnlineElsewhere = 1 , discordpp::Offline = 2 }
 Enum that represents the logical groups of relationships based on online status and game activity. More...

Functions

void discordpp::RunCallbacks ()
const char * discordpp::EnumToString (discordpp::ActivityActionTypes value)
 Converts a discordpp::ActivityActionTypes to a string.
const char * discordpp::EnumToString (discordpp::ActivityPartyPrivacy value)
 Converts a discordpp::ActivityPartyPrivacy to a string.
const char * discordpp::EnumToString (discordpp::ActivityTypes value)
 Converts a discordpp::ActivityTypes to a string.
const char * discordpp::EnumToString (discordpp::StatusDisplayTypes value)
 Converts a discordpp::StatusDisplayTypes to a string.
const char * discordpp::EnumToString (discordpp::ActivityGamePlatforms value)
 Converts a discordpp::ActivityGamePlatforms to a string.
const char * discordpp::EnumToString (discordpp::ErrorType value)
 Converts a discordpp::ErrorType to a string.
const char * discordpp::EnumToString (discordpp::HttpStatusCode value)
 Converts a discordpp::HttpStatusCode to a string.
const char * discordpp::EnumToString (discordpp::AuthenticationCodeChallengeMethod value)
 Converts a discordpp::AuthenticationCodeChallengeMethod to a string.
const char * discordpp::EnumToString (discordpp::IntegrationType value)
 Converts a discordpp::IntegrationType to a string.
const char * discordpp::EnumToString (discordpp::ChannelType value)
 Converts a discordpp::ChannelType to a string.
const char * discordpp::EnumToString (discordpp::AdditionalContentType value)
 Converts a discordpp::AdditionalContentType to a string.
const char * discordpp::EnumToString (discordpp::VoiceInputModeType value)
 Converts a discordpp::VoiceInputModeType to a string.
const char * discordpp::EnumToString (discordpp::AudioSystem value)
 Converts a discordpp::AudioSystem to a string.
const char * discordpp::EnumToString (discordpp::Call::Error value)
 Converts a discordpp::Call::Error to a string.
const char * discordpp::EnumToString (discordpp::AudioModeType value)
 Converts a discordpp::AudioModeType to a string.
const char * discordpp::EnumToString (discordpp::Call::Status value)
 Converts a discordpp::Call::Status to a string.
const char * discordpp::EnumToString (discordpp::RelationshipType value)
 Converts a discordpp::RelationshipType to a string.
const char * discordpp::EnumToString (discordpp::ExternalIdentityProviderType value)
 Converts a discordpp::ExternalIdentityProviderType to a string.
const char * discordpp::EnumToString (discordpp::UserHandle::AvatarType value)
 Converts a discordpp::UserHandle::AvatarType to a string.
const char * discordpp::EnumToString (discordpp::StatusType value)
 Converts a discordpp::StatusType to a string.
const char * discordpp::EnumToString (discordpp::DisclosureTypes value)
 Converts a discordpp::DisclosureTypes to a string.
const char * discordpp::EnumToString (discordpp::Client::Error value)
 Converts a discordpp::Client::Error to a string.
const char * discordpp::EnumToString (discordpp::Client::Status value)
 Converts a discordpp::Client::Status to a string.
const char * discordpp::EnumToString (discordpp::Client::Thread value)
 Converts a discordpp::Client::Thread to a string.
const char * discordpp::EnumToString (discordpp::AuthorizationTokenType value)
 Converts a discordpp::AuthorizationTokenType to a string.
const char * discordpp::EnumToString (discordpp::AuthenticationExternalAuthType value)
 Converts a discordpp::AuthenticationExternalAuthType to a string.
const char * discordpp::EnumToString (discordpp::LoggingSeverity value)
 Converts a discordpp::LoggingSeverity to a string.
const char * discordpp::EnumToString (discordpp::RelationshipGroupType value)
 Converts a discordpp::RelationshipGroupType to a string.