DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
DiscordCoreAPI::Users Class Reference

An interface class for the User related Discord endpoints. More...

#include <UserEntities.hpp>

Static Public Member Functions

static CoRoutine< void > addRecipientToGroupDMAsync (AddRecipientToGroupDMData dataPackage)
 Adds a chosen recipient to a group DM.
 
static UserData getCachedUser (GetUserData dataPackage)
 Collects a given User from the library's cache.
 
static CoRoutine< ApplicationDatagetCurrentUserApplicationInfoAsync ()
 Collects the Application responseData associated with the current Bot.
 
static CoRoutine< UsergetCurrentUserAsync ()
 Collects the Bot's current User responseData.
 
static CoRoutine< AuthorizationInfoDatagetCurrentUserAuthorizationInfoAsync ()
 Collects the Authorization info associated with the current Bot.
 
static CoRoutine< UsergetUserAsync (GetUserData dataPackage)
 Collects a given User from the Discord servers.
 
static CoRoutine< std::vector< ConnectionData > > getUserConnectionsAsync ()
 Collects the User's Connections.
 
static CoRoutine< UsermodifyCurrentUserAsync (ModifyCurrentUserData dataPackage)
 Modifies the Bot's User responseData.
 
static CoRoutine< void > modifyCurrentUserVoiceStateAsync (ModifyCurrentUserVoiceStateData dataPackage)
 Sets the bot's current voice state.
 
static CoRoutine< void > modifyUserVoiceStateAsync (ModifyUserVoiceStateData dataPackage)
 Sets another user's current voice state.
 
static CoRoutine< void > removeRecipientFromGroupDMAsync (RemoveRecipientFromGroupDMData dataPackage)
 Removes a chosen recipient from a group DM.
 

Member Function Documentation

◆ addRecipientToGroupDMAsync()

CoRoutine< void > DiscordCoreAPI::Users::addRecipientToGroupDMAsync ( AddRecipientToGroupDMData  dataPackage)
static
Parameters
dataPackageAn AddRecipientToGroupDMData structure.
Returns
A CoRoutine containing void.

Definition at line 168 of file UserEntities.cpp.

◆ getCachedUser()

UserData DiscordCoreAPI::Users::getCachedUser ( GetUserData  dataPackage)
static
Parameters
dataPackageA GetUserData structure.
Returns
A CoRoutine containing a User.

Definition at line 218 of file UserEntities.cpp.

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

◆ getCurrentUserApplicationInfoAsync()

CoRoutine< ApplicationData > DiscordCoreAPI::Users::getCurrentUserApplicationInfoAsync ( )
static
Returns
A CoRoutine containing an ApplicationData.

Definition at line 276 of file UserEntities.cpp.

◆ getCurrentUserAsync()

CoRoutine< User > DiscordCoreAPI::Users::getCurrentUserAsync ( )
static
Returns
A CoRoutine containing a User.

Definition at line 207 of file UserEntities.cpp.

◆ getCurrentUserAuthorizationInfoAsync()

CoRoutine< AuthorizationInfoData > DiscordCoreAPI::Users::getCurrentUserAuthorizationInfoAsync ( )
static
Returns
A CoRoutine containing an AuthorizationInfoData.

Definition at line 285 of file UserEntities.cpp.

◆ getUserAsync()

CoRoutine< User > DiscordCoreAPI::Users::getUserAsync ( GetUserData  dataPackage)
static
Parameters
dataPackageA GetUserData structure.
Returns
A CoRoutine containing a User.

Definition at line 230 of file UserEntities.cpp.

Here is the caller graph for this function:

◆ getUserConnectionsAsync()

CoRoutine< std::vector< ConnectionData > > DiscordCoreAPI::Users::getUserConnectionsAsync ( )
static
Returns
A CoRoutine containing a vector<ConnectionData>.

Definition at line 267 of file UserEntities.cpp.

◆ modifyCurrentUserAsync()

CoRoutine< User > DiscordCoreAPI::Users::modifyCurrentUserAsync ( ModifyCurrentUserData  dataPackage)
static
Parameters
dataPackageA ModifyCurrentUserData structure.
Returns
A CoRoutine containing a User.

Definition at line 246 of file UserEntities.cpp.

◆ modifyCurrentUserVoiceStateAsync()

CoRoutine< void > DiscordCoreAPI::Users::modifyCurrentUserVoiceStateAsync ( ModifyCurrentUserVoiceStateData  dataPackage)
static
Parameters
dataPackageA ModifyCurrentUserVoiceStateData structure.
Returns
A CoRoutine containing void.

Definition at line 189 of file UserEntities.cpp.

◆ modifyUserVoiceStateAsync()

CoRoutine< void > DiscordCoreAPI::Users::modifyUserVoiceStateAsync ( ModifyUserVoiceStateData  dataPackage)
static
Parameters
dataPackageA ModifyUserVoiceStateData structure.
Returns
A CoRoutine containing void.

Definition at line 198 of file UserEntities.cpp.

◆ removeRecipientFromGroupDMAsync()

CoRoutine< void > DiscordCoreAPI::Users::removeRecipientFromGroupDMAsync ( RemoveRecipientFromGroupDMData  dataPackage)
static
Parameters
dataPackageA RemoveRecipientFromGroupDMData structure.
Returns
A CoRoutine containing void.

Definition at line 180 of file UserEntities.cpp.


The documentation for this class was generated from the following files: