Dice

data class Dice(emoji: String, value: Int)

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

Parameters

emoji

Emoji on which the dice throw animation is based

value

Value of the dice, 1-6 for “” and “” base emoji, 1-5 for “” and “” base emoji, 1-64 for “” base emoji

Constructors

Dice
Link copied to clipboard
common
fun Dice(emoji: String, value: Int)
Emoji on which the dice throw animation is based

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): Int
copy
Link copied to clipboard
common
fun copy(emoji: String, value: Int): Dice
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

emoji
Link copied to clipboard
common
val emoji: String
Emoji on which the dice throw animation is based
value
Link copied to clipboard
common
val value: Int
Value of the dice, 1-6 for “” and “” base emoji, 1-5 for “” and “” base emoji, 1-64 for “” base emoji