help with string conversion

This commit is contained in:
Green Sky 2024-02-15 18:34:06 +01:00
parent c73f727adc
commit b7103de3d3
No known key found for this signature in database

View File

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