class Tourmaline::MessageEntity
- Tourmaline::MessageEntity
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
tourmaline/models/message_entity.crConstant Summary
-
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(pull : JSON::PullParser)
- .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)
Instance Method Summary
-
#==(other)
Returns
false
(other can only be aValue
here). - #bold?
- #bot_command?
- #cashtag?
- #code?
- #custom_emoji?
- #custom_emoji_id : String | Nil
- #custom_emoji_id=(custom_emoji_id : String | Nil)
- #email?
- #hashtag?
- #italic?
- #language : String | Nil
- #language=(language : String | Nil)
- #length : Int32
- #length=(length : Int32)
- #mention?
- #offset : Int32
- #offset=(offset : Int32)
- #phone_number?
- #pre?
- #spoiler?
- #strikethrough?
- #text_link?
- #text_mention?
- #type : String
- #type=(type : String)
- #underline?
- #url : String | Nil
- #url=(url : String | Nil)
- #url?
- #user : User | Nil
- #user=(user : User | Nil)
Constructor Detail
def self.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)
#
Instance Method Detail
def ==(other)
#
Description copied from class Reference
Returns false
(other can only be a Value
here).