Skip to content

class Tourmaline::Dice
inherits Reference #

This object represents an animated emoji that displays a random value.

Included modules

JSON::Serializable

Constructors#

.new(emoji, value) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#emoji : String #

Emoji on which the dice throw animation is based

View source

#emoji=(emoji : String) #

Emoji on which the dice throw animation is based

View source

#value : Int32 | Int64 #

Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji

View source

#value=(value : Int32 | Int64) #

Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji

View source