make message text default constructable

This commit is contained in:
2024-02-17 11:43:32 +01:00
parent b7103de3d3
commit 5727c7482f

View File

@ -67,6 +67,7 @@ namespace Message::Components {
struct MessageText { struct MessageText {
std::string text; std::string text;
MessageText(void) = default;
MessageText(const std::string& view) : text(view) {} MessageText(const std::string& view) : text(view) {}
MessageText(const std::string_view& view) : text(view) {} MessageText(const std::string_view& view) : text(view) {}
}; };