Class Dice
java.lang.Object
io.micronaut.chatbots.telegram.api.Dice
This object represents an animated emoji that displays a random value.
Dice
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Dice
public Dice()
-
-
Method Details
-
getEmoji
- Returns:
- Emoji on which the dice throw animation is based.
-
setEmoji
- Parameters:
emoji
- Emoji on which the dice throw animation is based.
-
getValue
- Returns:
- Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji.
-
setValue
- Parameters:
value
- Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji.
-