GramIO API Reference / @gramio/contexts/dist / Dice
Class: Dice
Defined in: contexts/index.d.ts:1460
This object represents an animated emoji that displays a random value.
Constructors
Constructor
new Dice(
payload):Dice
Defined in: contexts/index.d.ts:1462
Parameters
| Parameter | Type |
|---|---|
payload | TelegramDice |
Returns
Dice
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramDice | contexts/index.d.ts:1461 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:1464
Returns
string
emoji
Get Signature
get emoji():
NonNullable<SendDiceEmoji>
Defined in: contexts/index.d.ts:1466
Emoji on which the dice throw animation is based
Returns
NonNullable<SendDiceEmoji>
value
Get Signature
get value():
number
Defined in: contexts/index.d.ts:1473
Value of the dice, 1-6 for 🎲, 🎯 and 🎳 base emoji, 1-5 for 🏀 and ⚽️ base emoji, 1-64 for 🎰 base emoji
Returns
number