From 9a1c1d21e56a6139bdde88b8f57ba99bc89242f8 Mon Sep 17 00:00:00 2001 From: Amber Ehrlich Date: Tue, 30 Apr 2024 20:23:05 -0400 Subject: [PATCH] fix: make c++17 happy --- src/dpp/message.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dpp/message.cpp b/src/dpp/message.cpp index 77f2b4afe9..ed7709a413 100644 --- a/src/dpp/message.cpp +++ b/src/dpp/message.cpp @@ -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 {