class Tourmaline::MessageEntity
- Tourmaline::MessageEntity
- Reference
- Object
Included Modules
- JSON::Serializable
- Tourmaline::Model
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)
Instance methods inherited from module Tourmaline::Model
client : Tourmaline::Client
client,
client=(client : Tourmaline::Client)
client=,
client? : Tourmaline::Client | Nil
client?,
finish_init(client : Tourmaline::Client)
finish_init
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).