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

Represents the results of a poll. More...

#include "message.h"

Collaboration diagram for dpp::poll_results:

Classes

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

Public Attributes

std::map< uint32_t, answer_countanswer_counts
 Count of votes for each answer. More...
 
bool is_finalized {false}
 Whether the poll has finalized, and the answers are precisely counted. 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.

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