class

Tourmaline::MessageEntity

Inherits Tourmaline::Model < JSON::Serializable < Reference < Object

Constants

MENTION_TYPES = ["mention", "text_mention", "hashtag", "cashtag", "bot_command", "url", "email", "phone_number", "bold", "italic", "code", "pre", "text_link", "underline", "strikethrough", "spoiler", "custom_emoji"] of ::String

Constructors

new(type, offset : Int32 = 0, length : Int32 = 0, url : Nil | String = nil, user : Nil | Tourmaline::User = nil, language : Nil | String = nil, custom_emoji_id : Nil | String = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

==(other)

Returns false (other can only be a Value here).

Source
bold?
Source
bot_command?
Source
cashtag?
Source
code?
Source
custom_emoji?
Source
custom_emoji_id
Source
custom_emoji_id=(custom_emoji_id : String | Nil)
Source
email?
Source
hashtag?
Source
italic?
Source
language
Source
language=(language : String | Nil)
Source
length
Source
length=(length : Int32)
Source
mention?
Source
offset
Source
offset=(offset : Int32)
Source
phone_number?
Source
pre?
Source
spoiler?
Source
strikethrough?
Source
text_mention?
Source
type
Source
type=(type : String)
Source
underline?
Source
url=(url : String | Nil)
Source
url?
Source
user
Source
user=(user : User | Nil)
Source