D++ (DPP)
C++ Discord API Bot Library
dpp::poll_results Struct Reference

Represents the results of a poll. More...

+ Collaboration diagram for dpp::poll_results:

Classes

struct  answer_count
 Represents a reference to an answer and its count of votes. More...
 

Public Attributes

bool is_finalized {false}
 Whether the poll has finalized, and the answers are precisely counted. More...
 
std::map< uint32_t, answer_countanswer_counts
 Count of votes for each answer. If an answer is not present in this list, then its vote count is 0. More...
 

Detailed Description

Member Data Documentation

◆ answer_counts

std::map<uint32_t, answer_count> dpp::poll_results::answer_counts

Count of votes for each answer. If an answer is not present in this list, then its vote count is 0.

◆ is_finalized

bool dpp::poll_results::is_finalized {false}

Whether the poll has finalized, and the answers are precisely counted.

Note
Discord states that due to the way they count and cache answers, while a poll is running the count of answers might not be accurate.
D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0