Rise
The Vieneo Province
Loading...
Searching...
No Matches
discordpp::CallInfoHandle Class Reference

Convenience class that represents the state of a single Discord call in a lobby. More...

#include <discordpp.h>

Collaboration diagram for discordpp::CallInfoHandle:
[legend]

Public Member Functions

 CallInfoHandle (CallInfoHandle &&other) noexcept
 Move constructor for CallInfoHandle.
CallInfoHandle & operator= (CallInfoHandle &&other) noexcept
 Move assignment operator for CallInfoHandle.
 operator bool () const
 Returns true if the instance contains a valid object.
 CallInfoHandle (const CallInfoHandle &other)
 Copy constructor for CallInfoHandle.
CallInfoHandle & operator= (const CallInfoHandle &other)
 Copy assignment operator for CallInfoHandle.
uint64_t ChannelId () const
 Returns the lobby ID of the call.
std::vector< uint64_t > GetParticipants () const
 Returns a list of the user IDs of the participants in the call.
std::optional< discordpp::VoiceStateHandle > GetVoiceStateHandle (uint64_t userId) const
 Accesses the voice state for a single user so you can know if they have muted or deafened themselves.
uint64_t GuildId () const
 Returns the lobby ID of the call.

Static Public Attributes

static const CallInfoHandle nullobj
 Uninitialized instance of CallInfoHandle.

Detailed Description

Convenience class that represents the state of a single Discord call in a lobby.

Definition at line 5343 of file discordpp.h.

Constructor & Destructor Documentation

◆ CallInfoHandle() [1/2]

discordpp::CallInfoHandle::CallInfoHandle ( CallInfoHandle && other)
noexcept

Move constructor for CallInfoHandle.

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

◆ CallInfoHandle() [2/2]

discordpp::CallInfoHandle::CallInfoHandle ( const CallInfoHandle & other)

Copy constructor for CallInfoHandle.

Here is the call graph for this function:

Member Function Documentation

◆ ChannelId()

uint64_t discordpp::CallInfoHandle::ChannelId ( ) const

Returns the lobby ID of the call.

◆ GetParticipants()

std::vector< uint64_t > discordpp::CallInfoHandle::GetParticipants ( ) const

Returns a list of the user IDs of the participants in the call.

◆ GetVoiceStateHandle()

std::optional< discordpp::VoiceStateHandle > discordpp::CallInfoHandle::GetVoiceStateHandle ( uint64_t userId) const

Accesses the voice state for a single user so you can know if they have muted or deafened themselves.

◆ GuildId()

uint64_t discordpp::CallInfoHandle::GuildId ( ) const

Returns the lobby ID of the call.

◆ operator bool()

discordpp::CallInfoHandle::operator bool ( ) const
inline

Returns true if the instance contains a valid object.

Definition at line 5364 of file discordpp.h.

◆ operator=() [1/2]

CallInfoHandle & discordpp::CallInfoHandle::operator= ( CallInfoHandle && other)
noexcept

Move assignment operator for CallInfoHandle.

Here is the call graph for this function:

◆ operator=() [2/2]

CallInfoHandle & discordpp::CallInfoHandle::operator= ( const CallInfoHandle & other)

Copy assignment operator for CallInfoHandle.

Here is the call graph for this function:

Member Data Documentation

◆ nullobj

const CallInfoHandle discordpp::CallInfoHandle::nullobj
static

Uninitialized instance of CallInfoHandle.

Definition at line 5362 of file discordpp.h.


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