Event: add [(text, link)] mentions attributes

This commit is contained in:
miruka
2020-03-23 15:39:14 -04:00
parent 8e7cd7bde9
commit 688f36b7f1
3 changed files with 25 additions and 9 deletions

View File

@@ -175,10 +175,11 @@ class Event(ModelItem):
sender_name: str = field()
sender_avatar: str = field()
content: str = ""
inline_content: str = ""
reason: str = ""
links: List[str] = field(default_factory=list)
content: str = ""
inline_content: str = ""
reason: str = ""
links: List[str] = field(default_factory=list)
mentions: List[Tuple[str, str]] = field(default_factory=list)
type_specifier: TypeSpecifier = TypeSpecifier.Unset