class

Tourmaline::Dice

Inherits JSON::Serializable / Reference / Object

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

Constructors

new(emoji : String, value : Int32 | Int64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

emoji

Emoji on which the dice throw animation is based

Source
emoji=(emoji : String)

Emoji on which the dice throw animation is based

Source
value

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

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

Source