Skip to content

Commit

Permalink
fix: make c++17 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishura4 committed May 1, 2024
1 parent 4f696d7 commit 9a1c1d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dpp/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,15 +596,15 @@ poll& poll::add_answer(const poll_media& media) {
}

poll& poll::add_answer(const std::string& text, snowflake emoji_id, bool is_animated) {
return add_answer(poll_media{text, partial_emoji({}, emoji_id, is_animated)});
return add_answer(poll_media{text, partial_emoji{{}, emoji_id, is_animated}});
}

poll& poll::add_answer(const std::string& text, const std::string& emoji) {
return add_answer(poll_media{text, partial_emoji(emoji, {}, false)});
return add_answer(poll_media{text, partial_emoji{emoji, {}, false}});
}

poll& poll::add_answer(const std::string& text, const emoji& e) {
return add_answer(poll_media{text, partial_emoji(e.name, e.id, e.is_animated())});
return add_answer(poll_media{text, partial_emoji{e.name, e.id, e.is_animated()}});
}

const std::string& poll::get_question_text() const noexcept {
Expand Down

0 comments on commit 9a1c1d2

Please sign in to comment.