make message text default constructable

This commit is contained in:
Green Sky 2024-02-17 11:43:32 +01:00
parent b7103de3d3
commit 5727c7482f
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

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