class Tourmaline::MessageEntity

Included Modules

Defined in:

tourmaline/models/message_entity.cr

Constant 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

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
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) #

[View source]

Instance Method Detail

def ==(other) #
Description copied from class Reference

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


[View source]
def bold? #

[View source]
def bot_command? #

[View source]
def cashtag? #

[View source]
def code? #

[View source]
def custom_emoji? #

[View source]
def custom_emoji_id : String | Nil #

[View source]
def custom_emoji_id=(custom_emoji_id : String | Nil) #

[View source]
def email? #

[View source]
def hashtag? #

[View source]
def italic? #

[View source]
def language : String | Nil #

[View source]
def language=(language : String | Nil) #

[View source]
def length : Int32 #

[View source]
def length=(length : Int32) #

[View source]
def mention? #

[View source]
def offset : Int32 #

[View source]
def offset=(offset : Int32) #

[View source]
def phone_number? #

[View source]
def pre? #

[View source]
def spoiler? #

[View source]
def strikethrough? #

[View source]
def text_link? #

[View source]
def text_mention? #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]
def underline? #

[View source]
def url : String | Nil #

[View source]
def url=(url : String | Nil) #

[View source]
def url? #

[View source]
def user : User | Nil #

[View source]
def user=(user : User | Nil) #

[View source]