Represents the voice state of a user on a guild These are stored in the dpp::guild object, and accessible there, or via dpp::channel::get_voice_members.
More...
#include <voicestate.h>
Represents the voice state of a user on a guild These are stored in the dpp::guild object, and accessible there, or via dpp::channel::get_voice_members.
◆ voicestate()
dpp::voicestate::voicestate |
( |
| ) |
|
Construct a new voicestate object.
◆ ~voicestate()
dpp::voicestate::~voicestate |
( |
| ) |
|
Destroy the voicestate object.
◆ build_json()
std::string dpp::voicestate::build_json |
( |
| ) |
const |
Build json representation of the object.
- Returns
- std::string JSON string
◆ fill_from_json()
Fill voicestate object from json data.
- Parameters
-
- Returns
- voicestate& Reference to self
◆ is_deaf()
bool dpp::voicestate::is_deaf |
( |
| ) |
const |
Return true if user is deafened.
◆ is_mute()
bool dpp::voicestate::is_mute |
( |
| ) |
const |
Return true if user is muted.
◆ is_self_deaf()
bool dpp::voicestate::is_self_deaf |
( |
| ) |
const |
Return true if user deafened themselves.
◆ is_self_mute()
bool dpp::voicestate::is_self_mute |
( |
| ) |
const |
Return true if user muted themselves.
◆ is_supressed()
bool dpp::voicestate::is_supressed |
( |
| ) |
const |
Return true if user is surpressed. "HELP HELP I'M BEING SUPRESSED!".
◆ self_stream()
bool dpp::voicestate::self_stream |
( |
| ) |
const |
Return true if the user is streamig.
◆ self_video()
bool dpp::voicestate::self_video |
( |
| ) |
const |
Return true if the user is in video.
◆ channel_id
◆ flags
uint8_t dpp::voicestate::flags |
◆ guild_id
◆ session_id
std::string dpp::voicestate::session_id |
◆ shard
◆ user_id