class Tourmaline::Dice

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(emoji : String, value : Int32 | Int64) #

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

[View source]

Instance Method Detail

def emoji : String #

Emoji on which the dice throw animation is based


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

Emoji on which the dice throw animation is based


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