@@ -35,12 +35,12 @@ namespace topgg {
3535 using get_server_count_completion_event = std::function<void (const result<std::optional<size_t >>&)>;
3636
3737 /* *
38- * @brief The callback function to call when get_voters completes.
38+ * @brief The callback function to call when get_votes completes.
3939 *
40- * @see topgg::client::get_voters
40+ * @see topgg::client::get_votes
4141 * @since 2.0.0
4242 */
43- using get_voters_completion_event = std::function<void (const result<std::vector<voter >>&)>;
43+ using get_votes_completion_event = std::function<void (const result<std::vector<vote >>&)>;
4444
4545 /* *
4646 * @brief The callback function to call when has_voted completes.
@@ -326,73 +326,73 @@ namespace topgg {
326326#endif
327327
328328 /* *
329- * @brief Fetches your Discord bot's recent 100 unique voters .
329+ * @brief Fetches your Discord bot's recent 100 unique votes .
330330 *
331331 * Example:
332332 *
333333 * ```cpp
334334 * dpp::cluster bot{"your bot token"};
335335 * topgg::client client{bot, "your top.gg token"};
336336 *
337- * client.get_voters (1, [](const auto& result) {
337+ * client.get_votes (1, [](const auto& result) {
338338 * try {
339- * auto voters = result.get();
339+ * auto votes = result.get();
340340 *
341- * for (auto& voter: voters ) {
342- * std::cout << voter .username << std::endl;
341+ * for (auto& vote: votes ) {
342+ * std::cout << vote .username << std::endl;
343343 * }
344344 * } catch (const std::exception& exc) {
345345 * std::cerr << "error: " << exc.what() << std::endl;
346346 * }
347347 * });
348348 * ```
349349 *
350- * @param page The page number. Each page can only have at most 100 voters .
351- * @param callback The callback function to call when get_voters completes.
352- * @note For its C++20 coroutine counterpart, see co_get_voters .
350+ * @param page The page number. Each page can only have at most 100 votes .
351+ * @param callback The callback function to call when get_votes completes.
352+ * @note For its C++20 coroutine counterpart, see co_get_votes .
353353 * @see topgg::result
354- * @see topgg::voter
354+ * @see topgg::vote
355355 * @see topgg::client::start_autoposter
356- * @see topgg::client::co_get_voters
356+ * @see topgg::client::co_get_votes
357357 * @since 2.0.0
358358 */
359- void get_voters (size_t page, const get_voters_completion_event & callback);
359+ void get_votes (size_t page, const get_votes_completion_event & callback);
360360
361361 /* *
362- * @brief Fetches your Discord bot's recent 100 unique voters .
362+ * @brief Fetches your Discord bot's recent 100 unique votes .
363363 *
364364 * Example:
365365 *
366366 * ```cpp
367367 * dpp::cluster bot{"your bot token"};
368368 * topgg::client client{bot, "your top.gg token"};
369369 *
370- * client.get_voters ([](const auto& result) {
370+ * client.get_votes ([](const auto& result) {
371371 * try {
372- * auto voters = result.get();
372+ * auto votes = result.get();
373373 *
374- * for (auto& voter: voters ) {
375- * std::cout << voter .username << std::endl;
374+ * for (auto& vote: votes ) {
375+ * std::cout << vote .username << std::endl;
376376 * }
377377 * } catch (const std::exception& exc) {
378378 * std::cerr << "error: " << exc.what() << std::endl;
379379 * }
380380 * });
381381 * ```
382382 *
383- * @param callback The callback function to call when get_voters completes.
384- * @note For its C++20 coroutine counterpart, see co_get_voters .
383+ * @param callback The callback function to call when get_votes completes.
384+ * @note For its C++20 coroutine counterpart, see co_get_votes .
385385 * @see topgg::result
386- * @see topgg::voter
386+ * @see topgg::vote
387387 * @see topgg::client::start_autoposter
388- * @see topgg::client::co_get_voters
388+ * @see topgg::client::co_get_votes
389389 * @since 2.0.0
390390 */
391- void get_voters (const get_voters_completion_event & callback);
391+ void get_votes (const get_votes_completion_event & callback);
392392
393393#ifdef DPP_CORO
394394 /* *
395- * @brief Fetches your Discord bot's recent 100 unique voters through a C++20 coroutine.
395+ * @brief Fetches your Discord bot's recent 100 unique votes through a C++20 coroutine.
396396 *
397397 * Example:
398398 *
@@ -401,30 +401,30 @@ namespace topgg {
401401 * topgg::client client{bot, "your top.gg token"};
402402 *
403403 * try {
404- * const auto voters = co_await client.co_get_voters ();
404+ * const auto votes = co_await client.co_get_votes ();
405405 *
406- * for (const auto& voter: voters ) {
407- * std::cout << voter .username << std::endl;
406+ * for (const auto& vote: votes ) {
407+ * std::cout << vote .username << std::endl;
408408 * }
409409 * } catch (const std::exception& exc) {
410410 * std::cerr << "error: " << exc.what() << std::endl;
411411 * }
412412 * ```
413413 *
414- * @param page The page number. Each page can only have at most 100 voters . Defaults to 1.
414+ * @param page The page number. Each page can only have at most 100 votes . Defaults to 1.
415415 * @throw topgg::internal_server_error Unexpected error from Top.gg's end.
416416 * @throw topgg::invalid_token Invalid API token.
417417 * @throw topgg::ratelimited Ratelimited from sending more requests.
418418 * @throw dpp::http_error An unexpected HTTP exception has occured.
419- * @return co_await to retrieve a vector of topgg::voter if successful
420- * @note For its C++17 callback-based counterpart, see get_voters .
419+ * @return co_await to retrieve a vector of topgg::vote if successful
420+ * @note For its C++17 callback-based counterpart, see get_votes .
421421 * @see topgg::async_result
422- * @see topgg::voter
422+ * @see topgg::vote
423423 * @see topgg::client::start_autoposter
424- * @see topgg::client::get_voters
424+ * @see topgg::client::get_votes
425425 * @since 2.0.0
426426 */
427- topgg::async_result<std::vector<voter >> co_get_voters (size_t page = 1 );
427+ topgg::async_result<std::vector<vote >> co_get_votes (size_t page = 1 );
428428#endif
429429
430430 /* *
0 commit comments