class Tourmaline::StoryAreaTypeSuggestedReaction

Overview

Describes a story area pointing to a suggested reaction. Currently, a story can have up to 5 suggested reaction areas.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, reaction_type : Tourmaline::ReactionTypeCustomEmoji | Tourmaline::ReactionTypeEmoji | Tourmaline::ReactionTypePaid, is_dark : Bool | Nil = nil, is_flipped : Bool | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def is_dark=(is_dark : Bool | Nil) #

Optional. Pass True if the reaction area has a dark background


[View source]
def is_dark? : Bool | Nil #

Optional. Pass True if the reaction area has a dark background


[View source]
def is_flipped=(is_flipped : Bool | Nil) #

Optional. Pass True if reaction area corner is flipped


[View source]
def is_flipped? : Bool | Nil #

Optional. Pass True if reaction area corner is flipped


[View source]
def reaction_type : Tourmaline::ReactionType #

Type of the reaction


[View source]
def reaction_type=(reaction_type : Tourmaline::ReactionType) #

Type of the reaction


[View source]
def type : String #

Type of the area, always "suggested_reaction"


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

Type of the area, always "suggested_reaction"


[View source]