Rosegold::Chat
Inherits JSON::Serializable / Reference / Object
Constants
TRANSLATIONS = TextComponent::TRANSLATIONS
Constructors
new(pull : JSON::PullParser)
Sourcenew(text : String)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
bold
Sourcebold=(bold : Bool | Nil)
Sourceclick_event
Sourceclick_event=(click_event : JSON::Any | Nil)
Sourcecolor
Sourcecolor=(color : String | Nil)
Sourceextra
Sourceextra_text
Sourcehover_event
Sourcehover_event=(hover_event : JSON::Any | Nil)
Sourceinsertion
Sourceinsertion=(insertion : String | Nil)
Sourceitalic
Sourceitalic=(italic : Bool | Nil)
Sourceobfuscated
Sourceobfuscated=(obfuscated : Bool | Nil)
Sourcestrikethrough
Sourcestrikethrough=(strikethrough : Bool | Nil)
Sourcetext
Sourcetext=(text : String | Nil)
Sourceto_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
translate
Sourcetranslate=(translate : String | Nil)
Sourceunderlined
Sourceunderlined=(underlined : Bool | Nil)
Sourcewith
Sourcewith=(with __arg0 : Array(Chat | String) | Nil)
Source