MentionEntity - daneden/Twift GitHub Wiki
MentionEntity
An @username mention entity found in a string, with indices in its parent string
public struct MentionEntity: EntityObject
Inheritance
Properties
start
The start index for this entity
public let start: Int
end
The end index for this entity
public let end: Int
username
The UTF-8 text of the mentioned username
public let username: String