Rise
The Vieneo Province
Loading...
Searching...
No Matches
discordpp Namespace Reference

The namespace for the generated Discord SDK bindings. More...

Classes

class  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  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  ActivityTimestamps
class  ActivityParty
class  ActivitySecrets
class  ActivityButton
class  Activity
 An Activity represents one "thing" a user is doing on Discord and is part of their rich presence. More...
class  ClientResult
 Struct that stores information about the result of an SDK function call. More...
class  AuthorizationCodeChallenge
 Struct that encapsulates the challenge part of the code verification flow. More...
class  AuthorizationCodeVerifier
 Struct that encapsulates both parts of the code verification flow. More...
class  AuthorizationArgs
 Arguments to the Client::Authorize function. More...
class  DeviceAuthorizationArgs
 Arguments to the Client::GetTokenFromDevice function. More...
class  VoiceStateHandle
 A VoiceStateHandle represents the state of a single participant in a Discord voice call. More...
class  VADThresholdSettings
 Settings for the void auto detection threshold for picking up activity from a user's mic. More...
class  Call
 Class that manages an active voice session in a Lobby. More...
class  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  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  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  LinkedLobby
 Struct that stores information about the lobby linked to a channel. More...
class  LinkedChannel
 Struct that stores information about the channel that a lobby is linked to. More...
class  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  UserApplicationProfileHandle
 A UserApplicationProfileHandle represents a profile from an external identity provider, such as Steam or Epic Online Services. More...
class  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  LobbyMemberHandle
 A LobbyMemberHandle represents the state of a single user in a Lobby. More...
class  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  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  MessageHandle
 A MessageHandle represents a single message received by the SDK. More...
class  AudioDevice
 Represents a single input or output audio device available to the user. More...
class  VoiceSettings
 A read-only snapshot of the user's voice settings in the connected Discord desktop client. More...
class  UserMessageSummary
 Represents a summary of a DM conversation with a user. More...
class  ClientCreateOptions
 Options for creating a new Client instance. More...
class  Client
 The Client class is the main entry point for the Discord SDK. All functionality is exposed through this class. More...
class  CallInfoHandle
 Convenience class that represents the state of a single Discord call in a lobby. More...

Enumerations

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

Functions

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

Detailed Description

The namespace for the generated Discord SDK bindings.

Enumeration Type Documentation

◆ ActivityActionTypes

enum class discordpp::ActivityActionTypes
strong

ActivityActionTypes represents the type of invite being sent to a user.

There are essentially two types of invites: 1: A user with an existing activity party can invite another user to join that existing party 2: A user can request to join the existing activity party of another user

See https://discord.com/developers/docs/rich-presence/overview for more information.

Enumerator
Invalid 

Invalid.

Join 

Join.

JoinRequest 

JoinRequest.

Definition at line 41 of file discordpp.h.

◆ ActivityGamePlatforms

Represents the type of platforms that an activity invite can be accepted on.

Enumerator
Desktop 

Desktop.

Xbox 

Xbox.

Samsung 

Samsung.

IOS 

IOS.

Android 

Android.

Embedded 

Embedded.

PS4 

PS4.

PS5 

PS5.

Definition at line 117 of file discordpp.h.

◆ ActivityPartyPrivacy

Allows your game to control the privacy of the party the user is in.

Enumerator
Private 

The party is private (or unknown), which means that the user is in a party but it is not joinable without sending a request to join the party.

This is the default value. You will also receive this value when receiving other users' activities as the party privacy for other users is not exposed.

Public 

The party is public, which means that the user is in a party which could be joinable by either friends or mutual voice participants without sending a request to join the party. This depends on a user's desired Discord account privacy settings.

Definition at line 54 of file discordpp.h.

◆ ActivityTypes

enum class discordpp::ActivityTypes
strong

Discord RichPresence supports multiple types of activities that a user can be doing.

For the SDK, the only activity type that is really relevant is Playing. The others are provided for completeness.

See https://discord.com/developers/docs/rich-presence/overview for more information.

Enumerator
Playing 

Playing.

Streaming 

Streaming.

Listening 

Listening.

Watching 

Watching.

CustomStatus 

CustomStatus.

Competing 

Competing.

HangStatus 

HangStatus.

Definition at line 77 of file discordpp.h.

◆ AdditionalContentType

Represents the type of additional content contained in a message.

Enumerator
Other 

Other.

Attachment 

Attachment.

Poll 

Poll.

VoiceMessage 

VoiceMessage.

Thread 

Thread.

Embed 

Embed.

Sticker 

Sticker.

Definition at line 464 of file discordpp.h.

◆ AudioModeType

enum class discordpp::AudioModeType
strong

Represents whether a voice call is using push to talk or auto voice detection.

Enumerator
MODE_UNINIT 

MODE_UNINIT.

MODE_VAD 

MODE_VAD.

MODE_PTT 

MODE_PTT.

Definition at line 509 of file discordpp.h.

◆ AudioSystem

enum class discordpp::AudioSystem
strong

The Discord Voice audio system to use.

Enumerator
Standard 

Use the standard audio system.

Game 

Use the game audio system.

Definition at line 499 of file discordpp.h.

◆ AuthenticationCodeChallengeMethod

Represents the crypto method used to generate a code challenge.

The only method used by the SDK is sha256.

Enumerator
S256 

S256.

Definition at line 393 of file discordpp.h.

◆ AuthenticationExternalAuthType

Represents the various identity providers that can be used to authenticate a provisional account user for public clients.

Enumerator
OIDC 

OIDC.

EpicOnlineServicesAccessToken 

EpicOnlineServicesAccessToken.

EpicOnlineServicesIdToken 

EpicOnlineServicesIdToken.

SteamSessionTicket 

SteamSessionTicket.

UnityServicesIdToken 

UnityServicesIdToken.

DiscordBotIssuedAccessToken 

DiscordBotIssuedAccessToken.

AppleIdToken 

AppleIdToken.

PlayStationNetworkIdToken 

PlayStationNetworkIdToken.

Definition at line 633 of file discordpp.h.

◆ AuthorizationTokenType

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.

Enumerator
User 

User.

Bearer 

Bearer.

Definition at line 622 of file discordpp.h.

◆ ChannelType

enum class discordpp::ChannelType
strong

Enum that represents the various channel types on Discord.

For more information see: https://discord.com/developers/docs/resources/channel

Enumerator
GuildText 

GuildText.

Dm 

Dm.

GuildVoice 

GuildVoice.

GroupDm 

GroupDm.

GuildCategory 

GuildCategory.

GuildNews 

GuildNews.

GuildStore 

GuildStore.

GuildNewsThread 

GuildNewsThread.

GuildPublicThread 

GuildPublicThread.

GuildPrivateThread 

GuildPrivateThread.

GuildStageVoice 

GuildStageVoice.

GuildDirectory 

GuildDirectory.

GuildForum 

GuildForum.

GuildMedia 

GuildMedia.

Lobby 

Lobby.

EphemeralDm 

EphemeralDm.

Definition at line 412 of file discordpp.h.

◆ DisclosureTypes

enum class discordpp::DisclosureTypes
strong

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.

See MessageHandle for more details.

Enumerator
MessageDataVisibleOnDiscord 

This disclosure type happens the first time a user sends a message in game, and that message will be able to be viewed on Discord, so the user knows their content is being copied out of the game.

Definition at line 611 of file discordpp.h.

◆ DiscordObjectState

enum class discordpp::DiscordObjectState
strong

Represents the memory state of a Discord object.

Enumerator
Invalid 

The object has been freed.

Owned 

The object is owned by the C++ wrapper and methods can be called on it.

Definition at line 19 of file discordpp.h.

◆ ErrorType

enum class discordpp::ErrorType
strong

Enum representing various types of errors the SDK returns.

Enumerator
None 

No error, the operation was successful.

NetworkError 

The user is offline or there was some network issue that prevented an underlying HTTP call from succeeding.

HTTPError 

An HTTP call was made to Discord's servers but a non success HTTP status code was returned. In some cases this may be retryable, and if so ClientResult::Retryable will be true. In most cases though the failure is due to a validation or permissions error, and the request is not retryable. ClientResult::Error and ClientResult::ErrorCode will have more information.

ClientNotReady 

An operation such as sending a friend request or joining a lobby was attempted but the Client is not yet ready. Wait for Client::Status to change to Client::Status::Ready before trying again.

Also be sure to call Client::Connect to begin the process of connecting to Discord's servers, otherwise the Client will never become ready.

Disabled 

An operation was temporarily disabled for stability reasons.

ClientDestroyed 

The Client has been destroyed and so this operation cannot complete.

ValidationError 

Used when an SDK method is called but the inputs don't pass local validation. For example if one attempts to accept a friend request when there is no pending friend request for that user, this ErrorType would be used.

The specific validation error will be included in the error field, and no other ClientResult fields will be set.

Aborted 

The user or developer aborted an operation, such as an authorization flow.

AuthorizationFailed 

An authorization function failed, but not necessarily as the result of an HTTP call that returned an error.

RPCError 

An RPC call was made to Discord's desktop application, but it returned a non-success result. The error and errorCode fields should both be set with more information.

Definition at line 145 of file discordpp.h.

◆ ExternalIdentityProviderType

The type of external identity provider.

Enumerator
OIDC 

OIDC.

EpicOnlineServices 

EpicOnlineServices.

Steam 

Steam.

Unity 

Unity.

DiscordBot 

DiscordBot.

None 

None.

Unknown 

Unknown.

Definition at line 551 of file discordpp.h.

◆ HttpStatusCode

enum class discordpp::HttpStatusCode
strong

Enum that represents the various HTTP status codes that can be returned.

You can read more about these at: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status For convenience, we have defined a couple of enum values that are non-standard HTTP codes to represent certain types of errors.

Enumerator
None 

None.

Continue 

Continue.

SwitchingProtocols 

SwitchingProtocols.

Processing 

Processing.

EarlyHints 

EarlyHints.

Ok 

Ok.

Created 

Created.

Accepted 

Accepted.

NonAuthoritativeInfo 

NonAuthoritativeInfo.

NoContent 

NoContent.

ResetContent 

ResetContent.

PartialContent 

PartialContent.

MultiStatus 

MultiStatus.

AlreadyReported 

AlreadyReported.

ImUsed 

ImUsed.

MultipleChoices 

MultipleChoices.

MovedPermanently 

MovedPermanently.

Found 

Found.

SeeOther 

SeeOther.

NotModified 

NotModified.

TemporaryRedirect 

TemporaryRedirect.

PermanentRedirect 

PermanentRedirect.

BadRequest 

BadRequest.

Unauthorized 

Unauthorized.

PaymentRequired 

PaymentRequired.

Forbidden 

Forbidden.

NotFound 

NotFound.

MethodNotAllowed 

MethodNotAllowed.

NotAcceptable 

NotAcceptable.

ProxyAuthRequired 

ProxyAuthRequired.

RequestTimeout 

RequestTimeout.

Conflict 

Conflict.

Gone 

Gone.

LengthRequired 

LengthRequired.

PreconditionFailed 

PreconditionFailed.

PayloadTooLarge 

PayloadTooLarge.

UriTooLong 

UriTooLong.

UnsupportedMediaType 

UnsupportedMediaType.

RangeNotSatisfiable 

RangeNotSatisfiable.

ExpectationFailed 

ExpectationFailed.

MisdirectedRequest 

MisdirectedRequest.

UnprocessableEntity 

UnprocessableEntity.

Locked 

Locked.

FailedDependency 

FailedDependency.

TooEarly 

TooEarly.

UpgradeRequired 

UpgradeRequired.

PreconditionRequired 

PreconditionRequired.

TooManyRequests 

TooManyRequests.

RequestHeaderFieldsTooLarge 

RequestHeaderFieldsTooLarge.

InternalServerError 

InternalServerError.

NotImplemented 

NotImplemented.

BadGateway 

BadGateway.

ServiceUnavailable 

ServiceUnavailable.

GatewayTimeout 

GatewayTimeout.

HttpVersionNotSupported 

HttpVersionNotSupported.

VariantAlsoNegotiates 

VariantAlsoNegotiates.

InsufficientStorage 

InsufficientStorage.

LoopDetected 

LoopDetected.

NotExtended 

NotExtended.

NetworkAuthorizationRequired 

NetworkAuthorizationRequired.

Definition at line 207 of file discordpp.h.

◆ IntegrationType

enum class discordpp::IntegrationType
strong

Represents the type of integration the app will be installed as.

Enumerator
GuildInstall 

GuildInstall.

UserInstall 

UserInstall.

Definition at line 400 of file discordpp.h.

◆ LoggingSeverity

enum class discordpp::LoggingSeverity
strong

Enum that represents the various log levels supported by the SDK.

Enumerator
Verbose 

Verbose.

Info 

Info.

Warning 

Warning.

Error 

Error.

None 

None.

Definition at line 661 of file discordpp.h.

◆ RelationshipGroupType

Enum that represents the logical groups of relationships based on online status and game activity.

Enumerator
OnlinePlayingGame 

Users who are online and currently playing the game.

OnlineElsewhere 

Users who are online but not playing the game.

Offline 

Users who are offline.

Definition at line 681 of file discordpp.h.

◆ RelationshipType

enum class discordpp::RelationshipType
strong

Enum that represents the possible types of relationships that can exist between two users.

Enumerator
None 

The user has no relationship with the other user.

Friend 

The user is friends with the other user.

Blocked 

The current user has blocked the target user, and so certain actions such as sending messages between these users will not work.

PendingIncoming 

The current user has received a friend request from the target user, but it is not yet accepted.

PendingOutgoing 

The current user has sent a friend request to the target user, but it is not yet accepted.

Implicit 

The Implicit type is documented for visibility, but should be unused in the SDK.

Suggestion 

The Suggestion type is documented for visibility, but should be unused in the SDK.

Definition at line 522 of file discordpp.h.

◆ StatusDisplayTypes

enum class discordpp::StatusDisplayTypes
strong

Controls which Discord RichPresence field is displayed in the user's status.

See https://discord.com/developers/docs/rich-presence/overview for more information.

Enumerator
Name 

Name.

State 

State.

Details 

Details.

Definition at line 104 of file discordpp.h.

◆ StatusType

enum class discordpp::StatusType
strong

Enum that specifies the various online statuses for a user.

Generally a user is online or offline, but in Discord users are able to further customize their status such as turning on "Do not Disturb" mode or "Dnd" to silence notifications.

Enumerator
Online 

The user is online and recently active.

Offline 

The user is offline and not connected to Discord.

Blocked 

Blocked.

Idle 

The user is online, but has not been active for a while and may be away from their computer.

Dnd 

The user is online, but wishes to suppress notifications for the time being.

Invisible 

The user is online, but wishes to appear as if they are offline to other users.

Streaming 

The user is online and is actively streaming content.

Unknown 

Unknown.

Definition at line 579 of file discordpp.h.

◆ VoiceInputModeType

enum class discordpp::VoiceInputModeType
strong

Describes how the Discord client decides when to transmit the user's microphone audio.

Enumerator
VoiceActivity 

Transmit when voice activity is detected.

PushToTalk 

Transmit while the push-to-talk shortcut is held.

Definition at line 489 of file discordpp.h.

Function Documentation

◆ EnumToString() [1/28]

const char * discordpp::EnumToString ( discordpp::ActivityActionTypes value)
inline

Converts a discordpp::ActivityActionTypes to a string.

Definition at line 5389 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [2/28]

const char * discordpp::EnumToString ( discordpp::ActivityGamePlatforms value)
inline

Converts a discordpp::ActivityGamePlatforms to a string.

Definition at line 5451 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [3/28]

const char * discordpp::EnumToString ( discordpp::ActivityPartyPrivacy value)
inline

Converts a discordpp::ActivityPartyPrivacy to a string.

Definition at line 5403 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [4/28]

const char * discordpp::EnumToString ( discordpp::ActivityTypes value)
inline

Converts a discordpp::ActivityTypes to a string.

Definition at line 5415 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [5/28]

const char * discordpp::EnumToString ( discordpp::AdditionalContentType value)
inline

Converts a discordpp::AdditionalContentType to a string.

Definition at line 5693 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [6/28]

const char * discordpp::EnumToString ( discordpp::AudioModeType value)
inline

Converts a discordpp::AudioModeType to a string.

Definition at line 5759 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [7/28]

const char * discordpp::EnumToString ( discordpp::AudioSystem value)
inline

Converts a discordpp::AudioSystem to a string.

Definition at line 5727 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [8/28]

const char * discordpp::EnumToString ( discordpp::AuthenticationCodeChallengeMethod value)
inline

Converts a discordpp::AuthenticationCodeChallengeMethod to a string.

Definition at line 5631 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [9/28]

const char * discordpp::EnumToString ( discordpp::AuthenticationExternalAuthType value)
inline

Converts a discordpp::AuthenticationExternalAuthType to a string.

Definition at line 5953 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [10/28]

const char * discordpp::EnumToString ( discordpp::AuthorizationTokenType value)
inline

Converts a discordpp::AuthorizationTokenType to a string.

Definition at line 5941 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [11/28]

const char * discordpp::EnumToString ( discordpp::Call::Error value)
inline

Converts a discordpp::Call::Error to a string.

Definition at line 5739 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [12/28]

const char * discordpp::EnumToString ( discordpp::Call::Status value)
inline

Converts a discordpp::Call::Status to a string.

Definition at line 5773 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [13/28]

const char * discordpp::EnumToString ( discordpp::ChannelType value)
inline

Converts a discordpp::ChannelType to a string.

Definition at line 5653 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [14/28]

const char * discordpp::EnumToString ( discordpp::Client::Error value)
inline

Converts a discordpp::Client::Error to a string.

Definition at line 5889 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [15/28]

const char * discordpp::EnumToString ( discordpp::Client::Status value)
inline

Converts a discordpp::Client::Status to a string.

Definition at line 5905 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [16/28]

const char * discordpp::EnumToString ( discordpp::Client::Thread value)
inline

Converts a discordpp::Client::Thread to a string.

Definition at line 5927 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [17/28]

const char * discordpp::EnumToString ( discordpp::DisclosureTypes value)
inline

Converts a discordpp::DisclosureTypes to a string.

Definition at line 5879 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [18/28]

const char * discordpp::EnumToString ( discordpp::ErrorType value)
inline

Converts a discordpp::ErrorType to a string.

Definition at line 5475 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [19/28]

const char * discordpp::EnumToString ( discordpp::ExternalIdentityProviderType value)
inline

Converts a discordpp::ExternalIdentityProviderType to a string.

Definition at line 5817 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [20/28]

const char * discordpp::EnumToString ( discordpp::HttpStatusCode value)
inline

Converts a discordpp::HttpStatusCode to a string.

Definition at line 5503 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [21/28]

const char * discordpp::EnumToString ( discordpp::IntegrationType value)
inline

Converts a discordpp::IntegrationType to a string.

Definition at line 5641 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [22/28]

const char * discordpp::EnumToString ( discordpp::LoggingSeverity value)
inline

Converts a discordpp::LoggingSeverity to a string.

Definition at line 5977 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [23/28]

const char * discordpp::EnumToString ( discordpp::RelationshipGroupType value)
inline

Converts a discordpp::RelationshipGroupType to a string.

Definition at line 5995 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [24/28]

const char * discordpp::EnumToString ( discordpp::RelationshipType value)
inline

Converts a discordpp::RelationshipType to a string.

Definition at line 5795 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [25/28]

const char * discordpp::EnumToString ( discordpp::StatusDisplayTypes value)
inline

Converts a discordpp::StatusDisplayTypes to a string.

Definition at line 5437 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [26/28]

const char * discordpp::EnumToString ( discordpp::StatusType value)
inline

Converts a discordpp::StatusType to a string.

Definition at line 5855 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [27/28]

const char * discordpp::EnumToString ( discordpp::UserHandle::AvatarType value)
inline

Converts a discordpp::UserHandle::AvatarType to a string.

Definition at line 5839 of file discordpp.h.

Here is the call graph for this function:

◆ EnumToString() [28/28]

const char * discordpp::EnumToString ( discordpp::VoiceInputModeType value)
inline

Converts a discordpp::VoiceInputModeType to a string.

Definition at line 5715 of file discordpp.h.

Here is the call graph for this function:

◆ RunCallbacks()

void discordpp::RunCallbacks ( )
inline

Runs pending callbacks from the Discord SDK.

You should call this function periodically to process callbacks, e.g. once per frame.

Definition at line 29 of file discordpp.h.

Here is the call graph for this function:
Here is the caller graph for this function: