1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +00:00

Revert "Revert "Revert "Revert "add slot machine, but currently it is not working""""

This reverts commit b457d11067.
This commit is contained in:
InsanusMokrassar 2020-10-30 20:38:04 +06:00
parent 80d4bdfe17
commit 7d72d72f2c
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,9 @@
## 0.29.3
* `Core`:
* New dice type `SlotMachineDiceAnimationType`
## 0.29.2
* `Common`:

View File

@ -22,6 +22,10 @@ object BasketballDiceAnimationType : DiceAnimationType() {
override val emoji: String = "\uD83C\uDFC0"
}
@Serializable(DiceAnimationTypeSerializer::class)
object SlotMachineDiceAnimationType : DiceAnimationType() {
override val emoji: String = "\uD83C\uDFB0"
}
@Serializable(DiceAnimationTypeSerializer::class)
data class CustomDiceAnimationType(
override val emoji: String
) : DiceAnimationType()
@ -34,6 +38,7 @@ internal object DiceAnimationTypeSerializer : KSerializer<DiceAnimationType> {
CubeDiceAnimationType.emoji -> CubeDiceAnimationType
DartsDiceAnimationType.emoji -> DartsDiceAnimationType
BasketballDiceAnimationType.emoji -> BasketballDiceAnimationType
SlotMachineDiceAnimationType.emoji -> BasketballDiceAnimationType
else -> CustomDiceAnimationType(type)
}
}